diff options
author | David Seifert <soap@gentoo.org> | 2017-01-10 13:39:50 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-01-10 13:40:20 +0200 |
commit | 8eda327dc87a4562efac5e1e253317415def5b77 (patch) | |
tree | 37fed3b17f2294133530f991095e82711d7e68fb /dev-python/dynd-python | |
parent | 38ebae80deae3462c448011941c9bc8d458cca44 (diff) | |
download | gentoo-8eda327dc87a4562efac5e1e253317415def5b77.tar.gz gentoo-8eda327dc87a4562efac5e1e253317415def5b77.tar.xz |
dev-python/dynd-python: Fix python handling
* src_prepare should not be overridden in
distutils-r1 based ebuilds
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-python/dynd-python')
-rw-r--r-- | dev-python/dynd-python/dynd-python-0.7.2.ebuild | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/dev-python/dynd-python/dynd-python-0.7.2.ebuild b/dev-python/dynd-python/dynd-python-0.7.2.ebuild index 3ab41b4f24a..8cb9dd649af 100644 --- a/dev-python/dynd-python/dynd-python-0.7.2.ebuild +++ b/dev-python/dynd-python/dynd-python-0.7.2.ebuild @@ -29,8 +29,8 @@ DEPEND="${RDEPEND} doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) test? ( dev-python/nose[${PYTHON_USEDEP}] ) " -src_prepare() { - default + +python_prepare_all() { # remove the version mangling from git stuff it requires a git clone # rather force set it a configure time sed -e "/--dirty/s/ver =.*/ver = 'v${PV}'/" \ @@ -41,18 +41,18 @@ src_prepare() { -e 's|-g -fomit-frame-pointer||' \ -e 's|-Werror||g' \ -i CMakeLists.txt || die + + distutils-r1_python_prepare_all } python_compile_all() { - use doc && emake -C docs html + if use doc; then + emake -C docs html + HTML_DOCS=( docs/build/html/. ) + fi } python_test() { cd "${BUILD_DIR}/lib" || die PYTHONPATH=${BUILD_DIR}/lib nosetests -v || die } - -src_install() { - use doc && HTML_DOCS=( docs/build/html/. ) - distutils-r1_src_install -} |