# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

PYTHON_DEPEND="2:2.7"
PYTHON_RESTRICTED_ABIS="3.* *-jython *-pypy-*"

inherit git-2 eutils

DESCRIPTION="cli carddav client (for use with mutt etc.) "
HOMEPAGE="http://pycarddav.lostpackets.de"
EGIT_REPO_URI="https://github.com/geier/pycarddav.git"

LICENSE="BEER-WARE"
SLOT="0"
KEYWORDS=""
IUSE=""

RDEPEND="dev-python/vobject
	dev-python/pycurl
	dev-python/lxml
	dev-python/pysqlite:2"
DEPEND="${RDEPEND}"

src_unpack() {
	git-2_src_unpack
}

src_compile() { true; }

src_install(){
	dodoc pycard.conf.sample README.html README.rst || die
	dobin pc_query pycardsyncer || die
}

pkg_postinst() {
	ewarn "Copy and edit the supplied pycard.conf.sample file"
	ewarn "(default location is ~/.pycard/pycard.conf)."
	ewarn "Beware that only you can access this file,"
	ewarn "if you have untrusted users on your machine,"
	ewarn "since the password is stored in cleartext."
}