From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9A6D1138334 for ; Thu, 21 Feb 2019 10:30:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BF8A7E03EC; Thu, 21 Feb 2019 10:29:57 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 80F3BE03EC for ; Thu, 21 Feb 2019 10:29:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D0894335D95 for ; Thu, 21 Feb 2019 10:29:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E9736557 for ; Thu, 21 Feb 2019 10:29:50 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1550744950.a04d91f6d88feddad215c4f8747bcea96a323ba3.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/gdal-grass/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-geosciences/gdal-grass/Manifest sci-geosciences/gdal-grass/gdal-grass-2.1.3.ebuild X-VCS-Directories: sci-geosciences/gdal-grass/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: a04d91f6d88feddad215c4f8747bcea96a323ba3 X-VCS-Branch: master Date: Thu, 21 Feb 2019 10:29:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 39478e00-a3d8-4120-95fd-7427628d0008 X-Archives-Hash: b62f0eb993b375bc78c1eba33ada828c commit: a04d91f6d88feddad215c4f8747bcea96a323ba3 Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Feb 21 10:23:07 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Feb 21 10:29:10 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a04d91f6 sci-geosciences/gdal-grass: 2.1.3 version bump, EAPI-7 bump Detect grass libdir correctly based on version built against. Drop bogus DEPENDs - someone has been wrongly using ldd in the past. Closes: https://bugs.gentoo.org/616952 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner gentoo.org> sci-geosciences/gdal-grass/Manifest | 1 + sci-geosciences/gdal-grass/gdal-grass-2.1.3.ebuild | 49 ++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/sci-geosciences/gdal-grass/Manifest b/sci-geosciences/gdal-grass/Manifest index 4f0d34f25a1..2a77e722285 100644 --- a/sci-geosciences/gdal-grass/Manifest +++ b/sci-geosciences/gdal-grass/Manifest @@ -1,2 +1,3 @@ DIST gdal-grass-2.0.0.tar.gz 56286 BLAKE2B 191402442bc3c16f3d07f538b9eae266e75c74efbecb235dc11cb3529e4758fc8354ab5e65ec4a8805595c6f1209d70e5f76a7006d546eb3d2e8f9e4966842ff SHA512 cefa60773c2acd5c1627b896e3298d02f51979c12f70ce67b88c0b886a13de2f62821a3d3e50984f5c676ef37819c685795949b06db57004a0edf8039e898d7e DIST gdal-grass-2.1.0.tar.gz 54299 BLAKE2B 09b9a408584618cefcc989feebc75431ae3efed2c9f6504e65ccf28bbc02a6e5125cb049accece7fd598aeef0bb1d5cb572067fc5a764a49c99627132d650f65 SHA512 fb06b71839849de413f68beb8f2cd1c2273cc48b5205fe1b255ffc4976f8f913b4b226eba186a24f5b40fe5fbb1ceeab760d06915222e4a4b269a6fbc7bc9417 +DIST gdal-grass-2.1.3.tar.gz 54478 BLAKE2B 172200d8362b12583f0f73316b8c6d34875682c9d76c095745152c8d4fd1da1d9d1e94df5928225f6fda5712e987379c7c3192fa81d02b9cee9145fb577faee1 SHA512 c11776f92e591f1c0136e439ab6c672015171c5b750cb9332c73b49b3173c1d57efb4854b152a1d8e1b438c68a1130b4a46a189e1be0b99af9a8fb931f246e39 diff --git a/sci-geosciences/gdal-grass/gdal-grass-2.1.3.ebuild b/sci-geosciences/gdal-grass/gdal-grass-2.1.3.ebuild new file mode 100644 index 00000000000..745a05ffcfa --- /dev/null +++ b/sci-geosciences/gdal-grass/gdal-grass-2.1.3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="GDAL plugin to access GRASS data" +HOMEPAGE="https://www.gdal.org/" +SRC_URI="https://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:= +" +DEPEND="${RDEPEND} + 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() { + sed -e 's:mkdir ${GRASSTABLES_DIR}$:mkdir -p ${GRASSTABLES_DIR}:' \ + -i Makefile.in || die + default +} + +src_configure() { + local grassp=$(best_version sci-geosciences/grass) + local grasspv=$(echo ${grassp/%-r[0-9]*/} | rev | cut -d - -f 1 | rev) + local grasspm=$(ver_cut 1-2 ${grasspv}) + local myeconfargs=( + --with-grass="/usr/$(get_libdir)/grass$(ver_rs 1 '' ${grasspm})" + --with-gdal="/usr/bin/gdal-config" + $(use_with postgres postgres-includes "/usr/include/postgresql") + ) + econf "${myeconfargs[@]}" +} + +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 +}