diff options
Diffstat (limited to 'dev-python/natgrid/natgrid-0.1.ebuild')
-rw-r--r-- | dev-python/natgrid/natgrid-0.1.ebuild | 26 |
1 files changed, 20 insertions, 6 deletions
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__ } |