summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-18 12:19:53 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-18 12:19:53 +0000
commit1603e0c791747ce72d00a60b4ee652d5dfaee6c5 (patch)
treea96395c0d86b072375ebe21a2f27bbc31ec77afc /dev-python/python-ptrace
parentversion bump (diff)
downloadgentoo-2-1603e0c791747ce72d00a60b4ee652d5dfaee6c5.tar.gz
gentoo-2-1603e0c791747ce72d00a60b4ee652d5dfaee6c5.tar.bz2
gentoo-2-1603e0c791747ce72d00a60b4ee652d5dfaee6c5.zip
Set SUPPORT_PYTHON_ABIS.
(Portage version: 14278-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/python-ptrace')
-rw-r--r--dev-python/python-ptrace/ChangeLog6
-rw-r--r--dev-python/python-ptrace/python-ptrace-0.6.ebuild30
2 files changed, 29 insertions, 7 deletions
diff --git a/dev-python/python-ptrace/ChangeLog b/dev-python/python-ptrace/ChangeLog
index 0ad7349c3237..06d1f34785c8 100644
--- a/dev-python/python-ptrace/ChangeLog
+++ b/dev-python/python-ptrace/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/python-ptrace
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ptrace/ChangeLog,v 1.3 2009/09/04 18:09:41 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ptrace/ChangeLog,v 1.4 2009/09/18 12:19:53 arfrever Exp $
+
+ 18 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ python-ptrace-0.6.ebuild:
+ Set SUPPORT_PYTHON_ABIS.
04 Sep 2009; Patrick Lauer <patrick@gentoo.org> -python-ptrace-0.5.ebuild:
Remove old
diff --git a/dev-python/python-ptrace/python-ptrace-0.6.ebuild b/dev-python/python-ptrace/python-ptrace-0.6.ebuild
index 48ce4d0d9969..a97dc96f634f 100644
--- a/dev-python/python-ptrace/python-ptrace-0.6.ebuild
+++ b/dev-python/python-ptrace/python-ptrace-0.6.ebuild
@@ -1,21 +1,39 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ptrace/python-ptrace-0.6.ebuild,v 1.1 2009/02/28 19:31:22 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/python-ptrace/python-ptrace-0.6.ebuild,v 1.2 2009/09/18 12:19:53 arfrever Exp $
-NEED_PYTHON=2.4
+EAPI="2"
+
+NEED_PYTHON="2.5"
+SUPPORT_PYTHON_ABIS="1"
inherit distutils
DESCRIPTION="python-ptrace is a debugger using ptrace (Linux, BSD and Darwin system call to trace processes)."
-HOMEPAGE="http://python-ptrace.hachoir.org/"
-SRC_URI="http://pypi.python.org/packages/source/p/python-ptrace/${P}.tar.gz"
+HOMEPAGE="http://bitbucket.org/haypo/python-ptrace/wiki/Home http://pypi.python.org/pypi/python-ptrace"
+SRC_URI="http://pypi.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~x86 ~amd64"
+KEYWORDS="~amd64 ~x86"
IUSE=""
-DEPEND="|| ( ( =dev-lang/python-2.4* dev-python/ctypes ) >=dev-lang/python-2.5 )"
+DEPEND=""
RDEPEND="dev-libs/distorm64"
+RESTRICT_PYTHON_ABIS="2.4"
+DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1"
PYTHON_MODNAME="ptrace"
+
+src_prepare() {
+ python_copy_sources --no-link
+
+ conversion() {
+ [[ "${PYTHON_ABI}" == 2.* ]] && return
+
+ 2to3-${PYTHON_ABI} -w . > /dev/null || die "2to3 failed"
+ 2to3-${PYTHON_ABI} -dw . > /dev/null || die "2to3 failed"
+ epatch python3.0.patch
+ }
+ python_execute_function --action-message 'Applying patches for Python ${PYTHON_ABI}' --failure-message 'Applying patches for Python ${PYTHON_ABI} failed' -s conversion
+}