Set SUPPORT_PYTHON_ABIS.
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Thu, 8 Jul 2010 13:22:15 +0000 (13:22 +0000)
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
Thu, 8 Jul 2010 13:22:15 +0000 (13:22 +0000)
Package-Manager: portage-HEAD/cvs/Linux x86_64

dev-python/pypcap/ChangeLog
dev-python/pypcap/Manifest
dev-python/pypcap/pypcap-1.1-r1.ebuild

index 365bd282113a744d8a16c0ae8134a063d8de10e9..5e14182343a9321e603212d201a82b1373514546 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for dev-python/pypcap
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pypcap/ChangeLog,v 1.6 2010/02/07 21:03:14 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pypcap/ChangeLog,v 1.7 2010/07/08 13:22:15 arfrever Exp $
+
+  08 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+  pypcap-1.1-r1.ebuild:
+  Set SUPPORT_PYTHON_ABIS.
 
   07 Feb 2010; Peter Volkov <pva@gentoo.org> pypcap-1.1-r1.ebuild:
   Add inherit eutils: epatch is defined there.
index 00083856838de1bd2c7a5b2cb8e88923526ac0fa..2e3f0a8dd6d2281581804d628f286d1bffbde011 100644 (file)
@@ -1,5 +1,5 @@
 AUX include_path.patch 614 RMD160 4ddc3a915c7fba5cbb72aa7ccb3d3c567073d06e SHA1 11ee6d4db5faa8f1fe67f363c32d91c18e3c88ca SHA256 945ca669fe3478b9994241750a28cb6e94f7da466d05f42baef59715fcacb2af
 DIST pypcap-1.1.tar.gz 22951 RMD160 119dcc393d42678e6fa8f0b0f8b82536ab1efb13 SHA1 966f62deca16d5086e2ef6694b0c795f273da15c SHA256 087677295c795f543fad2c286df1807d55876e85d04f7292335cd149f4d8d47f
-EBUILD pypcap-1.1-r1.ebuild 1182 RMD160 5e15bbaba08966d1d1780ba07123e0efecbb20f8 SHA1 3d12e573f06b878dde0f3ba6f648b044646b785e SHA256 95298d509d3e5412fca8971327c77394ca4aacd891e03361a08a16958f768af1
-MISC ChangeLog 1005 RMD160 686c683a8a9058527c8faa499785d3c86e14fe76 SHA1 3d254deececf95f85cd719b0c2d5d00ae2242c23 SHA256 7a8e0d46b081b26ef796c3534f45474d0d0b918f6519e31cc59e4e4190d34d31
+EBUILD pypcap-1.1-r1.ebuild 1413 RMD160 a62b8d827cbeef171b3e1d0caaef75077d47d982 SHA1 2e024ddd46772887292d1e6a9253c8c7cc99c53d SHA256 9b5f1409482cf6cf96f05b4e41e0b3b0019884c3018d68265250d8f56a128d8f
+MISC ChangeLog 1135 RMD160 3a63321729e566b2334cc17bd5b05f19baa5dca1 SHA1 ab45f6ef9869beb17d60d641a939f162d5504e77 SHA256 e4384072a58d827c7da7987c99c04f0945b0b9169d0c0a61b607cdf3908639e1
 MISC metadata.xml 159 RMD160 900a8c55d7a7d2f6312594769aaf941bf9e99c7f SHA1 c8e604d56dae898258b5254d78cfeac0b981e288 SHA256 9f01104d3484792496faff4805eed0ecea2352a897151f3397d49a13800037b4
index 89b1335673c59aa3614f6573c52d671d6031f013..9776bc00aac119c95a65814e9ad35a245cff6750 100644 (file)
@@ -1,10 +1,13 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pypcap/pypcap-1.1-r1.ebuild,v 1.2 2010/02/07 21:03:14 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pypcap/pypcap-1.1-r1.ebuild,v 1.3 2010/07/08 13:22:15 arfrever Exp $
 
-NEED_PYTHON=2.3
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
 
-inherit eutils distutils
+inherit distutils eutils
 
 DESCRIPTION="Simplified object-oriented Python extension module for libpcap"
 HOMEPAGE="http://code.google.com/p/pypcap/"
@@ -19,31 +22,40 @@ RDEPEND="virtual/libpcap"
 DEPEND="${RDEPEND}
        >=dev-python/pyrex-0.9.5.1a"
 
-src_unpack() {
-       unpack ${A}
-       cd "${S}"
-       epatch "${FILESDIR}/include_path.patch" || die
+PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
+
+DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
+DOCS="CHANGES"
+
+src_prepare() {
+       epatch "${FILESDIR}/include_path.patch"
+       distutils_src_prepare
 }
 
-src_compile() {
-       # pcap.c was generated with pyrex-0.9.3
-       # and <=pyrex-0.9.5.1a is incompatible with python-2.5.
-       # So we regenerate it. Bug #180039
-       pyrexc pcap.pyx || die "pyrexc failed"
-       "${python}" setup.py config || die "config failed"
-       distutils_src_compile
+src_configure() {
+       configuration() {
+               # pcap.c was generated with pyrex-0.9.3
+               # and <=pyrex-0.9.5.1a is incompatible with python-2.5.
+               # So we regenerate it. Bug #180039
+               pyrexc pcap.pyx || die "pyrexc failed"
+               "$(PYTHON)" setup.py config
+       }
+       python_execute_function -s configuration
+}
+
+src_test() {
+       testing() {
+               # PYTHONPATH is set correctly in the test itself
+               "$(PYTHON)" test.py
+       }
+       python_execute_function -s testing
 }
 
 src_install() {
-       DOCS="CHANGES"
        distutils_src_install
-       if use examples ; then
+
+       if use examples; then
                insinto /usr/share/doc/${PF}
-               doins testsniff.py
+               doins testsniff.py || die "doins failed"
        fi
 }
-
-src_test() {
-       # PYTHONPATH is set correctly in the test itself
-       "${python}" test.py || die "tests failed"
-}