Bumps EAPI to 6, replaces single-line patch with sed, adds files copied
from system-installed GRASS to QA_PREBUILT.
Package-Manager: portage-2.3.0_rc1
+++ /dev/null
---- Makefile.in.orig 2009-07-12 00:09:33.000000000 +0200
-+++ Makefile.in 2009-07-12 00:11:09.000000000 +0200
-@@ -26,7 +26,7 @@
- install -d $(AUTOLOAD_DIR)
- cp $(GLIBNAME) $(AUTOLOAD_DIR)
- cp $(OLIBNAME) $(AUTOLOAD_DIR)
-- test -d ${GRASSTABLES_DIR} || mkdir ${GRASSTABLES_DIR}
-+ test -d ${GRASSTABLES_DIR} || mkdir -p ${GRASSTABLES_DIR}
- test -d ${GRASSTABLES_DIR}/etc || mkdir ${GRASSTABLES_DIR}/etc
- cp @GRASS_GISBASE@/etc/ellipse.table ${GRASSTABLES_DIR}/etc
- cp @GRASS_GISBASE@/etc/datum.table @GRASS_GISBASE@/etc/datumtransform.table ${GRASSTABLES_DIR}/etc
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
+EAPI=6
inherit eutils
sys-libs/zlib
postgres? ( dev-db/postgresql )"
+# these drivers are copied at install from the already installed GRASS
+QA_PREBUILT="/usr/share/gdal/grass/driver/db/*"
+
src_prepare() {
- # fix mkdir not called with -p in Makefile
- epatch "${FILESDIR}/gdal-grass-makefile.patch"
+ sed -e 's:mkdir ${GRASSTABLES_DIR}$:mkdir -p ${GRASSTABLES_DIR}:' \
+ -i Makefile.in || die
+ default
}
src_configure() {