From: Sebastien Fabbro Date: Sat, 24 Feb 2007 01:02:33 +0000 (+0000) Subject: iniinitial import of basemap X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e902e727cec8dea6405222afbf6744d86d39296e;p=gentoo.git iniinitial import of basemap Package-Manager: portage-2.1.2-r9 --- 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 + +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..46d8f871ce43 --- /dev/null +++ b/dev-python/basemap/Manifest @@ -0,0 +1,30 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +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 951 RMD160 79a02e74b3ae8b80d0571505e5ba517187b61f2e SHA1 f524c3b41f3df90f8bd678c7ed567e07af4e7237 SHA256 f329ab88027526d5020b54b1c9997c17b9b0a2858d0a043c8c003d2cdfe4d9bd +MD5 72308aec6dfd636ab249dae2617e6f2a basemap-0.9.4.ebuild 951 +RMD160 79a02e74b3ae8b80d0571505e5ba517187b61f2e basemap-0.9.4.ebuild 951 +SHA256 f329ab88027526d5020b54b1c9997c17b9b0a2858d0a043c8c003d2cdfe4d9bd basemap-0.9.4.ebuild 951 +MISC ChangeLog 441 RMD160 3c520d0d6786c526434401178e2b30cbcda5b350 SHA1 489152f530437746cc85b4b2a60910c642014d07 SHA256 4643c68b22b51200d3917f8a0d221a2f42411a420c14058b6f8c09aba3b36a57 +MD5 41e12ccf236711503c2ae190b3317dc9 ChangeLog 441 +RMD160 3c520d0d6786c526434401178e2b30cbcda5b350 ChangeLog 441 +SHA256 4643c68b22b51200d3917f8a0d221a2f42411a420c14058b6f8c09aba3b36a57 ChangeLog 441 +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 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.6 (GNU/Linux) + +iD8DBQFF346yWc/Ciu+QQGkRAiLWAJ44DhxnB2G8E2Uprk6Q8A4VMg7ZUACfXR14 +AOq+LxSv0I8Niu/3GaHc9TI= +=wmND +-----END PGP SIGNATURE----- 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 @@ + + + +python +sci-geosciences + +basemap is a matplotlib toolkit. It allows to plot data on map +projections (with continental and political boundaries). + +