From e2c276c3de2111874a92d3f321263a218d809209 Mon Sep 17 00:00:00 2001 From: Amy Winston Date: Sat, 26 Dec 2015 23:14:41 +0100 Subject: sci-geosciences/gdal-grass: slot specification fixed bug #568414.By wraeth Package-Manager: portage-2.2.24 --- .../gdal-grass/gdal-grass-2.0.0-r1.ebuild | 50 ++++++++++++++++++++++ sci-geosciences/gdal-grass/gdal-grass-2.0.0.ebuild | 50 ---------------------- 2 files changed, 50 insertions(+), 50 deletions(-) create mode 100644 sci-geosciences/gdal-grass/gdal-grass-2.0.0-r1.ebuild delete mode 100644 sci-geosciences/gdal-grass/gdal-grass-2.0.0.ebuild (limited to 'sci-geosciences') diff --git a/sci-geosciences/gdal-grass/gdal-grass-2.0.0-r1.ebuild b/sci-geosciences/gdal-grass/gdal-grass-2.0.0-r1.ebuild new file mode 100644 index 000000000000..9fc8276c9aeb --- /dev/null +++ b/sci-geosciences/gdal-grass/gdal-grass-2.0.0-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +DESCRIPTION="GDAL plugin to access GRASS data" +HOMEPAGE="http://www.gdal.org/" +SRC_URI="http://download.osgeo.org/gdal/${PV}/${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~x86" + +IUSE="postgres" +RDEPEND=" + >=sci-libs/gdal-2.0.0 + sci-geosciences/grass:0= +" +DEPEND="${RDEPEND} + dev-libs/expat + dev-libs/json-c + virtual/jpeg + media-libs/tiff + sci-libs/libgeotiff + sci-libs/proj + sys-libs/zlib + postgres? ( dev-db/postgresql )" + +src_prepare() { + # fix mkdir not called with -p in Makefile + epatch "${FILESDIR}/gdal-grass-makefile.patch" +} + +src_configure() { + econf \ + --with-grass="/usr/$(get_libdir)/grass70" \ + --with-gdal="/usr/bin/gdal-config" \ + $(use_with postgres postgres-includes "/usr/include/postgresql") +} + +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 +} diff --git a/sci-geosciences/gdal-grass/gdal-grass-2.0.0.ebuild b/sci-geosciences/gdal-grass/gdal-grass-2.0.0.ebuild deleted file mode 100644 index c8b1e329dcb6..000000000000 --- a/sci-geosciences/gdal-grass/gdal-grass-2.0.0.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -inherit eutils - -DESCRIPTION="GDAL plugin to access GRASS data" -HOMEPAGE="http://www.gdal.org/" -SRC_URI="http://download.osgeo.org/gdal/${PV}/${P}.tar.gz" - -SLOT="0" -LICENSE="MIT" -KEYWORDS="~amd64 ~x86" - -IUSE="postgres" -RDEPEND=" - >=sci-libs/gdal-2.0.0 - >=sci-geosciences/grass-7.0.1-r3 -" -DEPEND="${RDEPEND} - dev-libs/expat - dev-libs/json-c - virtual/jpeg - media-libs/tiff - sci-libs/libgeotiff - sci-libs/proj - sys-libs/zlib - postgres? ( dev-db/postgresql )" - -src_prepare() { - # fix mkdir not called with -p in Makefile - epatch "${FILESDIR}/gdal-grass-makefile.patch" -} - -src_configure() { - econf \ - --with-grass="/usr/$(get_libdir)/grass70" \ - --with-gdal="/usr/bin/gdal-config" \ - $(use_with postgres postgres-includes "/usr/include/postgresql") -} - -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 -} -- cgit v1.2.3-65-gdbad