app-crypt/monkeysign: improve ebuild
[portage-overlay.git] / app-crypt / monkeysign / monkeysign-1.1.ebuild
index c4cb9db..abad532 100644 (file)
@@ -3,40 +3,39 @@
 # $Header: $
 
 EAPI=5
-PYTHON_COMPAT=( python{2_6,2_7} )
+PYTHON_COMPAT=( python2_7 )
 
-inherit eutils distutils-r1
+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="~amd64 ~x86"
-IUSE="gnome"
+IUSE=""
 
 SRC_URI="mirror://debian/pool/main/m/monkeysign/monkeysign_${PV}.tar.gz"
 
-DEPEND="dev-python/docutils:0=
-       dev-python/pygtk:2=
+CDEPEND="dev-python/pygtk[${PYTHON_USEDEP}]
        media-gfx/zbar:0=[python,gtk,imagemagick]
-       media-gfx/qrencode-python:0="
+       media-gfx/qrencode-python[${PYTHON_USEDEP}]
+       virtual/python-imaging:0="
 
-RDEPEND="${DEPEND}
-       virtual/python-imaging:0=
-       dev-python/setuptools:0=
-       app-crypt/gnupg:0=
-       gnome? ( x11-themes/gnome-icon-theme:0= )"
+DEPEND="dev-python/docutils[${PYTHON_USEDEP}]
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       ${CDEPEND}"
 
-src_prepare()
-{
-       epatch "${FILESDIR}/${P}-basename.patch"\
-              "${FILESDIR}/${P}-rst2s5.patch"
-       distutils-r1_src_prepare
-}
+RDEPEND="app-crypt/gnupg:0=
+       virtual/mta
+       ${CDEPEND}"
+
+PATCHES=("${FILESDIR}/${P}-basename.patch"
+         "${FILESDIR}/${P}-rst2s5.patch"
+       )
 
 src_install()
 {
        distutils-r1_src_install
-       use gnome && domenu "${FILESDIR}/monkeysign.desktop"
+       domenu "${FILESDIR}/monkeysign.desktop"
 }