app-crypt/monkeysign: fix up ebuild
[portage-overlay.git] / app-crypt / monkeysign / monkeysign-1.1.ebuild
1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6 PYTHON_COMPAT=( python{2_6,2_7} )
7
8 inherit distutils-r1
9
10 DESCRIPTION="Monkeysign"
11 HOMEPAGE="http://web.monkeysphere.info/"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~x86 ~amd64"
16 IUSE="gnome"
17
18 SRC_URI="http://cdn.debian.net/debian/pool/main/m/monkeysign/monkeysign_${PV}.tar.gz"
19
20 DEPEND=""
21 RDEPEND="
22         dev-python/pygtk
23         virtual/python-imaging
24         media-gfx/zbar[python,gtk,imagemagick]
25         media-gfx/qrencode-python
26         dev-python/setuptools
27         app-crypt/gnupg
28         gnome? ( x11-themes/gnome-icon-theme )
29 "
30
31 src_prepare()
32 {
33         epatch "${FILESDIR}/${P}-basename.patch"
34 }
35
36 src_install()
37 {
38         default_src_install
39         if use gnome; then
40                 insinto /usr/share/applications
41                 doins "${FILESDIR}/monkeysign.desktop"
42         fi;
43 }
44
45 pkg_postinst()
46 {
47         use gnome && update-desktop-database || die
48 }
49
50 pkg_postrm()
51 {
52         use gnome && update-desktop-database || die
53 }