blob: 53993573fd4a4e509aabadbdf9cf5ab91cac8bb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/kedpm/kedpm-0.4.0.ebuild,v 1.4 2004/05/31 19:21:32 vapier 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"
IUSE="gtk2"
DEPEND="virtual/python"
RDEPEND="dev-python/pycrypto
gtk2? ( >=dev-python/pygtk-2 )"
pkg_setup() {
# If pygtk was compiled without gnome support, this command fails.
# Dirty hack but there is no way to depend on package compiled
# with specified USE flag.
if use gtk2
then
grep gnome /var/db/pkg/dev-python/pygtk-*/USE &>/dev/null ||
die "You need to compile pygtk-2 with gnome support!"
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 gtk2 || sed -i -e 's/"gtk" # default/"cli" # default/' scripts/kedpm
}
src_install() {
distutils_src_install
dodoc AUTHORS CHANGES ChangeLog INSTALL NEWS PKG-INFO README
cp -r test run_tests ${D}/usr/share/${PN}
}
pkg_postinst() {
einfo
einfo "You can test your kedpm installation running"
einfo "cd /usr/share/${PN}/ && ./run_tests"
einfo
}
|