diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2008-07-02 17:00:06 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2008-07-02 17:00:06 +0000 |
commit | 7e82468fd6d88cfee38af8fcfed442f0183a0392 (patch) | |
tree | b797aac0b23e93a46df6442e77a2a05648355234 /dev-python/basemap | |
parent | Version bump (diff) | |
download | gentoo-2-7e82468fd6d88cfee38af8fcfed442f0183a0392.tar.gz gentoo-2-7e82468fd6d88cfee38af8fcfed442f0183a0392.tar.bz2 gentoo-2-7e82468fd6d88cfee38af8fcfed442f0183a0392.zip |
Version bump. Closing bug #229857
(Portage version: 2.1.4.4)
Diffstat (limited to 'dev-python/basemap')
-rw-r--r-- | dev-python/basemap/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/basemap/basemap-0.99.ebuild | 46 | ||||
-rw-r--r-- | dev-python/basemap/files/basemap-0.99-syslib.patch | 45 |
3 files changed, 98 insertions, 1 deletions
diff --git a/dev-python/basemap/ChangeLog b/dev-python/basemap/ChangeLog index ad6660e2b144..f51866cde200 100644 --- a/dev-python/basemap/ChangeLog +++ b/dev-python/basemap/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/basemap # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/basemap/ChangeLog,v 1.6 2008/02/13 14:12:09 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/basemap/ChangeLog,v 1.7 2008/07/02 17:00:05 bicatali Exp $ + +*basemap-0.99 (02 Jul 2008) + + 02 Jul 2008; Sébastien Fabbro <bicatali@gentoo.org> + +files/basemap-0.99-syslib.patch, +basemap-0.99.ebuild: + Version bump. Closing bug #229857 *basemap-0.9.9-r1 (13 Feb 2008) diff --git a/dev-python/basemap/basemap-0.99.ebuild b/dev-python/basemap/basemap-0.99.ebuild new file mode 100644 index 000000000000..4ff57c54425b --- /dev/null +++ b/dev-python/basemap/basemap-0.99.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/basemap/basemap-0.99.ebuild,v 1.1 2008/07/02 17:00:05 bicatali Exp $ + +inherit eutils 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="doc examples" +SLOT="0" +KEYWORDS="~amd64 ~x86" +LICENSE="MIT GPL-2" + +CDEPEND="sci-libs/shapelib + >=dev-python/matplotlib-0.98 + =sci-libs/geos-2.2.3*" + +DEPEND="${CDEPEND} + dev-python/setuptools" + +RDEPEND="${CDEPEND} + dev-python/dap" + +DOCS="FAQ API_CHANGES" + +src_unpack() { + unpack ${A} + cd "${S}" + # patch to use shapelib and geos system libraries + # proj is unfortunately an internal patched version (bug #209895) + epatch "${FILESDIR}"/${P}-syslib.patch +} + +src_install() { + distutils_src_install --install-data=/usr/share/${PN} + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples || die + fi + if use doc; then + insinto /usr/share/doc/${PF} + doins *.pdf || die + fi +} diff --git a/dev-python/basemap/files/basemap-0.99-syslib.patch b/dev-python/basemap/files/basemap-0.99-syslib.patch new file mode 100644 index 000000000000..33aa706a6c2d --- /dev/null +++ b/dev-python/basemap/files/basemap-0.99-syslib.patch @@ -0,0 +1,45 @@ +--- setup.py.orig 2008-07-02 17:17:56.980035282 +0100 ++++ setup.py 2008-07-02 17:49:26.354807468 +0100 +@@ -26,7 +26,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: +@@ -55,7 +55,7 @@ + + if GEOS_dir is None: + # if GEOS_dir not set, check a few standard locations. +- GEOS_dirs = ['/usr/local','/sw','/opt','/opt/local',os.path.expanduser('~')] ++ GEOS_dirs = ['/usr','/usr/local','/sw','/opt','/opt/local',os.path.expanduser('~')] + for direc in GEOS_dirs: + geos_version = checkversion(direc) + print 'checking for GEOS lib in %s ....' % direc +@@ -104,17 +104,16 @@ + package_dirs['dbflib'] = os.path.join('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()) ] + + # check setup.cfg file to see how to install auxilliary packages. |