# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=6 PYTHON_COMPAT=( python3_{3,4,5} ) SCM="" if [ "${PV#9999}" != "${PV}" ] ; then SCM="git-r3" EGIT_REPO_URI="https://github.com/scheibler/khard" fi inherit ${SCM} distutils-r1 DESCRIPTION="console carddav client" HOMEPAGE="https://github.com/scheibler/khard/" if [ "${PV#9999}" != "${PV}" ] ; then SRC_URI="" KEYWORDS="" else SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" KEYWORDS="~amd64 ~x86" fi LICENSE="GPL-3" SLOT="0" IUSE="zsh-completion" DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" RDEPEND="=dev-python/vobject-0.9.2[${PYTHON_USEDEP}] dev-python/configobj[${PYTHON_USEDEP}] dev-python/pyyaml[${PYTHON_USEDEP}] dev-python/atomicwrites[${PYTHON_USEDEP}] dev-python/vdirsyncer[${PYTHON_USEDEP}] zsh-completion? ( app-shells/zsh )" 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 }