diff options
author | Patrick Lauer <patrick@gentoo.org> | 2012-06-27 07:19:01 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2012-06-27 07:19:01 +0000 |
commit | a17ae08a84433b1a2d3192fdeaf4e0d267332660 (patch) | |
tree | e5ab4789e4586551dc30932b1d3c367809c21b8b /dev-python/basemap | |
parent | Use explicit filenames for dodoc instead of shell glob wrt #415081 by David J... (diff) | |
download | gentoo-2-a17ae08a84433b1a2d3192fdeaf4e0d267332660.tar.gz gentoo-2-a17ae08a84433b1a2d3192fdeaf4e0d267332660.tar.bz2 gentoo-2-a17ae08a84433b1a2d3192fdeaf4e0d267332660.zip |
Bump for #423735
(Portage version: 2.2.0_alpha113/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/basemap')
-rw-r--r-- | dev-python/basemap/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/basemap/basemap-1.0.4.ebuild | 73 |
2 files changed, 79 insertions, 2 deletions
diff --git a/dev-python/basemap/ChangeLog b/dev-python/basemap/ChangeLog index 5ed48d8fc77d..03ad6f2a203c 100644 --- a/dev-python/basemap/ChangeLog +++ b/dev-python/basemap/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/basemap # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/basemap/ChangeLog,v 1.26 2012/05/29 08:38:34 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/basemap/ChangeLog,v 1.27 2012/06/27 07:19:01 patrick Exp $ + +*basemap-1.0.4 (27 Jun 2012) + + 27 Jun 2012; Patrick Lauer <patrick@gentoo.org> +basemap-1.0.4.ebuild: + Bump for #423735 29 May 2012; Tomáš Chvátal <scarabeus@gentoo.org> basemap-1.0.3.ebuild: Fix typo in REQUIRED_USE. Thanks to tomjbe for the spotting. @@ -139,4 +144,3 @@ +files/basemap-syslib.patch, +metadata.xml, +basemap-0.9.4.ebuild: Initial import. Close bug #105482 together with dev-python/basemap-data. Thanks Mike Elson <mike.elson@tiscali.de> for his initial ebuild. - diff --git a/dev-python/basemap/basemap-1.0.4.ebuild b/dev-python/basemap/basemap-1.0.4.ebuild new file mode 100644 index 000000000000..58652585898c --- /dev/null +++ b/dev-python/basemap/basemap-1.0.4.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/basemap/basemap-1.0.4.ebuild,v 1.1 2012/06/27 07:19:00 patrick Exp $ + +EAPI=4 +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*" + +inherit eutils distutils + +DESCRIPTION="matplotlib toolkit to plot map projections" +HOMEPAGE="http://matplotlib.sourceforge.net/basemap/doc/html/ http://pypi.python.org/pypi/basemap" +SRC_URI="mirror://sourceforge/matplotlib/${P}.tar.gz" + +IUSE="examples test" +SLOT="0" +KEYWORDS="~amd64 ~x86" +LICENSE="MIT GPL-2" + +CDEPEND="sci-libs/shapelib + >=dev-python/matplotlib-0.98 + >=sci-libs/geos-3.3.1[python]" + +DEPEND="${CDEPEND} + dev-python/setuptools" + +RDEPEND="${CDEPEND} + >=dev-python/pupynere-1.0.8 + dev-python/httplib2 + dev-python/dap" + +DOCS="FAQ API_CHANGES" + +REQUIRED_USE="test? ( examples )" + +src_prepare() { + # use /usr/share/data + sed -i \ + -e "/_datadir.*=.*join/s|\(.*datadir.*=\).*|\1'${EROOT}usr/share/${PN}'|g" \ + "${S}"/lib/mpl_toolkits/basemap/*.py || die + distutils_src_prepare +} + +# This one works. examples appear to be need be installed to run. +src_test() { + testing() { + pushd "$(find build-${PYTHON_ABI}/ -namelib.linux-*)/mpl_toolkits/basemap/" + PYTHONPATH=.:../../ "$(PYTHON)" test.py + popd + } + VIRTUALX_COMMAND=python_execute_function virtualmake testing +} + +src_install() { + distutils_src_install --install-data="${EPREFIX}/usr/share/${PN}" + + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples || die + fi + + # respect FHS + mv "${ED}$(python_get_sitedir -f)/mpl_toolkits/basemap/data" "${ED}usr/share/basemap" + + cleaning() { + # clean up collision with matplotlib + rm -f "${ED}$(python_get_sitedir)/mpl_toolkits/__init__.py" + # respect FHS + rm -fr "${ED}$(python_get_sitedir)/mpl_toolkits/basemap/data" + } + python_execute_function -q cleaning +} |