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 | |
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>
-rw-r--r-- | app-misc/khard/Manifest | 1 | ||||
-rw-r--r-- | app-misc/khard/khard-0.17.0.ebuild | 54 |
2 files changed, 55 insertions, 0 deletions
diff --git a/app-misc/khard/Manifest b/app-misc/khard/Manifest index f7e762230386..133d107aa79e 100644 --- a/app-misc/khard/Manifest +++ b/app-misc/khard/Manifest @@ -1 +1,2 @@ DIST khard-0.13.0.tar.gz 5083020 BLAKE2B 6dc95335f89d5034ddc5fdfafca06b2bfc96c2dd05e966d975eea508a939cc4d64b749c3c6c2a7ce6e74ac40835b33f90442d357b871e47b8f0b2df351225c16 SHA512 353a51a06d6c7aa27b0f1cf35b3f7c113097ea4fa5e27bcb400f00de0cdd65ccaeadcc835b1cba541361a0395265cb967f731b23d875162f2be13381bc0979a6 +DIST khard-0.17.0.tar.gz 593928 BLAKE2B 488e1df70212c856d8dfa43955e681344fb1a257d765c81820444f6435d39aec782da9d01edeeaac0b9a87412db680fde368c39c74faa82b0eff2d7a0a2dbc6b SHA512 9cb936aeaa327b9837488a752906bf603429ca0c7240703829220119049f5f62e84f7e4c90bb81799307fe446c3aa47fe6ee4112c276b6bb329c959be438ba25 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 +} |