1 |
commit: fa7139977774c59c7322c941e62b1bce588b0ee5 |
2 |
Author: Amy Liffey <amynka <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 3 11:46:26 2018 +0000 |
4 |
Commit: Amy Liffey <amynka <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 3 11:53:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa713997 |
7 |
|
8 |
sci-geosciences/liblas: fix overloading calls |
9 |
|
10 |
- Change SRC_URI and HOMEPAGE to github |
11 |
- Add patch for overloaded calls |
12 |
|
13 |
Closes: https://bugs.gentoo.org/661654 |
14 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
15 |
|
16 |
sci-geosciences/liblas/Manifest | 1 + |
17 |
.../files/liblas-1.8.1-fix-overload-call.patch | 15 +++++++ |
18 |
sci-geosciences/liblas/liblas-1.8.1-r1.ebuild | 49 ++++++++++++++++++++++ |
19 |
3 files changed, 65 insertions(+) |
20 |
|
21 |
diff --git a/sci-geosciences/liblas/Manifest b/sci-geosciences/liblas/Manifest |
22 |
index 118f37d5fa6..3b20aa193d5 100644 |
23 |
--- a/sci-geosciences/liblas/Manifest |
24 |
+++ b/sci-geosciences/liblas/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
DIST libLAS-1.8.1.tar.bz2 3920203 BLAKE2B 2ef8e822c5d1c07d929e788c59e6e5b942aba637fb764d37e1505d136c75cd4a28efc4702b022bcfee8063b684956b4466c9ec00e737d7024ca2719d7b11f341 SHA512 1cb39c557af0006c54f1100d0d409977fcc1886abd155c1b144d806c47f8675a9f2125d3a9aca16bae65d2aabba84d5e5e322b42085e7db312f3d53f92342acf |
27 |
+DIST liblas-1.8.1.tar.gz 10734926 BLAKE2B dcd3dc043840857222e6b0a19dcb264ba34c09aa20cda9694ed182e040f9024c0b4a0e2359b1ba0da2337fa5b145aedb9a76a6dcea7ffd7cbcb125d0ae9af399 SHA512 0f8a0460e33c23c8a82eb42ab66ba69d4cc0680f6d320ce429653670f950f5724b88c5870800e0ab000e72cf0c08c55a4c468fe1b244140d867e2cb665f0f0b6 |
28 |
|
29 |
diff --git a/sci-geosciences/liblas/files/liblas-1.8.1-fix-overload-call.patch b/sci-geosciences/liblas/files/liblas-1.8.1-fix-overload-call.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..0b77da12148 |
32 |
--- /dev/null |
33 |
+++ b/sci-geosciences/liblas/files/liblas-1.8.1-fix-overload-call.patch |
34 |
@@ -0,0 +1,15 @@ |
35 |
+--- a/src/gt_citation.cpp 2018-08-03 12:16:16.007831564 +0100 |
36 |
++++ b/src/gt_citation.cpp 2018-08-03 12:16:45.224830335 +0100 |
37 |
+@@ -387,10 +387,10 @@ |
38 |
+ osCitation += primemName; |
39 |
+ bRewriteGeogCitation = TRUE; |
40 |
+ |
41 |
+- double primemValue = poSRS->GetPrimeMeridian(NULL); |
42 |
++ double primemValue = poSRS->GetPrimeMeridian(); |
43 |
+ if(angUnitName && !EQUAL(angUnitName, "Degree")) |
44 |
+ { |
45 |
+- double aUnit = poSRS->GetAngularUnits(NULL); |
46 |
++ double aUnit = poSRS->GetAngularUnits(); |
47 |
+ primemValue *= aUnit; |
48 |
+ } |
49 |
+ GTIFKeySet( psGTIF, GeogPrimeMeridianLongGeoKey, TYPE_DOUBLE, 1, |
50 |
|
51 |
diff --git a/sci-geosciences/liblas/liblas-1.8.1-r1.ebuild b/sci-geosciences/liblas/liblas-1.8.1-r1.ebuild |
52 |
new file mode 100644 |
53 |
index 00000000000..8e0dbdea857 |
54 |
--- /dev/null |
55 |
+++ b/sci-geosciences/liblas/liblas-1.8.1-r1.ebuild |
56 |
@@ -0,0 +1,49 @@ |
57 |
+# Copyright 1999-2018 Gentoo Foundation |
58 |
+# Distributed under the terms of the GNU General Public License v2 |
59 |
+ |
60 |
+EAPI=6 |
61 |
+ |
62 |
+inherit cmake-utils |
63 |
+ |
64 |
+DESCRIPTION="C/C++ library for manipulating the LAS LiDAR format common in GIS" |
65 |
+HOMEPAGE="https://github.com/libLAS/libLAS/" |
66 |
+SRC_URI="https://github.com/libLAS/libLAS/archive/${PV}.tar.gz -> ${P}.tar.gz" |
67 |
+ |
68 |
+# tests known to fail due to LD_LIBRARY_PATH issue |
69 |
+RESTRICT="test" |
70 |
+ |
71 |
+SLOT="0" |
72 |
+LICENSE="BSD" |
73 |
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86" |
74 |
+IUSE="gdal" |
75 |
+ |
76 |
+RDEPEND=" |
77 |
+ dev-libs/boost:= |
78 |
+ sci-geosciences/laszip |
79 |
+ sci-libs/libgeotiff |
80 |
+ gdal? ( sci-libs/gdal ) |
81 |
+" |
82 |
+DEPEND="${RDEPEND}" |
83 |
+ |
84 |
+S="${WORKDIR}/libLAS-${PV}" |
85 |
+ |
86 |
+PATCHES=( |
87 |
+ "${FILESDIR}"/${PN}-1.8.0_remove-std-c++98.patch |
88 |
+ "${FILESDIR}"/${P}-fix-overload-call.patch #bug 661654 |
89 |
+) |
90 |
+ |
91 |
+src_prepare() { |
92 |
+ cmake-utils_src_prepare |
93 |
+ |
94 |
+ # add missing linkage |
95 |
+ sed -e 's:${LAS2COL} ${LIBLAS_C_LIB_NAME}:& ${CMAKE_THREAD_LIBS_INIT}:' \ |
96 |
+ -i "${S}/apps/CMakeLists.txt" || die |
97 |
+} |
98 |
+ |
99 |
+src_configure() { |
100 |
+ local mycmakeargs=( |
101 |
+ "-DWITH_GDAL=$(usex gdal)" |
102 |
+ -DLIBLAS_LIB_SUBDIR=$(get_libdir) |
103 |
+ ) |
104 |
+ cmake-utils_src_configure |
105 |
+} |