diff options
author | 2006-06-30 13:50:58 +0000 | |
---|---|---|
committer | 2006-06-30 13:50:58 +0000 | |
commit | a83699707984c0898b94d336db2b79cf8144a894 (patch) | |
tree | a6da3e4bb80560e8b3c6ce7d4cd309bf94541bfe /app-admin/kedpm/kedpm-0.4.0-r1.ebuild | |
parent | Stable on sparc (diff) | |
download | historical-a83699707984c0898b94d336db2b79cf8144a894.tar.gz historical-a83699707984c0898b94d336db2b79cf8144a894.tar.bz2 historical-a83699707984c0898b94d336db2b79cf8144a894.zip |
added desktop as per bug #137939.
Package-Manager: portage-2.1.1_pre1-r5
Diffstat (limited to 'app-admin/kedpm/kedpm-0.4.0-r1.ebuild')
-rw-r--r-- | app-admin/kedpm/kedpm-0.4.0-r1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/app-admin/kedpm/kedpm-0.4.0-r1.ebuild b/app-admin/kedpm/kedpm-0.4.0-r1.ebuild new file mode 100644 index 000000000000..5869e98e0962 --- /dev/null +++ b/app-admin/kedpm/kedpm-0.4.0-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/kedpm/kedpm-0.4.0-r1.ebuild,v 1.1 2006/06/30 13:50:58 dragonheart Exp $ + +inherit distutils 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="x86 ppc amd64" +IUSE="gtk" + +DEPEND="virtual/python + >=sys-apps/sed-4" +RDEPEND="dev-python/pycrypto + gtk? ( >=dev-python/pygtk-2 )" + +pkg_setup() { + if use gtk + then + if has_version '<dev-python/pygtk-2.8.0-r2' ; then + if ! built_with_use dev-python/pygtk gnome + then + die "You need to compile dev-python/pygtk with gnome USE flag!" + fi + fi + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # We want documentation to install in /usr/share/doc/kedpm + # not in /usr/share/kedpm as in original setup.py. + epatch "${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 +} + +src_install() { + distutils_src_install + dodoc AUTHORS CHANGES ChangeLog NEWS PKG-INFO README + cp -r test run_tests "${D}/usr/share/${PN}" + # menu item + domenu "${FILESDIR}/${PN}.desktop" + +} + +pkg_postinst() { + einfo + einfo "You can test your kedpm installation running" + einfo "cd /usr/share/${PN}/ && ./run_tests" + einfo +} |