summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Utkin <andrey_utkin@gentoo.org>2019-01-28 02:16:39 +0000
committerAndrey Utkin <andrey_utkin@gentoo.org>2019-01-28 02:24:07 +0000
commit9fc7aa4d83b39eb51128d2b13738cac9dc175402 (patch)
tree0e560c29ccfda62fdafe3aa263339c4d86eb7673 /app-misc
parentapp-misc/khard: add new version 0.13.0 (diff)
downloadgentoo-9fc7aa4d83b39eb51128d2b13738cac9dc175402.tar.gz
gentoo-9fc7aa4d83b39eb51128d2b13738cac9dc175402.tar.bz2
gentoo-9fc7aa4d83b39eb51128d2b13738cac9dc175402.zip
app-misc/khard: add tests
Test suite has been added in 0.13.3 release. Package-Manager: Portage-2.3.49, Repoman-2.3.12 Signed-off-by: Andrey Utkin <andrey_utkin@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/khard/khard-0.13.0.ebuild13
1 files changed, 11 insertions, 2 deletions
diff --git a/app-misc/khard/khard-0.13.0.ebuild b/app-misc/khard/khard-0.13.0.ebuild
index fcba0a4d09b3..335ff71ec054 100644
--- a/app-misc/khard/khard-0.13.0.ebuild
+++ b/app-misc/khard/khard-0.13.0.ebuild
@@ -8,7 +8,7 @@ DESCRIPTION="Console CardDAV client"
HOMEPAGE="https://github.com/scheibler/khard"
LICENSE="GPL-3"
SLOT="0"
-IUSE="zsh-completion"
+IUSE="test zsh-completion"
if [ "${PV}" == "9999" ]; then
inherit git-r3
@@ -18,7 +18,6 @@ else
KEYWORDS="~amd64 ~arm64"
fi
-DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND="
dev-python/atomicwrites[${PYTHON_USEDEP}]
dev-python/configobj[${PYTHON_USEDEP}]
@@ -26,6 +25,12 @@ RDEPEND="
dev-python/unidecode[${PYTHON_USEDEP}]
>dev-python/vobject-0.9.3[${PYTHON_USEDEP}]
"
+DEPEND="
+ 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
@@ -40,3 +45,7 @@ src_install() {
doins misc/zsh/_khard
fi
}
+
+python_test() {
+ esetup.py test
+}