summaryrefslogtreecommitdiff
blob: 2313f8f3e13c2fc9e5a28af120bec3d5964ee26a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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.9.9.ebuild,v 1.1 2008/01/04 18:06:45 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"

# test as GUI (with USE=examples)
RESTRICT="test"

DEPEND="sci-libs/shapelib
	>=sci-libs/proj-4.6
	=sci-libs/geos-2.2.3"

RDEPEND="${DEPEND}
	dev-python/numpy
	>=dev-python/matplotlib-0.90"

DOCS="FAQ API_CHANGES"

src_unpack() {
	unpack ${A}
	cd "${S}"
	# patch to use proj, shapelib and geos system libraries
	epatch "${FILESDIR}"/${P}-syslib.patch
}

src_install() {
	distutils_src_install
	if use examples; then
		insinto /usr/share/doc/${PF}/examples
		doins examples/* || die
	fi
}