forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kedpm-0.4.0-r2.ebuild
48 lines (35 loc) · 1.11 KB
/
kedpm-0.4.0-r2.ebuild
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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1 eutils
DESCRIPTION="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"
}