From 7ff58b54d3be142f0887c352e191b07800907898 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Tue, 26 Nov 2019 09:42:42 +0100 Subject: [PATCH] Add app-misc/khard-0.15.1 --- app-misc/khard/Manifest | 2 ++ app-misc/khard/khard-0.15.1.ebuild | 51 ++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 app-misc/khard/Manifest create mode 100644 app-misc/khard/khard-0.15.1.ebuild diff --git a/app-misc/khard/Manifest b/app-misc/khard/Manifest new file mode 100644 index 0000000..78dc023 --- /dev/null +++ b/app-misc/khard/Manifest @@ -0,0 +1,2 @@ +DIST khard-0.15.1.tar.gz 5099734 BLAKE2B 80ee37a0a33b1813ba9b567e3ca8a1ed81e55f608e032c619a46da2507cae1074bbc8b3fc06a86837e0ea794f382f327e5e11055f32159230533e51e8e89b168 SHA512 64ba1acf7e4046cd2e93034eb6e56fa38390993121880109a83411ef10839272b63e32c84efd9508230a93aed2b9a965f8333ed32344204f179ada936d9cce48 +EBUILD khard-0.15.1.ebuild 1160 BLAKE2B 3f35e34b09e0fcb3945772c0db37acfbc3654554ce01b51455ae9dfa4aa652d9b28c67517735e9dbc338c38a7ab9791a1f986860ce8818c7b776e92f88856d7c SHA512 b9a90448f96291407f21765c6c2bc04feef3533227d06b9ffb383597eec7024347aed9e18b7fd33acf1e970c44f720154b2a2cf8dc202d916934ba04ba616d9c diff --git a/app-misc/khard/khard-0.15.1.ebuild b/app-misc/khard/khard-0.15.1.ebuild new file mode 100644 index 0000000..aaa0b86 --- /dev/null +++ b/app-misc/khard/khard-0.15.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{5,6} ) +inherit distutils-r1 +DESCRIPTION="Console CardDAV client" +HOMEPAGE="https://github.com/scheibler/khard" +LICENSE="GPL-3" +SLOT="0" +IUSE="test zsh-completion" + +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 ~arm64" +fi + +RDEPEND=" + dev-python/atomicwrites[${PYTHON_USEDEP}] + dev-python/configobj[${PYTHON_USEDEP}] + dev-python/ruamel-yaml[${PYTHON_USEDEP}] + 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 + +DOCS=( AUTHORS CHANGES README.md misc/khard/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 +} -- 2.39.5