# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit kde-functions eutils MY_P="${PN}-0.7.0pre.2" S="${WORKDIR}/${PN}-0.7.0pre2" DESCRIPTION="Quantum GIS (QGIS) is a Geographic Information System (GIS)" HOMEPAGE="http://www.qgis.org/" SRC_URI="http://switch.dl.sourceforge.net/sourceforge/${PN}/${MY_P}.tar.gz\ http://heatnet.dl.sourceforge.net/sourceforge/${PN}/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="postgres grass geos proj gpx georef" need-qt 3 DEPEND="dev-db/sqlite\ >=sci-libs/gdal-1.2.5\ geos? (>=sci-libs/geos-2.1.1)\ proj? (>=sci-libs/proj-4.4.8)\ postgres? (>=dev-db/postgresql-8.0.0 (|| (>=dev-db/postgis-1.0.0_rc5 dev-db/postgis-cvs)))\ grass? (>=sci-geosciences/grass-5.0.2)\ gpx? (dev-libs/expat)\ georef? (>=sci-libs/gsl-1.5.9)" src_unpack() { unpack ${A} } src_compile() { cd ${S} local myconf if use grass; then myconf="--with-grass=/usr/grass$(portageq match / grass |\ sed s/'sci-geosciences\/grass-'// | head -n 1 | cut -d'.' -f1)0" fi myconf="${myconf}\ $(use_with postgres)\ $(use_enable gpx) $(use_enable georef)" econf ${myconf} || die "econf failed" make || die "make failed" } src_install() { cd ${S} einstall || die "Error at installation" }