diff options
Diffstat (limited to 'app-admin/kedpm/kedpm-0.4.0-r2.ebuild')
-rw-r--r-- | app-admin/kedpm/kedpm-0.4.0-r2.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/app-admin/kedpm/kedpm-0.4.0-r2.ebuild b/app-admin/kedpm/kedpm-0.4.0-r2.ebuild new file mode 100644 index 00000000000..1a6466da6ca --- /dev/null +++ b/app-admin/kedpm/kedpm-0.4.0-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 eutils + +DESCRIPTION="Ked Password Manager helps to manage large amounts of passwords and related information" +HOMEPAGE="http://kedpm.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="gtk" + +DEPEND="dev-python/pycrypto[${PYTHON_USEDEP}] + gtk? ( >=dev-python/pygtk-2[${PYTHON_USEDEP}] )" +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS CHANGES NEWS ) + +python_prepare_all() { + # We want documentation to install in /usr/share/doc/kedpm + # not in /usr/share/kedpm as in original setup.py. + local PATCHES=( + "${FILESDIR}/setup-doc.patch" + ) + + # If we don't compiling with GTK support, let's change default + # frontend for kedpm to CLI. + use gtk || sed -i -e 's/"gtk" # default/"cli" # default/' scripts/kedpm + + distutils-r1_python_prepare_all +} + +python_test() { + "${PYTHON}" run_tests || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + + # menu item + domenu "${FILESDIR}/${PN}.desktop" +} |