summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-07-09 22:10:37 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-07-09 22:10:37 +0000
commitee51f2a2978ea5cf3471a492e46fd77b078fc0d2 (patch)
tree4ec25af0a8ddfcabf0253a3f8839f7bd52accd94 /dev-python/pypam
parentppc64 stable wrt #325179 (diff)
downloadhistorical-ee51f2a2978ea5cf3471a492e46fd77b078fc0d2.tar.gz
historical-ee51f2a2978ea5cf3471a492e46fd77b078fc0d2.tar.bz2
historical-ee51f2a2978ea5cf3471a492e46fd77b078fc0d2.zip
Set SUPPORT_PYTHON_ABIS.
Package-Manager: portage-HEAD/cvs/Linux x86_64
Diffstat (limited to 'dev-python/pypam')
-rw-r--r--dev-python/pypam/ChangeLog8
-rw-r--r--dev-python/pypam/Manifest14
-rw-r--r--dev-python/pypam/pypam-0.5.0.ebuild41
3 files changed, 26 insertions, 37 deletions
diff --git a/dev-python/pypam/ChangeLog b/dev-python/pypam/ChangeLog
index aa93eaec86bf..0ae9a96795d5 100644
--- a/dev-python/pypam/ChangeLog
+++ b/dev-python/pypam/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/pypam
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pypam/ChangeLog,v 1.4 2008/03/12 18:12:49 phreak Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pypam/ChangeLog,v 1.5 2010/07/09 22:10:37 arfrever Exp $
+
+ 09 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ pypam-0.5.0.ebuild:
+ Set SUPPORT_PYTHON_ABIS.
12 Mar 2008; Christian Heim <phreak@gentoo.org> metadata.xml:
Removing Marien Zwart (marienz, #107204) from metadata.xml.
diff --git a/dev-python/pypam/Manifest b/dev-python/pypam/Manifest
index a94cb140861e..02660c8df4dc 100644
--- a/dev-python/pypam/Manifest
+++ b/dev-python/pypam/Manifest
@@ -1,16 +1,6 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
AUX pypam-0.5.0-python-2.5.patch 345 RMD160 043d17a6efc62528fc2e730db0f2b3e3bc4c65b6 SHA1 dac511a2b1005150ff14e7884dde9bfb4585b2e8 SHA256 61e70532bae391befa2d13659dca8ba9065a4f69917d78b26a7f056fef00bea0
AUX pypam-0.5.0-stricter.patch 335 RMD160 d56064ab2c856ab883901a6ce928fe360b080914 SHA1 38264c8d9ecd8c3e88742d7587fd733616ea1805 SHA256 c6a389f7346a237501b58fa3a0ba9618616a03f506c7df262ad55cc9a5207939
DIST PyPAM-0.5.0.tar.gz 105206 RMD160 e54388742bd5cdbf8fc663980f4cfbdc516b5845 SHA1 fac6c2958fffc38454b1104d2d0f1f28563eff42 SHA256 796ac019b9ee805696d0d277d8fb912fa2391b6ac070dc6f9f1a9a0fadbc3a5a
-EBUILD pypam-0.5.0.ebuild 1301 RMD160 f308e3b7be9036105a189a849f975c885c1ad40a SHA1 a13a93423653da51732302fa1d8f87e0e9dc48e8 SHA256 1935be9223efbe87a96f71a270e0307c49e71fd68e155f3eb2f1f8f21218eba7
-MISC ChangeLog 699 RMD160 202e28bd92400383889dee1577270852566f86b6 SHA1 05ce842568ddf52ad4d5eba0db4d148e29eb682f SHA256 3b009064406d3a319a7bd1c659026d0d1957349b49272913ce50ebea66dd3e73
+EBUILD pypam-0.5.0.ebuild 1083 RMD160 c746dca2784fce03d6d8506d1bd2007c705ef296 SHA1 1f39a990804cb9e8348aa558d88c1a28350aedb7 SHA256 64a0b931bcb546e1c684bd9190dee0a52e9b340a8acdebfb3cdbca5e9a4b3b2e
+MISC ChangeLog 824 RMD160 9dacbb0fb74055cd8a91f433e44dd7539aa320e7 SHA1 18e4cd44a98ea498f12d467aa37eef3ca3c905c9 SHA256 90e81e2755b18419070f4671ae7aaccf5009c957eade6c5506fe6d2d15f09cc1
MISC metadata.xml 160 RMD160 e730f96ab97c5be577a6d6d05f04990374a0dffb SHA1 2aa5e6be9c265c0e7bceb78ee9fd20df5f818e36 SHA256 6cd954a9de2307c57d32b25fa3599dee2908a4ddc6a98594f593d53577307a3a
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.7 (GNU/Linux)
-
-iD8DBQFH2B0nyuNVb5qfaOYRAhDMAJ4sd8bhyUpC3B0ona9QhnU0IE02LwCfWgaO
-V2dPPWc1zTz2XZc+3+R8Zhk=
-=jPOK
------END PGP SIGNATURE-----
diff --git a/dev-python/pypam/pypam-0.5.0.ebuild b/dev-python/pypam/pypam-0.5.0.ebuild
index 654b43fabe51..2b7c00c852ce 100644
--- a/dev-python/pypam/pypam-0.5.0.ebuild
+++ b/dev-python/pypam/pypam-0.5.0.ebuild
@@ -1,10 +1,16 @@
-# Copyright 1999-2007 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/pypam/pypam-0.5.0.ebuild,v 1.2 2007/06/24 14:18:26 angelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pypam/pypam-0.5.0.ebuild,v 1.3 2010/07/09 22:10:37 arfrever Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
inherit distutils eutils
-MY_P=${P/pypam/PyPAM}
+MY_PN="PyPAM"
+MY_P="${MY_PN}-${PV}"
DESCRIPTION="Python Bindings for PAM (Pluggable Authentication Modules)"
HOMEPAGE="http://www.pangalactic.org/PyPAM"
@@ -18,13 +24,14 @@ IUSE=""
DEPEND=">=sys-libs/pam-0.64"
RDEPEND="${DEPEND}"
-S=${WORKDIR}/${MY_P}
+S="${WORKDIR}/${MY_P}"
+
+PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
DOCS="AUTHORS examples/pamtest.py"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
+ distutils_src_prepare
# Fix a PyObject/PyMEM mixup.
epatch "${FILESDIR}/${P}-python-2.5.patch"
@@ -33,20 +40,8 @@ src_unpack() {
}
src_test() {
- "${python}" setup.py install --home="${T}/test" \
- || die "testinstall failed"
- PYTHONPATH="${T}/test/$(get_libdir)/python" "${python}" tests/PamTest.py \
- || die "tests failed"
-}
-
-pkg_postinst() {
- # HACK: we do not install any .py files, so there is no reason to
- # run python_mod_optimize here, like distutils_pkg_postrm does.
- :
-}
-
-pkg_postrm() {
- # HACK: we do not install any .py files, so there is no reason to
- # run python_mod_cleanup here, like distutils_pkg_postrm does.
- :
+ testing() {
+ PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" tests/PamTest.py
+ }
+ python_execute_function testing
}