summaryrefslogtreecommitdiff
path: root/dev-python/basemap
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/basemap
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/basemap')
-rw-r--r--dev-python/basemap/Manifest5
-rw-r--r--dev-python/basemap/basemap-1.0.7-r1.ebuild72
-rw-r--r--dev-python/basemap/metadata.xml19
3 files changed, 96 insertions, 0 deletions
diff --git a/dev-python/basemap/Manifest b/dev-python/basemap/Manifest
new file mode 100644
index 000000000000..09e6b951d1f4
--- /dev/null
+++ b/dev-python/basemap/Manifest
@@ -0,0 +1,5 @@
+DIST basemap-1.0.7.tar.gz 129694711 SHA256 e07ec2e0d63b24c9aed25a09fe8aff2598f82a85da8db74190bac81cbf104531 SHA512 dc8ef8f02127813c9460c6a9c22c593616bbe8ff39f6507abb786d344c710b296bf4f21759b5c1e6fc8ccf3f478d8fb6f546429528575d13f732c4233aaf9c20 WHIRLPOOL 7da55c32cdcea897e71367ec7d2b916a66973a7a761b001c0be5a9a5d97347a51c51e57828fb46f8c70b3a6576c562377657d129dc6fb54333e76897aaf76f6e
+EBUILD basemap-1.0.7-r1.ebuild 2111 SHA256 0877fcc35c5969e961a8e326794dd785d32345b99f3e76cad8eaa60a764f1855 SHA512 c0e07fea6e6270dfcd92aedf2a7c639788f564dae1a789c3b1860d7d202eb9bbc992d71b50f75f362065a887d0fa363ba4328f4f7936a37b6731a939c52f6f4a WHIRLPOOL fd7835debf03af20f64d5697f08b171f2f9e73c84595ab910033eb530123b64891ec6f8dd6244916c09d13afdc694d774860cecc3882101084d6536ab5a08368
+MISC ChangeLog 2581 SHA256 c9a14afdfedbdeeb794e7c685fbc84bd87b90cc4468fb3dba54aa07eb8ae9c71 SHA512 21163be2e7124ad13903488eec6bc9e5b8c26b1d70c4d2a28e58ffd23f9404917083d8bc6cea246bb6104588dc2911421a19cda21e238241326dfdc21f40dc32 WHIRLPOOL ede26d165bce449849d5bcc830ea613389ab4693d941f41582895c5201d07599435516d8eabf60af97892bfef2145dd42e0bdda2f7d0fa809827efe3680311dc
+MISC ChangeLog-2015 6501 SHA256 c8a24557aec40952be6450fa3397ab5e0c018f2553030dc24365a9b6dc8dda49 SHA512 e999dcf63f167214a477792ca67d23082698e9d4cf877a1b9424a89dfa51be28eec8ea505c93b22616fe6aad1be56adb124dcd2bd0f3b202056cccc21f2d1a3d WHIRLPOOL 8f6c52b999f05a90aa3c4ac8f67362759c37deee1761f04af72c2823babb65d97e8e9cd1502ca0e155b449d6b266d9289a3270e0ba06763b9a98c33cb8991d80
+MISC metadata.xml 612 SHA256 25cf307de12e430b3a9192df2989e7de314a87864c8b7eadba0134874fb57bcb SHA512 c4aca7fba6e4b7c746b775b00629ff3388b6bfbe7a1045fc85f25649444afd945fc97ad2085d8119458e69e23cb73beeb4e04e85e25d9debc8c2f93573f0e0ca WHIRLPOOL f5051c47d830166ea4ef32bfded7d121bc32306abf511e3bc11101a8fd37702c8af6232c4823db36257f131cc287505cc44f294a0598d0269181e03acfb24cbe
diff --git a/dev-python/basemap/basemap-1.0.7-r1.ebuild b/dev-python/basemap/basemap-1.0.7-r1.ebuild
new file mode 100644
index 000000000000..4c9f746eb7c3
--- /dev/null
+++ b/dev-python/basemap/basemap-1.0.7-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 flag-o-matic
+
+DESCRIPTION="matplotlib toolkit to plot map projections"
+HOMEPAGE="http://matplotlib.org/basemap/ https://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[${PYTHON_USEDEP}]
+ >=sci-libs/geos-3.3.1[python,${PYTHON_USEDEP}]"
+
+DEPEND="${CDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+RDEPEND="${CDEPEND}
+ >=dev-python/pupynere-1.0.8[${PYTHON_USEDEP}]
+ dev-python/httplib2[${PYTHON_USEDEP}]
+ dev-python/dap[${PYTHON_USEDEP}]"
+
+DOCS="FAQ API_CHANGES"
+#REQUIRED_USE="test? ( examples )"
+# The test phase ought never have been onvoked according to the above.
+# The test phase appears to require the package to fist be emerged, which ...
+# Until the distutils_install_for_testing func refrains from failing with
+# mkdir: cannot create directory ‘/test’: Permission denied
+# reluctantly this phase is assigned
+RESTRICT="test"
+
+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-r1_src_prepare
+ append-flags -fno-strict-aliasing
+}
+
+#src_test() {
+# distutils_install_for_testing
+#}
+
+python_install() {
+ distutils-r1_python_install
+ # --install-data="${EPREFIX}/usr/share/${PN}" on testing is found not to work;
+ # setup.py is a mess. Someone care to patch setup.py please proceed; substitute with
+ insinto usr/share/basemap/
+ doins lib/mpl_toolkits/basemap/data/*
+
+ # clean up collision with matplotlib
+ rm -f "${D}$(python_get_sitedir)/mpl_toolkits/__init__.py"
+ # respect FHS
+ rm -fr "${D}$(python_get_sitedir)/mpl_toolkits/basemap/data"
+}
+
+python_install_all() {
+ use examples && local EXAMPLES=( examples/. )
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/basemap/metadata.xml b/dev-python/basemap/metadata.xml
new file mode 100644
index 000000000000..003ba68e1467
--- /dev/null
+++ b/dev-python/basemap/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-geosciences@gentoo.org</email>
+ <name>Gentoo Geosciences Project</name>
+ </maintainer>
+ <longdescription>
+ basemap is a matplotlib toolkit. It allows to plot data on map
+ projections (with continental and political boundaries).
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">matplotlib</remote-id>
+ </upstream>
+</pkgmetadata>