diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-11-20 15:21:35 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-11-25 13:34:56 +0100 |
commit | 2d84f13aa4337bd082893490d27d659074ffc876 (patch) | |
tree | 1592084eb62fbfc65b99f7347758c364f3a6ec92 /dev-python/cssselect | |
parent | distutils-r1.eclass: Add distutils_enable_sphinx helper function (diff) | |
download | gentoo-2d84f13aa4337bd082893490d27d659074ffc876.tar.gz gentoo-2d84f13aa4337bd082893490d27d659074ffc876.tar.bz2 gentoo-2d84f13aa4337bd082893490d27d659074ffc876.zip |
dev-python/cssselect: Use distutils_enable_sphinx
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/cssselect')
-rw-r--r-- | dev-python/cssselect/cssselect-1.0.3.ebuild | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/dev-python/cssselect/cssselect-1.0.3.ebuild b/dev-python/cssselect/cssselect-1.0.3.ebuild index 80aef78e55b9..eb7e80a7db75 100644 --- a/dev-python/cssselect/cssselect-1.0.3.ebuild +++ b/dev-python/cssselect/cssselect-1.0.3.ebuild @@ -16,34 +16,12 @@ SRC_URI="https://github.com/scrapy/cssselect/archive/v${PV}.tar.gz -> ${P}.tar.g LICENSE="BSD" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -IUSE="doc test" +IUSE="test" RESTRICT="!test? ( test )" DEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') ) test? ( dev-python/lxml[${PYTHON_USEDEP}] )" +distutils_enable_sphinx docs distutils_enable_tests unittest - -python_check_deps() { - use doc || return 0 - has_version "dev-python/sphinx[${PYTHON_USEDEP}]" -} - -python_prepare_all() { - # prevent non essential d'load of files in doc build - sed -e 's:intersphinx_:#&:' -i docs/conf.py || die - distutils-r1_python_prepare_all -} - -python_compile_all() { - if use doc ; then - esetup.py build_sphinx - fi -} - -python_install_all() { - use doc && local HTML_DOCS=( docs/_build/html/. ) - distutils-r1_python_install_all -} |