diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2007-02-24 01:02:33 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2007-02-24 01:02:33 +0000 |
commit | 5366beaff3d3bc30c3a6ba9f3912975e212ea2a2 (patch) | |
tree | 945bf11b918c7528ed33e410922f8360114774aa /dev-python/basemap | |
parent | Fix dependencies, bug #168179 (diff) | |
download | gentoo-2-5366beaff3d3bc30c3a6ba9f3912975e212ea2a2.tar.gz gentoo-2-5366beaff3d3bc30c3a6ba9f3912975e212ea2a2.tar.bz2 gentoo-2-5366beaff3d3bc30c3a6ba9f3912975e212ea2a2.zip |
iniinitial import of basemap
(Portage version: 2.1.2-r9)
Diffstat (limited to 'dev-python/basemap')
-rw-r--r-- | dev-python/basemap/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/basemap/Manifest | 20 | ||||
-rw-r--r-- | dev-python/basemap/basemap-0.9.4.ebuild | 41 | ||||
-rw-r--r-- | dev-python/basemap/files/basemap-syslib.patch | 57 | ||||
-rw-r--r-- | dev-python/basemap/files/digest-basemap-0.9.4 | 3 | ||||
-rw-r--r-- | dev-python/basemap/metadata.xml | 10 |
6 files changed, 141 insertions, 0 deletions
diff --git a/dev-python/basemap/ChangeLog b/dev-python/basemap/ChangeLog new file mode 100644 index 000000000000..75787da6583f --- /dev/null +++ b/dev-python/basemap/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-python/basemap +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/basemap/ChangeLog,v 1.1 2007/02/24 01:02:33 bicatali Exp $ + +*basemap-0.9.4 (24 Feb 2007) + + 24 Feb 2007; Sébastien Fabbro <bicatali@gentoo.org> + +files/basemap-syslib.patch, +metadata.xml, +basemap-0.9.4.ebuild: + Initial import. Close bug #105482 together with dev-python/basemap-data. + diff --git a/dev-python/basemap/Manifest b/dev-python/basemap/Manifest new file mode 100644 index 000000000000..5b6a97464a67 --- /dev/null +++ b/dev-python/basemap/Manifest @@ -0,0 +1,20 @@ +AUX basemap-syslib.patch 2448 RMD160 32894031a0f687c015dcc87bd3b96e2779bcd139 SHA1 8c277d2a1d4aa3dceea47deea613d31f80cc3c94 SHA256 56570c18c9bfba2c3287dcc72d5e7a7f0f56cf1008919c7c01f53e2dc5682d65 +MD5 29641c2eb0c937d665f8de4da471e1aa files/basemap-syslib.patch 2448 +RMD160 32894031a0f687c015dcc87bd3b96e2779bcd139 files/basemap-syslib.patch 2448 +SHA256 56570c18c9bfba2c3287dcc72d5e7a7f0f56cf1008919c7c01f53e2dc5682d65 files/basemap-syslib.patch 2448 +DIST basemap-0.9.4.tar.gz 7490506 RMD160 b6f6c9f4ff4505d40bc82811177678f3299b6af9 SHA1 3dc2b619aa6201afdb79d9765c7435029c8c1bfd SHA256 03823c3fc7fd6b516661df73f696c9dbbb46e5646d323f0a142059f7ea6db85e +EBUILD basemap-0.9.4.ebuild 848 RMD160 59de54ceb85624851df5e35eae446da61384eca9 SHA1 ca8400823647f49e672a9ca04e62750683af2773 SHA256 b9f0065c5257a1bc824d314d59c4fd2c3ea4c15ce92396d3d1a2fe03bab0c8aa +MD5 dc0d51c8e6470f35cfcaaadc07401892 basemap-0.9.4.ebuild 848 +RMD160 59de54ceb85624851df5e35eae446da61384eca9 basemap-0.9.4.ebuild 848 +SHA256 b9f0065c5257a1bc824d314d59c4fd2c3ea4c15ce92396d3d1a2fe03bab0c8aa basemap-0.9.4.ebuild 848 +MISC ChangeLog 349 RMD160 a607a45ee8d54d6014b243264d07a682cbf102e7 SHA1 9fae7915f304be8940af14ff43304ade60b7fca4 SHA256 953d547d25f074497b6a1d567c87e90e6f646430c9c868c932a19c64e52b91df +MD5 3d24d44e5549e475dcd76d6b0e37142a ChangeLog 349 +RMD160 a607a45ee8d54d6014b243264d07a682cbf102e7 ChangeLog 349 +SHA256 953d547d25f074497b6a1d567c87e90e6f646430c9c868c932a19c64e52b91df ChangeLog 349 +MISC metadata.xml 345 RMD160 9b474bcb23ff1a46d81359f0cd50000ae5f6e2e8 SHA1 aef929468d8ef9a1c5161279d0c0eb16a8841811 SHA256 6912d4e1753bb1e71bd921542f553906102957bac010e60a1c08a98063d24496 +MD5 e0ff99ac22d52ced9880130ac19664f4 metadata.xml 345 +RMD160 9b474bcb23ff1a46d81359f0cd50000ae5f6e2e8 metadata.xml 345 +SHA256 6912d4e1753bb1e71bd921542f553906102957bac010e60a1c08a98063d24496 metadata.xml 345 +MD5 100c090e782f1435825114792a11f0f3 files/digest-basemap-0.9.4 244 +RMD160 612bebf42e397c58c3de6ac10013a20f14391d28 files/digest-basemap-0.9.4 244 +SHA256 e1e6f938b510fa71ed209bbd456c375a165d7fada0d7651da1c6c97a6bc91bae files/digest-basemap-0.9.4 244 diff --git a/dev-python/basemap/basemap-0.9.4.ebuild b/dev-python/basemap/basemap-0.9.4.ebuild new file mode 100644 index 000000000000..a83141be1204 --- /dev/null +++ b/dev-python/basemap/basemap-0.9.4.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/basemap/basemap-0.9.4.ebuild,v 1.1 2007/02/24 01:02:33 bicatali Exp $ + +inherit distutils + +DESCRIPTION="matplotlib toolkit to plot map projections" +HOMEPAGE="http://matplotlib.sourceforge.net/matplotlib.toolkits.basemap.basemap.html" +SRC_URI="mirror://sourceforge/matplotlib/${P}.tar.gz" + +IUSE="examples" +SLOT="0" +KEYWORDS="~amd64 ~x86" +LICENSE="MIT GPL-2" +RESTRICT="test" + +DEPEND="sci-libs/shapelib + sci-libs/proj" + +RDEPEND="${DEPEND} + >=dev-python/matplotlib-0.87.3 + dev-python/basemap-data" + +DOCS="FAQ" + +src_unpack() { + unpack ${A} + # patch to use proj and shapelib system libraries + epatch "${FILESDIR}/${PN}-syslib.patch" + cd "${S}" + mv src/pyproj.* . + rm -rf src +} + +src_install() { + distutils_src_install + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins examples/* + fi +} diff --git a/dev-python/basemap/files/basemap-syslib.patch b/dev-python/basemap/files/basemap-syslib.patch new file mode 100644 index 000000000000..7b559576f624 --- /dev/null +++ b/dev-python/basemap/files/basemap-syslib.patch @@ -0,0 +1,57 @@ +--- basemap-0.9.4/setup.py.orig 2006-06-07 11:36:02.000000000 -0600 ++++ basemap-0.9.4/setup.py 2006-07-03 11:54:16.000000000 -0600 +@@ -11,7 +11,7 @@ + DBFUpdateHeader is available, we scan shapefil.h for the string + 'DBFUpdateHeader'. + """ +- f = open(convert_path("pyshapelib/shapelib/shapefil.h")) ++ f = open(convert_path("/usr/include/libshp/shapefil.h")) + contents = f.read() + f.close() + if contents.find("DBFUpdateHeader") >= 0: +@@ -21,36 +21,27 @@ + + deps = glob.glob('src/*.c') + +-extensions = [Extension("pyproj",deps,include_dirs = ['src'],)] ++extensions = [Extension("pyproj",['pyproj.c'],libraries=["proj"])] + packages = ['matplotlib.toolkits.basemap'] + package_dirs = {'':'lib'} + +-# only install shapelib and dbflib if user hasn't got them. +-#try: import shapelib +-#except ImportError: haveshapelib = False +-#else: haveshapelib = True +-#try: import dbflib +-#except ImportError: havedbflib = False +-#else: havedbflib = True +-#if not haveshapelib or not havedbflib: +-# always intall shapelib and dbflib. ++# Always build pyshapelib for RPM consistency, uses system shapelib + if 1: + packages = packages + ['shapelib','dbflib'] + package_dirs['shapelib'] ='lib/shapelib' + package_dirs['dbflib'] ='lib/dbflib' + extensions = extensions + \ + [Extension("shapelibc", +- ["pyshapelib/shapelib_wrap.c", +- "pyshapelib/shapelib/shpopen.c", +- "pyshapelib/shapelib/shptree.c"], +- include_dirs = ["pyshapelib/shapelib"]), ++ ["pyshapelib/shapelib_wrap.c"], ++ include_dirs = ["/usr/include/libshp"], ++ libraries=["shp"]), + Extension("shptree", + ["pyshapelib/shptreemodule.c"], +- include_dirs = ["pyshapelib/shapelib"]), ++ include_dirs = ["/usr/include/libshp"]), + Extension("dbflibc", +- ["pyshapelib/dbflib_wrap.c", +- "pyshapelib/shapelib/dbfopen.c"], +- include_dirs = ["pyshapelib/shapelib"], ++ ["pyshapelib/dbflib_wrap.c"], ++ include_dirs = ["/usr/include/libshp"], ++ libraries = ["shp"], + define_macros = dbf_macros()) ] + + if 'setuptools' in sys.modules: diff --git a/dev-python/basemap/files/digest-basemap-0.9.4 b/dev-python/basemap/files/digest-basemap-0.9.4 new file mode 100644 index 000000000000..d2bfffb1d8ef --- /dev/null +++ b/dev-python/basemap/files/digest-basemap-0.9.4 @@ -0,0 +1,3 @@ +MD5 0bbe631db05dbb987bb0bf8e8422039c basemap-0.9.4.tar.gz 7490506 +RMD160 b6f6c9f4ff4505d40bc82811177678f3299b6af9 basemap-0.9.4.tar.gz 7490506 +SHA256 03823c3fc7fd6b516661df73f696c9dbbb46e5646d323f0a142059f7ea6db85e basemap-0.9.4.tar.gz 7490506 diff --git a/dev-python/basemap/metadata.xml b/dev-python/basemap/metadata.xml new file mode 100644 index 000000000000..27be8af27aaa --- /dev/null +++ b/dev-python/basemap/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>python</herd> +<herd>sci-geosciences</herd> +<longdescription> +basemap is a matplotlib toolkit. It allows to plot data on map +projections (with continental and political boundaries). +</longdescription> +</pkgmetadata> |