# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Gstat is a program for the modelling, prediction and simulation of geostatistical data in one, two or three dimensions." HOMEPAGE="http://www.gstat.org" SRC_URI="http://www.gstat.org/bin/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="gd netcdf grass gsl doc" DEPEND="gd? >=media-libs/gd-2.0.15-r1 grass? >=app-misc/grass-5.0.2 gsl? >=sci-libs/gsl-1.3 netcdf? >=sci-libs/netcdf-3.5.0-r2 gnuplot >=sci-visualization/gnuplot-3.8" src_install() { # 'make DESTDIR="${D}" install' doesn't work because the makefile doesn't # honor the DESTDIR variable. All it does anyway is install the binary. dobin src/gstat || die "Install failed" # install additional docs if use doc; then cd "${S}"/doc/www make cd "${S}" docinto html cp -R "${S}"/doc/www/* "${D}"/usr/share/doc/"${PF}"/html docinto examples cp -R "${S}"/cmd/* "${D}"/usr/share/doc/"${PF}"/examples fi }