1 |
commit: 0a0b83a051241dfce7d23401f5abe1436c014e74 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 24 19:07:21 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 24 19:25:47 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a0b83a0 |
7 |
|
8 |
sci-geosciences/liblas: EAPI-7 bump, add missing slot ops |
9 |
|
10 |
Package-Manager: Portage-2.3.66, Repoman-2.3.12 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
sci-geosciences/liblas/liblas-1.8.1-r2.ebuild | 49 +++++++++++++++++++++++++++ |
14 |
1 file changed, 49 insertions(+) |
15 |
|
16 |
diff --git a/sci-geosciences/liblas/liblas-1.8.1-r2.ebuild b/sci-geosciences/liblas/liblas-1.8.1-r2.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..11e130b1404 |
19 |
--- /dev/null |
20 |
+++ b/sci-geosciences/liblas/liblas-1.8.1-r2.ebuild |
21 |
@@ -0,0 +1,49 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit cmake-utils |
28 |
+ |
29 |
+DESCRIPTION="C/C++ library for manipulating the LAS LiDAR format common in GIS" |
30 |
+HOMEPAGE="https://github.com/libLAS/libLAS/" |
31 |
+SRC_URI="https://github.com/libLAS/libLAS/archive/${PV}.tar.gz -> ${P}.tar.gz" |
32 |
+ |
33 |
+SLOT="0" |
34 |
+LICENSE="BSD" |
35 |
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86" |
36 |
+IUSE="gdal" |
37 |
+ |
38 |
+DEPEND=" |
39 |
+ dev-libs/boost:= |
40 |
+ sci-geosciences/laszip |
41 |
+ sci-libs/libgeotiff:= |
42 |
+ gdal? ( sci-libs/gdal:= ) |
43 |
+" |
44 |
+RDEPEND="${DEPEND}" |
45 |
+ |
46 |
+# tests known to fail due to LD_LIBRARY_PATH issue |
47 |
+RESTRICT="test" |
48 |
+ |
49 |
+S="${WORKDIR}/libLAS-${PV}" |
50 |
+ |
51 |
+PATCHES=( |
52 |
+ "${FILESDIR}"/${PN}-1.8.0_remove-std-c++98.patch |
53 |
+ "${FILESDIR}"/${P}-fix-overload-call.patch # bug 661654 |
54 |
+) |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ cmake-utils_src_prepare |
58 |
+ |
59 |
+ # add missing linkage |
60 |
+ sed -e 's:${LAS2COL} ${LIBLAS_C_LIB_NAME}:& ${CMAKE_THREAD_LIBS_INIT}:' \ |
61 |
+ -i "${S}/apps/CMakeLists.txt" || die |
62 |
+} |
63 |
+ |
64 |
+src_configure() { |
65 |
+ local mycmakeargs=( |
66 |
+ -DLIBLAS_LIB_SUBDIR=$(get_libdir) |
67 |
+ -DWITH_GDAL=$(usex gdal) |
68 |
+ ) |
69 |
+ cmake-utils_src_configure |
70 |
+} |