app-crypt/monkeysign: improve ebuild
[portage-overlay.git] / app-crypt / monkeysign / monkeysign-1.1.ebuild
index b6a8da9..abad532 100644 (file)
@@ -1,31 +1,41 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
 EAPI=5
-PYTHON_COMPAT=( python{2_6,2_7} )
+PYTHON_COMPAT=( python2_7 )
 
 inherit distutils-r1
 
-DESCRIPTION="Monkeysign"
-HOMEPAGE="http://web.monkeysphere.info/"
+DESCRIPTION="A user-friendly commandline tool to sign OpenGPG keys"
+HOMEPAGE="http://web.monkeysphere.info/monkeysign/"
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS="~x86 ~amd64"
+KEYWORDS="~amd64 ~x86"
 IUSE=""
 
-SRC_URI="http://cdn.debian.net/debian/pool/main/m/monkeysign/monkeysign_${PV}.tar.gz"
+SRC_URI="mirror://debian/pool/main/m/monkeysign/monkeysign_${PV}.tar.gz"
 
-DEPEND=""
-RDEPEND="${DEPEND}
-dev-python/pygtk
-virtual/python-imaging
-media-gfx/zbar[python,gtk,imagemagick]
-media-gfx/qrencode-python
-dev-python/setuptools
-app-crypt/gnupg"
+CDEPEND="dev-python/pygtk[${PYTHON_USEDEP}]
+       media-gfx/zbar:0=[python,gtk,imagemagick]
+       media-gfx/qrencode-python[${PYTHON_USEDEP}]
+       virtual/python-imaging:0="
 
-src_prepare(){
-       epatch "${FILESDIR}/02_basename.patch"
+DEPEND="dev-python/docutils[${PYTHON_USEDEP}]
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       ${CDEPEND}"
+
+RDEPEND="app-crypt/gnupg:0=
+       virtual/mta
+       ${CDEPEND}"
+
+PATCHES=("${FILESDIR}/${P}-basename.patch"
+         "${FILESDIR}/${P}-rst2s5.patch"
+       )
+
+src_install()
+{
+       distutils-r1_src_install
+       domenu "${FILESDIR}/monkeysign.desktop"
 }