diff options
author | Sam James <sam@gentoo.org> | 2021-07-31 01:04:40 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-07-31 01:18:18 +0100 |
commit | bc4566d10d430de662e75b1d8a102c8478b93d6e (patch) | |
tree | 07b49a3aae8aafc6a72bcba06da45ef23d6f9c73 /app-misc | |
parent | app-admin/pass: [QA] fix UnnecessarySlashStrip (diff) | |
download | gentoo-bc4566d10d430de662e75b1d8a102c8478b93d6e.tar.gz gentoo-bc4566d10d430de662e75b1d8a102c8478b93d6e.tar.bz2 gentoo-bc4566d10d430de662e75b1d8a102c8478b93d6e.zip |
app-misc/khard: modernise Python ebuild
distutils_enable_tests handles IUSE/RESTRICT for us.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/khard/khard-0.13.0-r1.ebuild | 12 | ||||
-rw-r--r-- | app-misc/khard/khard-0.17.0-r1.ebuild | 8 |
2 files changed, 2 insertions, 18 deletions
diff --git a/app-misc/khard/khard-0.13.0-r1.ebuild b/app-misc/khard/khard-0.13.0-r1.ebuild index 06a157e5b7f4..3606d1e02eb9 100644 --- a/app-misc/khard/khard-0.13.0-r1.ebuild +++ b/app-misc/khard/khard-0.13.0-r1.ebuild @@ -12,8 +12,6 @@ HOMEPAGE="https://github.com/scheibler/khard" LICENSE="GPL-3" SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" if [ "${PV}" == "9999" ]; then inherit git-r3 @@ -30,21 +28,13 @@ RDEPEND=" dev-python/unidecode[${PYTHON_USEDEP}] >dev-python/vobject-0.9.3[${PYTHON_USEDEP}] " -BDEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - test? ( - ${RDEPEND} - ) -" # vobject-0.9.3 breaks khard, see # https://github.com/scheibler/khard/issues/87 # https://github.com/eventable/vobject/issues/39 DOCS=( AUTHORS CHANGES README.md misc/khard/khard.conf.example ) -python_test() { - esetup.py test -} +distutils_enable_tests setup.py src_install() { distutils-r1_src_install diff --git a/app-misc/khard/khard-0.17.0-r1.ebuild b/app-misc/khard/khard-0.17.0-r1.ebuild index 79c4e3cd1a71..10c6d6bcb525 100644 --- a/app-misc/khard/khard-0.17.0-r1.ebuild +++ b/app-misc/khard/khard-0.17.0-r1.ebuild @@ -12,8 +12,6 @@ HOMEPAGE="https://github.com/scheibler/khard" LICENSE="GPL-3" SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" if [[ "${PV}" == *9999 ]]; then inherit git-r3 @@ -32,18 +30,14 @@ RDEPEND=" dev-python/vobject[${PYTHON_USEDEP}] " BDEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] test? ( - ${RDEPEND} dev-python/setuptools_scm[${PYTHON_USEDEP}] ) " DOCS=( CHANGES CONTRIBUTING.rst README.md doc/source/examples/khard.conf.example ) -python_test() { - esetup.py test -} +distutils_enable_tests setup.py src_install() { distutils-r1_src_install |