commit:     74e583808c7ca2affd74d80929d4e8805f8a5f12
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 28 18:34:44 2019 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Apr 28 18:35:00 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74e58380

x11-misc/revelation: drop dep on libgnome-python

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 <AT> gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

 .../files/revelation-0.4.14-gnome-python.patch     | 28 ++++++++++++
 x11-misc/revelation/revelation-0.4.14-r3.ebuild    | 50 ++++++++++++++++++++++
 2 files changed, 78 insertions(+)

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
index 00000000000..82a02fb259b
--- /dev/null
+++ b/x11-misc/revelation/files/revelation-0.4.14-gnome-python.patch
@@ -0,0 +1,28 @@
+From dffb8b7722865a82c3a5d7ce9615b6da2313d583 Mon Sep 17 00:00:00 2001
+Message-Id: 
<dffb8b7722865a82c3a5d7ce9615b6da2313d583.1486417682.git.tommyh...@gmail.com>
+From: Thomas Hebb <[email protected]>
+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
index 00000000000..268f3053c26
--- /dev/null
+++ b/x11-misc/revelation/revelation-0.4.14-r3.ebuild
@@ -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}"
+}

Reply via email to