summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-02-06 23:18:18 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-02-06 23:18:18 +0000
commit07c38fcdd1757647c789cae753648ce306045812 (patch)
treef57c5a505799ad673f23175e68f5c40df87f5ad0 /dev-python/sepolgen
parentVersion bump. (diff)
downloadgentoo-2-07c38fcdd1757647c789cae753648ce306045812.tar.gz
gentoo-2-07c38fcdd1757647c789cae753648ce306045812.tar.bz2
gentoo-2-07c38fcdd1757647c789cae753648ce306045812.zip
Set SUPPORT_PYTHON_ABIS (bug #345551).
(Portage version: 2.2.0_alpha20/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/sepolgen')
-rw-r--r--dev-python/sepolgen/ChangeLog6
-rw-r--r--dev-python/sepolgen/sepolgen-1.0.23.ebuild35
2 files changed, 24 insertions, 17 deletions
diff --git a/dev-python/sepolgen/ChangeLog b/dev-python/sepolgen/ChangeLog
index eb178c3795a0..1397d5c61666 100644
--- a/dev-python/sepolgen/ChangeLog
+++ b/dev-python/sepolgen/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/sepolgen
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sepolgen/ChangeLog,v 1.7 2011/02/06 18:44:37 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sepolgen/ChangeLog,v 1.8 2011/02/06 23:18:18 arfrever Exp $
+
+ 06 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ sepolgen-1.0.23.ebuild:
+ Set SUPPORT_PYTHON_ABIS (bug #345551).
*sepolgen-1.0.23 (06 Feb 2011)
diff --git a/dev-python/sepolgen/sepolgen-1.0.23.ebuild b/dev-python/sepolgen/sepolgen-1.0.23.ebuild
index dcfcbb271043..c4003241a218 100644
--- a/dev-python/sepolgen/sepolgen-1.0.23.ebuild
+++ b/dev-python/sepolgen/sepolgen-1.0.23.ebuild
@@ -1,25 +1,27 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/sepolgen/sepolgen-1.0.23.ebuild,v 1.1 2011/02/06 18:44:37 blueness Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/sepolgen/sepolgen-1.0.23.ebuild,v 1.2 2011/02/06 23:18:18 arfrever Exp $
-inherit python
+EAPI="2"
+PYTHON_DEPEND="2:2.5"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="2.4 3.* *-jython"
-IUSE=""
+inherit python
DESCRIPTION="SELinux policy generation library"
HOMEPAGE="http://userspace.selinuxproject.org"
SRC_URI="http://userspace.selinuxproject.org/releases/20101221/devel/${P}.tar.gz"
+
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+IUSE=""
-DEPEND=""
-RDEPEND=">=dev-lang/python-2.5
- >=sys-libs/libselinux-2.0"
-
-src_unpack() {
- unpack ${A}
+DEPEND=">=sys-libs/libselinux-2.0[python]"
+RDEPEND="${DEPEND}"
+src_prepare() {
# 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
@@ -28,27 +30,28 @@ src_unpack() {
}
src_compile() {
- return
+ :
}
src_test() {
if has_version sec-policy/selinux-base-policy; then
- make test
+ python_src_test
else
ewarn "Sepolgen requires sec-policy/selinux-base-policy to run tests."
fi
}
src_install() {
- python_need_rebuild
- make DESTDIR="${D}" PYTHONLIBDIR="$(python_get_sitedir)" \
- install || die "install failed"
+ installation() {
+ emake DESTDIR="${D}" PYTHONLIBDIR="$(python_get_sitedir)" install
+ }
+ python_execute_function installation
}
pkg_postinst() {
- python_mod_optimize $(python_get_sitedir)
+ python_mod_optimize sepolgen
}
pkg_postrm() {
- python_mod_cleanup $(python_get_sitedir)
+ python_mod_cleanup sepolgen
}