x11-misc/revelation: drop dep on libgnome-python
authorHans de Graaff <graaff@gentoo.org>
Sun, 28 Apr 2019 18:34:44 +0000 (20:34 +0200)
committerHans de Graaff <graaff@gentoo.org>
Sun, 28 Apr 2019 18:35:00 +0000 (20:35 +0200)
This library is not actually used in the source so drop it from
configure and dependencies. Patch from archlinux found by pacho.

Bug: https://bugs.gentoo.org/640054
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

x11-misc/revelation/files/revelation-0.4.14-gnome-python.patch [new file with mode: 0644]
x11-misc/revelation/revelation-0.4.14-r3.ebuild [new file with mode: 0644]

diff --git a/x11-misc/revelation/files/revelation-0.4.14-gnome-python.patch b/x11-misc/revelation/files/revelation-0.4.14-gnome-python.patch
new file mode 100644 (file)
index 0000000..82a02fb
--- /dev/null
@@ -0,0 +1,28 @@
+From dffb8b7722865a82c3a5d7ce9615b6da2313d583 Mon Sep 17 00:00:00 2001
+Message-Id: <dffb8b7722865a82c3a5d7ce9615b6da2313d583.1486417682.git.tommyhebb@gmail.com>
+From: Thomas Hebb <tommyhebb@gmail.com>
+Date: Mon, 6 Feb 2017 21:44:06 +0000
+Subject: [PATCH] Remove deprecated gnome-python dependency from configure.ac
+
+The code has not depended on the module for many years (the module was
+removed in 125cf9dc28f95617fc3b37bc29a714f708b7d2ef); however, the
+configure script was never updated to match.
+---
+ configure.ac | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index bdfae2a..5b6ad72 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -19,7 +19,6 @@ RVL_FDO_MIME()
+ RVL_PYTHON_MODULE(Crypto, yes)
+ RVL_PYTHON_MODULE(gconf, yes)
+ RVL_PYTHON_MODULE(gtk, yes)
+-RVL_PYTHON_MODULE(gnome, yes)
+ RVL_PYTHON_MODULE(gio, yes)
+ RVL_PYTHON_MODULE(gobject, yes)
+ RVL_PYTHON_MODULE(pango, yes)
+-- 
+2.11.1
+
diff --git a/x11-misc/revelation/revelation-0.4.14-r3.ebuild b/x11-misc/revelation/revelation-0.4.14-r3.ebuild
new file mode 100644 (file)
index 0000000..268f305
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1 autotools gnome2
+
+DESCRIPTION="A password manager for GNOME"
+HOMEPAGE="https://revelation.olasagasti.info/"
+SRC_URI="https://www.bitbucket.org/erikg/revelation/downloads/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RESTRICT="test"
+
+RDEPEND="${PYTHON_DEPS}
+       dev-python/pygtk[${PYTHON_USEDEP}]
+       dev-python/pycryptodome[${PYTHON_USEDEP}]
+       dev-python/gconf-python[${PYTHON_USEDEP}]
+       dev-python/dbus-python[${PYTHON_USEDEP}]
+       sys-libs/cracklib[python,${PYTHON_USEDEP}]
+"
+
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       epatch "${FILESDIR}/${P}-random.patch" \
+                  "${FILESDIR}/${P}-xor.patch" \
+                  "${FILESDIR}/${P}-gnome-python.patch"
+       eapply_user
+       eautoreconf
+}
+
+src_configure() {
+       gnome2_src_configure \
+               --without-applet \
+               --disable-desktop-update \
+               --disable-mime-update
+}
+
+src_install() {
+       gnome2_src_install
+       python_fix_shebang "${ED}"
+}