# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/mapnik/mapnik-0.6.1-r3.ebuild,v 1.1 2010/03/29 04:16:46 nerdboy Exp $ EAPI=2 PYTHON_DEPEND="2:2.6" inherit eutils python distutils toolchain-funcs versionator DESCRIPTION="A Free Toolkit for developing mapping applications." HOMEPAGE="http://www.mapnik.org/" SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="cairo curl debug doc +gdal postgres python sqlite" RDEPEND="=dev-libs/boost-1.39* dev-libs/libxml2 dev-libs/icu media-libs/libpng media-libs/jpeg media-libs/tiff media-libs/freetype:2 sci-libs/proj x11-libs/agg[gpc,truetype] media-fonts/dejavu python? ( =dev-libs/boost-1.39*[python] ) cairo? ( x11-libs/cairo dev-cpp/cairomm ) postgres? ( >=virtual/postgresql-base-8.0 >=dev-db/postgis-1.1.2 ) gdal? ( sci-libs/gdal ) sqlite? ( dev-db/sqlite:3 ) curl? ( net-misc/curl )" DEPEND="${RDEPEND} >=dev-util/scons-1.0.0" src_prepare() { sed -i -e "s|/usr/local|/usr|g" \ -e "s|Action(env\[config\]|Action('%s --help' % env\[config\]|" \ SConstruct || die sed -i -e "s:mapniklibpath + '/fonts':'/usr/share/fonts/dejavu/':g" \ bindings/python/SConscript || die "sed 1 failed" rm -rf agg epatch "${FILESDIR}"/${P}-libagg.patch BOOST_PKG="$(best_version "