summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-05-24 21:07:21 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2019-05-24 21:25:47 +0200
commit0a0b83a051241dfce7d23401f5abe1436c014e74 (patch)
tree5bbebc5dd44e6c711b64a2dbbd812d56326301d5 /sci-geosciences/liblas
parentsci-geosciences/laszip: 3.4.1 version bump, EAPI-7 bump, cmake-utils (diff)
downloadgentoo-0a0b83a051241dfce7d23401f5abe1436c014e74.tar.gz
gentoo-0a0b83a051241dfce7d23401f5abe1436c014e74.tar.bz2
gentoo-0a0b83a051241dfce7d23401f5abe1436c014e74.zip
sci-geosciences/liblas: EAPI-7 bump, add missing slot ops
Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'sci-geosciences/liblas')
-rw-r--r--sci-geosciences/liblas/liblas-1.8.1-r2.ebuild49
1 files changed, 49 insertions, 0 deletions
diff --git a/sci-geosciences/liblas/liblas-1.8.1-r2.ebuild b/sci-geosciences/liblas/liblas-1.8.1-r2.ebuild
new file mode 100644
index 00000000000..11e130b1404
--- /dev/null
+++ b/sci-geosciences/liblas/liblas-1.8.1-r2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils
+
+DESCRIPTION="C/C++ library for manipulating the LAS LiDAR format common in GIS"
+HOMEPAGE="https://github.com/libLAS/libLAS/"
+SRC_URI="https://github.com/libLAS/libLAS/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE="gdal"
+
+DEPEND="
+ dev-libs/boost:=
+ sci-geosciences/laszip
+ sci-libs/libgeotiff:=
+ gdal? ( sci-libs/gdal:= )
+"
+RDEPEND="${DEPEND}"
+
+# tests known to fail due to LD_LIBRARY_PATH issue
+RESTRICT="test"
+
+S="${WORKDIR}/libLAS-${PV}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.8.0_remove-std-c++98.patch
+ "${FILESDIR}"/${P}-fix-overload-call.patch # bug 661654
+)
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # add missing linkage
+ sed -e 's:${LAS2COL} ${LIBLAS_C_LIB_NAME}:& ${CMAKE_THREAD_LIBS_INIT}:' \
+ -i "${S}/apps/CMakeLists.txt" || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLIBLAS_LIB_SUBDIR=$(get_libdir)
+ -DWITH_GDAL=$(usex gdal)
+ )
+ cmake-utils_src_configure
+}