app-crypt/monkeysign: Improve upon ebuild
[portage-overlay.git] / app-crypt / monkeysign / monkeysign-1.1.ebuild
1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6 PYTHON_COMPAT=( python2_7 )
7
8 inherit eutils distutils-r1
9
10 DESCRIPTION="A user-friendly commandline tool to sign OpenGPG keys"
11 HOMEPAGE="http://web.monkeysphere.info/monkeysign/"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 SRC_URI="mirror://debian/pool/main/m/monkeysign/monkeysign_${PV}.tar.gz"
19
20 CDEPEND="dev-python/pygtk:2=
21         media-gfx/zbar:0=[python,gtk,imagemagick]
22         media-gfx/qrencode-python:0=
23         virtual/python-imaging:0="
24
25 DEPEND="dev-python/docutils:0=
26         dev-python/setuptools:0=
27         ${CDEPEND}"
28
29 RDEPEND="app-crypt/gnupg:0=
30         virtual/mta
31         ${CDEPEND}"
32
33 src_prepare()
34 {
35         epatch "${FILESDIR}/${P}-basename.patch"\
36                "${FILESDIR}/${P}-rst2s5.patch"
37         distutils-r1_src_prepare
38 }
39
40 src_install()
41 {
42         distutils-r1_src_install
43         domenu "${FILESDIR}/monkeysign.desktop"
44 }