summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-07-23 23:27:30 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-07-23 23:27:30 +0000
commita6e852765fa7e471ddb1b9aa7622d9ff2e20faf1 (patch)
tree26aa0e3aea75354601692fa57931132e93e693aa /dev-python/natgrid
parentfix for mmx bug in 323745 (diff)
downloadgentoo-2-a6e852765fa7e471ddb1b9aa7622d9ff2e20faf1.tar.gz
gentoo-2-a6e852765fa7e471ddb1b9aa7622d9ff2e20faf1.tar.bz2
gentoo-2-a6e852765fa7e471ddb1b9aa7622d9ff2e20faf1.zip
Set SUPPORT_PYTHON_ABIS.
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/natgrid')
-rw-r--r--dev-python/natgrid/ChangeLog8
-rw-r--r--dev-python/natgrid/natgrid-0.1.ebuild26
2 files changed, 26 insertions, 8 deletions
diff --git a/dev-python/natgrid/ChangeLog b/dev-python/natgrid/ChangeLog
index 4ec7f0ec7a35..a069e71837d5 100644
--- a/dev-python/natgrid/ChangeLog
+++ b/dev-python/natgrid/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/natgrid
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/natgrid/ChangeLog,v 1.2 2008/10/28 18:13:09 bicatali Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/natgrid/ChangeLog,v 1.3 2010/07/23 23:27:30 arfrever Exp $
+
+ 23 Jul 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ natgrid-0.1.ebuild:
+ Set SUPPORT_PYTHON_ABIS.
28 Oct 2008; Sébastien Fabbro <bicatali@gentoo.org> natgrid-0.1.ebuild:
Removed mpl_toolkits/__init__.py which collides with matplotlib, updated
diff --git a/dev-python/natgrid/natgrid-0.1.ebuild b/dev-python/natgrid/natgrid-0.1.ebuild
index e7ae1d3591b6..e9e4b80ba0fe 100644
--- a/dev-python/natgrid/natgrid-0.1.ebuild
+++ b/dev-python/natgrid/natgrid-0.1.ebuild
@@ -1,6 +1,11 @@
-# Copyright 1999-2008 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/natgrid/natgrid-0.1.ebuild,v 1.2 2008/10/28 18:13:09 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/natgrid/natgrid-0.1.ebuild,v 1.3 2010/07/23 23:27:30 arfrever Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
inherit distutils
@@ -11,13 +16,22 @@ SRC_URI="mirror://sourceforge/matplotlib/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-
IUSE=""
-RDEPEND=">=dev-python/matplotlib-0.98"
+
+DEPEND=">=dev-python/matplotlib-0.98"
+RDEPEND="${DEPEND}"
+
+PYTHON_MODNAME="mpl_toolkits/natgrid"
src_install() {
distutils_src_install
+
insinto /usr/share/doc/${PF}
- rm -f "${D}"/usr/lib*/python*/site-packages/mpl_toolkits/__init__.py
- doins test.py || die
+ doins test.py || die "doins failed"
+
+ # Fix collision with dev-python/matplotlib.
+ delete_mpl_toolkits.__init__() {
+ rm -f "${ED}$(python_get_sitedir)/mpl_toolkits/__init__.py"
+ }
+ python_execute_function -q delete_mpl_toolkits.__init__
}