blob: 01980fb9d6aff1fd6167b2c9173935c262f7263a (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gdal-grass/gdal-grass-1.4.3-r1.ebuild,v 1.2 2011/07/22 11:28:38 scarabeus Exp $
EAPI=4
inherit eutils
DESCRIPTION="GDAL plugin to access GRASS data"
HOMEPAGE="http://www.gdal.org/"
SRC_URI="http://download.osgeo.org/gdal/${P}.tar.gz"
SLOT="0"
LICENSE="MIT"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="
sci-libs/gdal
>=sci-geosciences/grass-6.4.0_rc6
"
DEPEND="${RDEPEND}"
src_prepare() {
epatch "${FILESDIR}/${PN}-makefile.patch"
}
src_configure() {
econf \
--with-grass=$(pkg-config grass --variable grassdir) \
--with-gdal
}
src_install() {
#pass the right variables to 'make install' to prevent a sandbox access violation
emake DESTDIR="${D}" \
GRASSTABLES_DIR="${D}$(gdal-config --prefix)/share/gdal/grass" \
AUTOLOAD_DIR="${D}/usr/$(get_libdir)/gdalplugins" \
install
}
|