summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-05-31 18:57:23 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-05-31 18:57:23 +0000
commitd0af1c635cfddaf9f3ea4d527d28228a64b2f9e7 (patch)
tree378f06afdedcf4a5c623711ce1e816aa01cd8d96 /dev-python/rhpl
parentremove old versions (diff)
downloadhistorical-d0af1c635cfddaf9f3ea4d527d28228a64b2f9e7.tar.gz
historical-d0af1c635cfddaf9f3ea4d527d28228a64b2f9e7.tar.bz2
historical-d0af1c635cfddaf9f3ea4d527d28228a64b2f9e7.zip
Set SUPPORT_PYTHON_ABIS.
Package-Manager: portage-HEAD/cvs/Linux x86_64
Diffstat (limited to 'dev-python/rhpl')
-rw-r--r--dev-python/rhpl/ChangeLog8
-rw-r--r--dev-python/rhpl/Manifest4
-rw-r--r--dev-python/rhpl/rhpl-0.213.ebuild63
3 files changed, 47 insertions, 28 deletions
diff --git a/dev-python/rhpl/ChangeLog b/dev-python/rhpl/ChangeLog
index 59ce4c3e4bea..af83261ce936 100644
--- a/dev-python/rhpl/ChangeLog
+++ b/dev-python/rhpl/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/rhpl
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/rhpl/ChangeLog,v 1.14 2009/12/07 13:07:23 djc Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/rhpl/ChangeLog,v 1.15 2010/05/31 18:57:23 arfrever Exp $
+
+ 31 May 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ rhpl-0.213.ebuild:
+ Set SUPPORT_PYTHON_ABIS.
07 Dec 2009; Dirkjan Ochtman <djc@gentoo.org> rhpl-0.213.ebuild,
metadata.xml:
diff --git a/dev-python/rhpl/Manifest b/dev-python/rhpl/Manifest
index 1c4538f19614..bd655dd75ae7 100644
--- a/dev-python/rhpl/Manifest
+++ b/dev-python/rhpl/Manifest
@@ -1,4 +1,4 @@
DIST rhpl-0.213-1.src.rpm 240783 RMD160 d60fed9cfb0d24b420b88f682d7a9b0542ff3326 SHA1 6839048ef5bd92700913952c8c1bbf3b8980de36 SHA256 bb9aa62c93e2a05fb87a82db48ba646e01678c28926b174e69c56e3440ab7ec9
-EBUILD rhpl-0.213.ebuild 1223 RMD160 f311a296b92461b03c181ecaae1a22d4eae6ab88 SHA1 87c004255df54232546de2787368627a76472387 SHA256 3f2ec2a466c765d43ff8e37204d05477e122316bf32b8e44ccc7e3b351231b38
-MISC ChangeLog 2123 RMD160 e0743f816b0b1445ef90efde04f627ce12813312 SHA1 ca7a1f726e4d5b650ab362a926a7d58dbaeb0d38 SHA256 e529cb91a2dc0f69ae91648e7b6fcf74ad0e4d0ed1ba00779285c0f3081f41ab
+EBUILD rhpl-0.213.ebuild 1412 RMD160 ce2dadcbd523ff2d9b73ba5848c0e3f48bbe532e SHA1 fa9dc07032c6658a6f69a40d13f8d373c1170bef SHA256 53c29915d47317a2d0385143a6eb912065491c9d2d7a9604a11011bc9d7c0283
+MISC ChangeLog 2250 RMD160 691df9cf66745131ae64f6574a773bdadd1ff6cb SHA1 089f6e3ba483e89cada24fb8e2a80329088f8007 SHA256 9607564d098f69fd764e73f1a5b99e3319397a421b62f04dbd275a281a65e027
MISC metadata.xml 161 RMD160 295dca78d1e997a333dcf54b6084afa5298b28fa SHA1 01db574d7072c1e555e182f88e889d11d3ae49bc SHA256 54c4e6d783f2571466c7b03622195c255b95cf06209e59ab6653a6366cdfde6e
diff --git a/dev-python/rhpl/rhpl-0.213.ebuild b/dev-python/rhpl/rhpl-0.213.ebuild
index e8ba83f41a75..1e3454deab9f 100644
--- a/dev-python/rhpl/rhpl-0.213.ebuild
+++ b/dev-python/rhpl/rhpl-0.213.ebuild
@@ -1,8 +1,13 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/rhpl/rhpl-0.213.ebuild,v 1.6 2009/12/07 13:07:23 djc Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/rhpl/rhpl-0.213.ebuild,v 1.7 2010/05/31 18:57:23 arfrever Exp $
-inherit eutils multilib python rpm toolchain-funcs distutils
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit multilib python rpm toolchain-funcs
# Revision of the RPM. Shouldn't affect us, as we're just grabbing the source
# tarball out of it
@@ -11,39 +16,49 @@ RPMREV="1"
DESCRIPTION="Library of python code used by Red Hat Linux programs"
HOMEPAGE="http://fedoraproject.org/wiki/SystemConfig"
SRC_URI="mirror://fedora-dev/development/source/SRPMS/${P}-${RPMREV}.src.rpm"
+
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
-RDEPEND="dev-lang/python
- !<sys-libs/libkudzu-1.2"
+
+RDEPEND="!<sys-libs/libkudzu-1.2"
DEPEND="${RDEPEND}
!s390? ( >=net-wireless/wireless-tools-28 )
sys-devel/gettext"
-src_unpack() {
- rpm_src_unpack
-# epatch "${FILESDIR}"/${PV}-use-raw-strings-for-gettext.diff
-
- sed -i \
- -e 's:gcc:$(CC):g' \
- "${S}"/src/Makefile
+src_prepare() {
+ sed -e '/compileall/d' -i Makefile || die "sed failed"
+ sed -e 's:gcc:$(CC):g' -i src/Makefile || die "sed failed"
+ python_src_prepare
}
src_compile() {
- python_version
- emake \
- PYTHON=python${PYVER} \
- LIBDIR=$(get_libdir) \
- ARCH=${ARCH} \
- CC=$(tc-getCC) \
- || die "emake failed"
+ building() {
+ emake \
+ PYTHON=$(PYTHON) \
+ LIBDIR=$(get_libdir) \
+ ARCH=${ARCH} \
+ CC=$(tc-getCC)
+ }
+ python_execute_function -s building
}
src_install() {
- emake \
- DESTDIR="${D}" \
- PYTHON=python${PYVER} \
- LIBDIR=$(get_libdir) \
- install || die "emake install failed"
+ installation() {
+ emake \
+ DESTDIR="${ED}" \
+ PYTHON=$(PYTHON) \
+ LIBDIR=$(get_libdir) \
+ install
+ }
+ python_execute_function -s installation
+}
+
+pkg_postinst() {
+ python_mod_optimize rhpl
+}
+
+pkg_postrm() {
+ python_mod_cleanup rhpl
}