Gentoo Archives: gentoo-commits

From: Sven Vermeulen <sven.vermeulen@××××××.be>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/hardened-dev:master commit in: dev-python/sepolgen/
Date: Sat, 26 May 2012 14:48:40
Message-Id: 1338043514.fe3cd53e9663b3a52c8faf96d5314e7fd7522f86.SwifT@gentoo
commit:     fe3cd53e9663b3a52c8faf96d5314e7fd7522f86
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Sat May 26 14:45:14 2012 +0000
Commit:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
CommitDate: Sat May 26 14:45:14 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=fe3cd53e

Support python3

---
 dev-python/sepolgen/sepolgen-1.1.5-r1.ebuild |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/dev-python/sepolgen/sepolgen-1.1.5-r1.ebuild b/dev-python/sepolgen/sepolgen-1.1.5-r1.ebuild
index a762990..0d716b3 100644
--- a/dev-python/sepolgen/sepolgen-1.1.5-r1.ebuild
+++ b/dev-python/sepolgen/sepolgen-1.1.5-r1.ebuild
@@ -2,8 +2,8 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/dev-python/sepolgen/sepolgen-1.1.5.ebuild,v 1.3 2012/04/29 10:08:34 swift Exp $
 
-EAPI="4"
-PYTHON_DEPEND="*"
+EAPI="3"
+PYTHON_DEPEND=""
 SUPPORT_PYTHON_ABIS="1"
 RESTRICT_PYTHON_ABIS="*-jython"
 
@@ -12,7 +12,7 @@ inherit python eutils
 DESCRIPTION="SELinux policy generation library"
 HOMEPAGE="http://userspace.selinuxproject.org"
 SRC_URI="http://userspace.selinuxproject.org/releases/20120216/${P}.tar.gz
-		http://dev.gentoo.org/~swift/patches/sepolgen/sepolgen-1.1.5-2to3.patch.gz"
+	http://dev.gentoo.org/~swift/patches/sepolgen/sepolgen-1.1.5-gentoo-01.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
@@ -24,12 +24,17 @@ DEPEND=">=sys-libs/libselinux-2.0[python]
 RDEPEND="${DEPEND}"
 
 src_prepare() {
-	epatch "${DISTDIR}/sepolgen-1.1.5-2to3.patch.gz"
 	# fix up default paths to not be RH specific
 	sed -i -e 's:/usr/share/selinux/devel:/usr/share/selinux/strict:' \
 		"${S}/src/sepolgen/defaults.py" || die
 	sed -i -e 's:/usr/share/selinux/devel:/usr/share/selinux/strict/include:' \
 		"${S}/src/sepolgen/module.py" || die
+
+	EPATCH_MULTI_MSG="Applying sepolgen patches ... " \
+	EPATCH_SUFFIX="patch" \
+	EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \
+	EPATCH_FORCE="yes" \
+	epatch
 }
 
 src_compile() {