summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2013-08-26 04:55:43 +0000
committerPatrick Lauer <patrick@gentoo.org>2013-08-26 04:55:43 +0000
commit1f101dc27e3eb44c558b517c8e345f547e209f0f (patch)
tree95acc72bc24dcfb3db4f521dd90beda386bb964e /dev-python/basemap
parentdev-haskell/mime-types: initial layout (diff)
downloadgentoo-2-1f101dc27e3eb44c558b517c8e345f547e209f0f.tar.gz
gentoo-2-1f101dc27e3eb44c558b517c8e345f547e209f0f.tar.bz2
gentoo-2-1f101dc27e3eb44c558b517c8e345f547e209f0f.zip
Bump
(Portage version: 2.2.1/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-python/basemap')
-rw-r--r--dev-python/basemap/ChangeLog7
-rw-r--r--dev-python/basemap/basemap-1.0.7.ebuild76
2 files changed, 82 insertions, 1 deletions
diff --git a/dev-python/basemap/ChangeLog b/dev-python/basemap/ChangeLog
index 5654a8583722..1615e08755b3 100644
--- a/dev-python/basemap/ChangeLog
+++ b/dev-python/basemap/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/basemap
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/basemap/ChangeLog,v 1.31 2013/01/22 03:52:42 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/basemap/ChangeLog,v 1.32 2013/08/26 04:55:43 patrick Exp $
+
+*basemap-1.0.7 (26 Aug 2013)
+
+ 26 Aug 2013; Patrick Lauer <patrick@gentoo.org> +basemap-1.0.7.ebuild:
+ Bump
*basemap-1.0.6 (22 Jan 2013)
diff --git a/dev-python/basemap/basemap-1.0.7.ebuild b/dev-python/basemap/basemap-1.0.7.ebuild
new file mode 100644
index 000000000000..71fc5c87d007
--- /dev/null
+++ b/dev-python/basemap/basemap-1.0.7.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/basemap/basemap-1.0.7.ebuild,v 1.1 2013/08/26 04:55:43 patrick Exp $
+
+EAPI=4
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
+
+inherit eutils distutils virtualx
+
+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 ~amd64-linux ~x86-linux"
+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() {
+ sed -i \
+ -e "s:/usr:${EPREFIX}/usr:g" \
+ setup.py || die
+ # 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} -name lib.\*)/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
+}