app-crypt/monkeysign: improve ebuild
[portage-overlay.git] / app-crypt / monkeysign / monkeysign-1.1.ebuild
index b2b0b68..abad532 100644 (file)
@@ -1,52 +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="~amd64 ~x86"
-IUSE="gnome"
+IUSE=""
 
 SRC_URI="mirror://debian/pool/main/m/monkeysign/monkeysign_${PV}.tar.gz"
 
-DEPEND=""
-RDEPEND="dev-python/pygtk:2=
-       virtual/python-imaging:0=
+CDEPEND="dev-python/pygtk[${PYTHON_USEDEP}]
        media-gfx/zbar:0=[python,gtk,imagemagick]
-       media-gfx/qrencode-python:0=
-       dev-python/setuptools:0=
-       app-crypt/gnupg:0=
-       gnome? ( x11-themes/gnome-icon-theme:0= )
-"
+       media-gfx/qrencode-python[${PYTHON_USEDEP}]
+       virtual/python-imaging:0="
 
-src_prepare()
-{
-       epatch "${FILESDIR}/${P}-basename.patch"
-}
+DEPEND="dev-python/docutils[${PYTHON_USEDEP}]
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       ${CDEPEND}"
 
-src_install()
-{
-       default_src_install
-       if use gnome; then
-               insinto /usr/share/applications
-               doins "${FILESDIR}/monkeysign.desktop"
-       fi;
-}
+RDEPEND="app-crypt/gnupg:0=
+       virtual/mta
+       ${CDEPEND}"
 
-pkg_postinst()
-{
-       use gnome && update-desktop-database || die
-}
+PATCHES=("${FILESDIR}/${P}-basename.patch"
+         "${FILESDIR}/${P}-rst2s5.patch"
+       )
 
-pkg_postrm()
+src_install()
 {
-       use gnome && update-desktop-database || die
+       distutils-r1_src_install
+       domenu "${FILESDIR}/monkeysign.desktop"
 }