diff options
author | Nils Freydank <nils.freydank@posteo.de> | 2020-08-15 14:57:03 +0200 |
---|---|---|
committer | Andrey Utkin <andrey_utkin@gentoo.org> | 2020-08-30 14:47:53 +0100 |
commit | 712608c6c116e1395b0e6539a2620fe14ba41743 (patch) | |
tree | 10d531850e4bb882316b4a9fa9d54dedbd526eaf /app-misc/khard/khard-0.17.0.ebuild | |
parent | dev-python/vobject: Add support for python3_9 (diff) | |
download | gentoo-712608c6c116e1395b0e6539a2620fe14ba41743.tar.gz gentoo-712608c6c116e1395b0e6539a2620fe14ba41743.tar.bz2 gentoo-712608c6c116e1395b0e6539a2620fe14ba41743.zip |
app-misc/khard: Bump to 0.17.0
This commit adds support for python 3.7 to 3.9 and does some internal changes:
- drop explicit dep for >dev-python/vobject-0.9.3 as a working version
was introduced to the tree in december 2017. For details see commit
17e2b60acb7049e925c1d65116dbb4edf16e820e.
- don't call external test but use the [[ ]] bashism, so globbing for
version works ("*9999").
- add dep for dev-python/setuptools_scm for tests
Bug: https://bugs.gentoo.org/718232
Closes: https://bugs.gentoo.org/721832
Thanks-to: Christopher Head <chead@chead.ca>
Package-Manager: Portage-3.0.2, Repoman-2.3.23
Signed-off-by: Nils Freydank <holgersson@posteo.de>
Signed-off-by: Andrey Utkin <andrey_utkin@gentoo.org>
Diffstat (limited to 'app-misc/khard/khard-0.17.0.ebuild')
-rw-r--r-- | app-misc/khard/khard-0.17.0.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/app-misc/khard/khard-0.17.0.ebuild b/app-misc/khard/khard-0.17.0.ebuild new file mode 100644 index 000000000000..c260594faa5a --- /dev/null +++ b/app-misc/khard/khard-0.17.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{7,8,9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Console CardDAV client" +HOMEPAGE="https://github.com/scheibler/khard" +LICENSE="GPL-3" +SLOT="0" +IUSE="test zsh-completion" +RESTRICT="!test? ( test )" + +if [[ "${PV}" == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/scheibler/khard" +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~x86" +fi + +RDEPEND=" + dev-python/atomicwrites[${PYTHON_USEDEP}] + dev-python/configobj[${PYTHON_USEDEP}] + dev-python/ruamel-yaml[${PYTHON_USEDEP}] + dev-python/ruamel-yaml-clib[${PYTHON_USEDEP}] + dev-python/unidecode[${PYTHON_USEDEP}] + dev-python/vobject[${PYTHON_USEDEP}] +" +DEPEND=" + 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 ) + +src_install() { + distutils-r1_src_install + + if use zsh-completion; then + insinto /usr/share/zsh/site-functions + doins misc/zsh/_khard + fi +} + +python_test() { + esetup.py test +} |