# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # by karpi.gis@email.cz based on qgis-0.5.0.ebuild # thanx to #gentoo-dev inherit qt3 eutils DESCRIPTION="An open-source GIS viewer with raster and vector functionality" HOMEPAGE="http://www.qgis.org/" SRC_URI="mirror://sourceforge/qgis/${PN}-${PV/_pre/pre.}.tar.gz" S="${WORKDIR}/${PN}-${PV/_pre/pre}" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="grass postgres" DEPEND=">=x11-libs/qt-3.3.0 sci-libs/gsl dev-libs/expat sci-libs/proj sci-libs/gdal sci-libs/geos >=dev-db/sqlite-3.1.0 postgres? ( >=dev-db/postgresql-7.3.2 ) grass? ( >=sci-geosciences/grass-5.7.0 )" src_compile() { econf \ $(use_with grass grass /usr/grass60) \ $(use_with postgres postgresql) \ || die "./configure failed" emake -j1 || die "emake failed" } src_install() { einstall || die "einstall failed" }