summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-02-07 21:38:55 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-02-07 21:38:55 +0000
commitb107be8460e8daaaede2192f6b1af613fa9dd8b4 (patch)
treebe4c5554cfaf08d2e905c9136c1db43dbd66aa91 /sys-process
parentAdded upstream build fix for newer gcc/kde versions (bug 353751) (diff)
downloadhistorical-b107be8460e8daaaede2192f6b1af613fa9dd8b4.tar.gz
historical-b107be8460e8daaaede2192f6b1af613fa9dd8b4.tar.bz2
historical-b107be8460e8daaaede2192f6b1af613fa9dd8b4.zip
Support installation for multiple Python ABIs (bug #316965).
Package-Manager: portage-2.2.0_alpha21_p2/cvs/Linux x86_64
Diffstat (limited to 'sys-process')
-rw-r--r--sys-process/audit/ChangeLog6
-rw-r--r--sys-process/audit/Manifest4
-rw-r--r--sys-process/audit/audit-2.0.5.ebuild39
3 files changed, 44 insertions, 5 deletions
diff --git a/sys-process/audit/ChangeLog b/sys-process/audit/ChangeLog
index 439ff0b9364b..c536d283d6bd 100644
--- a/sys-process/audit/ChangeLog
+++ b/sys-process/audit/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-process/audit
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/audit/ChangeLog,v 1.63 2011/02/07 21:00:11 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-process/audit/ChangeLog,v 1.64 2011/02/07 21:38:55 arfrever Exp $
+
+ 07 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ audit-2.0.5.ebuild:
+ Support installation for multiple Python ABIs (bug #316965).
07 Feb 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
audit-2.0.5.ebuild, +files/audit-2.0.5-python.patch:
diff --git a/sys-process/audit/Manifest b/sys-process/audit/Manifest
index 5ca90e33dfd9..0d0e6a5704f2 100644
--- a/sys-process/audit/Manifest
+++ b/sys-process/audit/Manifest
@@ -20,6 +20,6 @@ EBUILD audit-1.7.17.ebuild 3346 RMD160 b5c544dc6fabcd53b41732ff048e5e72de240c0c
EBUILD audit-1.7.3.ebuild 3119 RMD160 5036218621967dfe96e67e8d15495339a2c2546a SHA1 c190585b40f6cb5e61854478cc9a8230b943a0cb SHA256 e8829e3142591cdad84436e351b592f65e58e93311910793b06334fbfab474c1
EBUILD audit-1.7.4.ebuild 3386 RMD160 08e8eb343453a0baf399c14da4ef6d7bb9cca6a7 SHA1 065f93afe99e9ef16727e8e520dbfecfd71f9062 SHA256 00c317122739377dbf6d84cecdd9d9ba072a5ae2fc97df14ffbe3e5ce8d327a3
EBUILD audit-1.7.9.ebuild 3126 RMD160 4673b38baf4309ee373364e68382fa1abd06643c SHA1 0e56057f28958e7f2f531757d0d0e59c0c5a9e1e SHA256 5c5d651b5420e65d4c38396630573385d48f8d5ffb91fa821106b618bb569f72
-EBUILD audit-2.0.5.ebuild 3470 RMD160 e0cbbb1c60ebb827c9d2a48134df07b03f0c6ae7 SHA1 3671567375b52ecdf22490cac4059ddce7a6a00b SHA256 ff01b3edc78da207a54c17e4bd21a6ca7a8d311c8f2e2e44f463a2062b735057
-MISC ChangeLog 10166 RMD160 4b06f39c3d0597778aa7916a9e4be108e2f2b1d0 SHA1 1ed5ae2f146ad840dc20c5007562994d68765c36 SHA256 3ff09d75279aee18985c2d7768e70bab7e4764aa1f6efbc291312dbe5fd55a1b
+EBUILD audit-2.0.5.ebuild 4229 RMD160 22b22ca83f313bf0fe232375240c086592f3f9f3 SHA1 51644340f165529fbda400b70c729b0f53e24bca SHA256 3d4b423cc02754032e8f36da01fc33dee562b45610b89d0f839fa39278c8fee2
+MISC ChangeLog 10325 RMD160 dcd57054f5e56d4a73e6889cef28bd4036ad9758 SHA1 cd0c8da6505122acbe9a8414dcb9b578440952b1 SHA256 b7f67cc9b4f2db9bb571996606078a3cbf502e8b59bc9ab3b008e0b738f00372
MISC metadata.xml 231 RMD160 e78f0580e975fa82702433055e1498b0d9228104 SHA1 de14a9907da991c933aed57aeba714d7b7ce28c6 SHA256 f62f6487425736b6d2f27bb84ee09ccee245c1abf74462b6fbcb90f2c368ad2e
diff --git a/sys-process/audit/audit-2.0.5.ebuild b/sys-process/audit/audit-2.0.5.ebuild
index 77a406a4add4..0f72abf14624 100644
--- a/sys-process/audit/audit-2.0.5.ebuild
+++ b/sys-process/audit/audit-2.0.5.ebuild
@@ -1,9 +1,11 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/audit/audit-2.0.5.ebuild,v 1.2 2011/02/07 21:00:11 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-process/audit/audit-2.0.5.ebuild,v 1.3 2011/02/07 21:38:55 arfrever Exp $
EAPI="3"
PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
inherit autotools multilib toolchain-funcs python linux-info
@@ -31,8 +33,8 @@ CONFIG_CHECK="~AUDIT"
pkg_setup() {
linux-info_pkg_setup
- python_set_active_version 2
python_pkg_setup
+ PYTHON_DIRS="bindings/python swig"
}
src_prepare() {
@@ -67,6 +69,10 @@ src_prepare() {
# Don't build static version of Python module.
epatch "${FILESDIR}"/${P}-python.patch
+ # Python bindings are built/installed manually.
+ sed -e "/^SUBDIRS =/s/ python//" -i bindings/Makefile.am
+ sed -e "/^SUBDIRS =/s/ swig//" -i Makefile.am
+
# Regenerate autotooling
eautoreconf
@@ -83,8 +89,37 @@ src_configure() {
econf --sbindir=/sbin $(use_with prelude)
}
+src_compile() {
+ default
+
+ python_copy_sources ${PYTHON_DIRS}
+
+ building() {
+ emake \
+ PYTHON_VERSION="$(python_get_version)" \
+ pyexecdir="$(python_get_sitedir)"
+ }
+ local dir
+ for dir in ${PYTHON_DIRS}; do
+ python_execute_function -s --source-dir ${dir} building
+ done
+}
+
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
+
+ installation() {
+ emake \
+ DESTDIR="${D}" \
+ PYTHON_VERSION="$(python_get_version)" \
+ pyexecdir="$(python_get_sitedir)" \
+ install
+ }
+ local dir
+ for dir in ${PYTHON_DIRS}; do
+ python_execute_function -s --source-dir ${dir} installation
+ done
+
dodoc AUTHORS ChangeLog README* THANKS TODO
docinto contrib
dodoc contrib/*