diff options
-rw-r--r-- | sci-misc/vitables/vitables-3.0.2_p4-r1.ebuild (renamed from sci-misc/vitables/vitables-3.0.2_p4.ebuild) | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/sci-misc/vitables/vitables-3.0.2_p4.ebuild b/sci-misc/vitables/vitables-3.0.2_p4-r1.ebuild index 67d4ca2725e6..2852bb044e63 100644 --- a/sci-misc/vitables/vitables-3.0.2_p4.ebuild +++ b/sci-misc/vitables/vitables-3.0.2_p4-r1.ebuild @@ -30,10 +30,25 @@ DEPEND="${RDEPEND}" distutils_enable_tests pytest -src_prepare() { - eapply ../debian/patches +python_prepare_all() { + PATCHES=( + ../debian/patches/0001-vtsite.py-use-debian-doc-and-icons-paths.patch + ../debian/patches/0002-setup.py-no-icons-htmldocs-or-license.patch + ../debian/patches/0004-tests-conftest.py-prepare-the-testfile-if-necessary.patch + ../debian/patches/0005-Update-collection-path-for-Python-3.8.patch + ../debian/patches/0006-Fix-version-information-display.patch + ../debian/patches/0007-tests-migrate-from-nose-to-pytest.patch + ) + + distutils-r1_python_prepare_all sed -e '/QtTest/d' -i tests/test_samples.py || die - default +} + +python_install_all() { + insinto /usr/share/${PN} + doins -r vitables/icons + dodoc -r doc/* + distutils-r1_python_install_all } python_test() { |