app-crypt/monkeysign: clean 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         epatch "${FILESDIR}/${P}_basename.patch"
33 }
34
35 pkg_postinst()
36 {
37         use gnome && cp ${FILESDIR}/monkeysign.desktop /usr/share/applications/ || die  
38         use gnome && update-desktop-database || die
39 }