mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
sci-geosciences/liblas: new ebuild
New ebuild initially written by SoapZaNet and committed under proxy-maintainers herd with wraeth as maintainer. Package-Manager: portage-2.2.20.1
This commit is contained in:
1
sci-geosciences/liblas/Manifest
Normal file
1
sci-geosciences/liblas/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST libLAS-1.8.0.tar.bz2 3907684 SHA256 17310082845e45e5c4cece78af98ee93aa5d992bf6d4ba9a6e9f477228738d7a SHA512 1804149c7bcf04896a683a1098d372a65c000b7562795911fae697f81f370315aa373f34c12fa740d4607c07cd73e48354e34c9e26b032ffe679ecbfd4496a50 WHIRLPOOL ee2400877fad72b1ab9e5b94e673c1ff858c4c3b129aebd8146aeeb7e01a56d6aad70147a55391e9c0bb02e354036aa27b077430a4aa88b13d182389f11b538d
|
||||
@@ -0,0 +1,30 @@
|
||||
--- libLAS-1.8.0/CMakeLists.txt
|
||||
+++ libLAS-1.8.0/CMakeLists.txt
|
||||
@@ -140,27 +140,6 @@
|
||||
|
||||
set(CMAKE_INCLUDE_PATH c:/osgeo4w64/include;$ENV{CMAKE_INCLUDE_PATH})
|
||||
set(CMAKE_LIBRARY_PATH c:/osgeo4w64/lib;$ENV{CMAKE_LIBRARY_PATH})
|
||||
-else()
|
||||
-
|
||||
- # Recommended C++ compilation flags
|
||||
- # -Weffc++
|
||||
- #
|
||||
- # Remove -pedandic which causes errors from boost (comma at end of
|
||||
- # enum) 2012-09-05. Remove -Wcast-qual -Wfloat-equal
|
||||
- # -Wredundant-decls to suppress the multitude of warning messages.
|
||||
- set(LIBLAS_COMMON_CXX_FLAGS
|
||||
- " -Wextra -Wall -Wno-unused-parameter -Wno-unused-variable -Wpointer-arith -Wcast-align -Wcast-qual -Wfloat-equal -Wredundant-decls -Wno-long-long")
|
||||
-
|
||||
- if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||||
-
|
||||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LIBLAS_COMMON_CXX_FLAGS}")
|
||||
- if (CMAKE_COMPILER_IS_GNUCXX)
|
||||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++98 -ansi")
|
||||
- endif()
|
||||
-
|
||||
- elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR "${CMAKE_CXX_COMPILER}" MATCHES "clang")
|
||||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LIBLAS_COMMON_CXX_FLAGS}")
|
||||
- endif()
|
||||
endif(WIN32)
|
||||
|
||||
if (APPLE)
|
||||
40
sci-geosciences/liblas/liblas-1.8.0.ebuild
Normal file
40
sci-geosciences/liblas/liblas-1.8.0.ebuild
Normal file
@@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit cmake-multilib multilib
|
||||
|
||||
DESCRIPTION="C/C++ library for manipulating the LAS LiDAR format common in GIS"
|
||||
HOMEPAGE="http://www.liblas.org"
|
||||
SRC_URI="http://download.osgeo.org/${PN}/libLAS-${PV}.tar.bz2"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="gdal geotiff"
|
||||
REQUIRED_USE="gdal? ( geotiff )"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/boost:=
|
||||
sci-geosciences/laszip
|
||||
gdal? ( sci-libs/gdal )
|
||||
geotiff? ( sci-libs/libgeotiff )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/libLAS-${PV}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}_remove-std-c++98.patch
|
||||
)
|
||||
|
||||
multilib_src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(cmake-utils_use_find_package gdal GDAL)
|
||||
$(cmake-utils_use_find_package geotiff GeoTIFF)
|
||||
-DLIBLAS_LIB_SUBDIR=$(get_libdir)
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
20
sci-geosciences/liblas/metadata.xml
Normal file
20
sci-geosciences/liblas/metadata.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>sci-geosciences</herd>
|
||||
<herd>proxy-maintainers</herd>
|
||||
<maintainer>
|
||||
<email>wraeth@wraeth.id.au</email>
|
||||
<name>Sam Jorna</name>
|
||||
<description>Proxy maintainer - assign bugs to him</description>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="gdal">Add support for the <pkg>sci-libs/gdal</pkg> geospatial
|
||||
raster library</flag>
|
||||
<flag name="geotiff">Add support for geo-tagged TIFF files with
|
||||
<pkg>sci-libs/libgeotiff</pkg></flag>
|
||||
</use>
|
||||
<longdescription lang="en">
|
||||
A C/C++ library for reading and writing the very common LAS LiDAR format.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user