1 |
commit: a04d91f6d88feddad215c4f8747bcea96a323ba3 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 21 10:23:07 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 21 10:29:10 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a04d91f6 |
7 |
|
8 |
sci-geosciences/gdal-grass: 2.1.3 version bump, EAPI-7 bump |
9 |
|
10 |
Detect grass libdir correctly based on version built against. |
11 |
Drop bogus DEPENDs - someone has been wrongly using ldd in the past. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/616952 |
14 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
15 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
16 |
|
17 |
sci-geosciences/gdal-grass/Manifest | 1 + |
18 |
sci-geosciences/gdal-grass/gdal-grass-2.1.3.ebuild | 49 ++++++++++++++++++++++ |
19 |
2 files changed, 50 insertions(+) |
20 |
|
21 |
diff --git a/sci-geosciences/gdal-grass/Manifest b/sci-geosciences/gdal-grass/Manifest |
22 |
index 4f0d34f25a1..2a77e722285 100644 |
23 |
--- a/sci-geosciences/gdal-grass/Manifest |
24 |
+++ b/sci-geosciences/gdal-grass/Manifest |
25 |
@@ -1,2 +1,3 @@ |
26 |
DIST gdal-grass-2.0.0.tar.gz 56286 BLAKE2B 191402442bc3c16f3d07f538b9eae266e75c74efbecb235dc11cb3529e4758fc8354ab5e65ec4a8805595c6f1209d70e5f76a7006d546eb3d2e8f9e4966842ff SHA512 cefa60773c2acd5c1627b896e3298d02f51979c12f70ce67b88c0b886a13de2f62821a3d3e50984f5c676ef37819c685795949b06db57004a0edf8039e898d7e |
27 |
DIST gdal-grass-2.1.0.tar.gz 54299 BLAKE2B 09b9a408584618cefcc989feebc75431ae3efed2c9f6504e65ccf28bbc02a6e5125cb049accece7fd598aeef0bb1d5cb572067fc5a764a49c99627132d650f65 SHA512 fb06b71839849de413f68beb8f2cd1c2273cc48b5205fe1b255ffc4976f8f913b4b226eba186a24f5b40fe5fbb1ceeab760d06915222e4a4b269a6fbc7bc9417 |
28 |
+DIST gdal-grass-2.1.3.tar.gz 54478 BLAKE2B 172200d8362b12583f0f73316b8c6d34875682c9d76c095745152c8d4fd1da1d9d1e94df5928225f6fda5712e987379c7c3192fa81d02b9cee9145fb577faee1 SHA512 c11776f92e591f1c0136e439ab6c672015171c5b750cb9332c73b49b3173c1d57efb4854b152a1d8e1b438c68a1130b4a46a189e1be0b99af9a8fb931f246e39 |
29 |
|
30 |
diff --git a/sci-geosciences/gdal-grass/gdal-grass-2.1.3.ebuild b/sci-geosciences/gdal-grass/gdal-grass-2.1.3.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..745a05ffcfa |
33 |
--- /dev/null |
34 |
+++ b/sci-geosciences/gdal-grass/gdal-grass-2.1.3.ebuild |
35 |
@@ -0,0 +1,49 @@ |
36 |
+# Copyright 1999-2019 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+DESCRIPTION="GDAL plugin to access GRASS data" |
42 |
+HOMEPAGE="https://www.gdal.org/" |
43 |
+SRC_URI="https://download.osgeo.org/gdal/${PV}/${P}.tar.gz" |
44 |
+ |
45 |
+SLOT="0" |
46 |
+LICENSE="MIT" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+ |
49 |
+IUSE="postgres" |
50 |
+RDEPEND=" |
51 |
+ >=sci-libs/gdal-2.0.0:= |
52 |
+ sci-geosciences/grass:= |
53 |
+" |
54 |
+DEPEND="${RDEPEND} |
55 |
+ postgres? ( dev-db/postgresql )" |
56 |
+ |
57 |
+# these drivers are copied at install from the already installed GRASS |
58 |
+QA_PREBUILT="/usr/share/gdal/grass/driver/db/*" |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ sed -e 's:mkdir ${GRASSTABLES_DIR}$:mkdir -p ${GRASSTABLES_DIR}:' \ |
62 |
+ -i Makefile.in || die |
63 |
+ default |
64 |
+} |
65 |
+ |
66 |
+src_configure() { |
67 |
+ local grassp=$(best_version sci-geosciences/grass) |
68 |
+ local grasspv=$(echo ${grassp/%-r[0-9]*/} | rev | cut -d - -f 1 | rev) |
69 |
+ local grasspm=$(ver_cut 1-2 ${grasspv}) |
70 |
+ local myeconfargs=( |
71 |
+ --with-grass="/usr/$(get_libdir)/grass$(ver_rs 1 '' ${grasspm})" |
72 |
+ --with-gdal="/usr/bin/gdal-config" |
73 |
+ $(use_with postgres postgres-includes "/usr/include/postgresql") |
74 |
+ ) |
75 |
+ econf "${myeconfargs[@]}" |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ #pass the right variables to 'make install' to prevent a sandbox access violation |
80 |
+ emake DESTDIR="${D}" \ |
81 |
+ GRASSTABLES_DIR="${D}$(gdal-config --prefix)/share/gdal/grass" \ |
82 |
+ AUTOLOAD_DIR="${D}/usr/$(get_libdir)/gdalplugins" \ |
83 |
+ install |
84 |
+} |