[arch-commits] Commit in pdal/repos (3 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Sun Jan 28 02:07:12 UTC 2018


    Date: Sunday, January 28, 2018 @ 02:07:11
  Author: svenstaro
Revision: 287565

archrelease: copy trunk to community-staging-x86_64

Added:
  pdal/repos/community-staging-x86_64/
  pdal/repos/community-staging-x86_64/PKGBUILD
    (from rev 287564, pdal/trunk/PKGBUILD)
  pdal/repos/community-staging-x86_64/gcc.patch
    (from rev 287564, pdal/trunk/gcc.patch)

-----------+
 PKGBUILD  |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 gcc.patch |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+)

Copied: pdal/repos/community-staging-x86_64/PKGBUILD (from rev 287564, pdal/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-01-28 02:07:11 UTC (rev 287565)
@@ -0,0 +1,53 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: SaultDon <sault.don gmail>
+pkgname=pdal
+pkgver=1.6.0
+pkgrel=3
+pkgdesc="A C++ library for translating and manipulating point cloud data"
+arch=('x86_64')
+url="http://www.pdal.io"
+license=('BSD')
+depends=('gdal' 'libgeotiff' 'laszip' 'jsoncpp')
+makedepends=('cmake' 'python' 'python-numpy' 'laz-perf' 'hexer-hobu')
+optdepends=('python-numpy: for the Python plugin'
+            'hexer-hobu: for the hexbin plugin'
+            'sqlite: for the sqlite plugin'
+            'postgresql-libs: for the postgresql plugin')
+provides=('pdal')
+source=("http://download.osgeo.org/pdal/PDAL-$pkgver-src.tar.gz"
+        gcc.patch)
+sha512sums=('2e3bb90033d2248277bae241e4c9387f175e31abfeb3951d9ccaddca8d8f4cf58606d9a6c1730c69a5a0814f708366a271a38f80359d1f0db4572f45e102bc32'
+            '4f71629c8ade61ca8266911b1d4ed6dd740bdf32a27e08f3a87d1c7d184036702deb61dc500ca41f734af8025285d9c9c59055a21044c9b3248632aa50ef5f95')
+
+prepare() {
+    cd "PDAL-$pkgver-src"
+
+    patch -Np1 < $srcdir/gcc.patch
+
+    [[ -d build ]] || mkdir build
+}
+
+build() {
+    cd "PDAL-$pkgver-src/build"
+
+    cmake .. \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DBUILD_PLUGIN_PYTHON=ON \
+        -DBUILD_PLUGIN_PGPOINTCLOUD=ON \
+        -DBUILD_PLUGIN_SQLITE=ON \
+        -DBUILD_PLUGIN_HEXBIN=ON \
+        -DWITH_LAZPERF=ON \
+        -DWITH_LASZIP=ON \
+        -DWITH_COMPLETION=ON
+
+    make
+}
+
+package() {
+    cd "PDAL-$pkgver-src/build"
+
+    make DESTDIR="$pkgdir/" install
+
+    cd "$srcdir/PDAL-$pkgver-src"
+    install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
+}

Copied: pdal/repos/community-staging-x86_64/gcc.patch (from rev 287564, pdal/trunk/gcc.patch)
===================================================================
--- community-staging-x86_64/gcc.patch	                        (rev 0)
+++ community-staging-x86_64/gcc.patch	2018-01-28 02:07:11 UTC (rev 287565)
@@ -0,0 +1,47 @@
+diff --git a/dimbuilder/DimBuilder.cpp b/dimbuilder/DimBuilder.cpp
+index dd2f4a4c7..96b978a67 100644
+--- a/dimbuilder/DimBuilder.cpp
++++ b/dimbuilder/DimBuilder.cpp
+@@ -174,9 +174,11 @@ bool DimBuilder::execute()
+ void DimBuilder::extractDim(Json::Value& dim)
+ {
+     DimSpec d;
++    Json::Value empty;
+ 
+     // Get dimension name.
+-    Json::Value name = dim.removeMember("name");
++    Json::Value name = dim.get("name", empty);
++    dim.removeMember("name");
+     if (name.isNull())
+         throw dimbuilder_error("Dimension missing name.");
+     if (!name.isString())
+@@ -185,7 +187,8 @@ void DimBuilder::extractDim(Json::Value& dim)
+     validateDimension(d.m_name);
+ 
+     // Get dimension description.
+-    Json::Value description = dim.removeMember("description");
++    Json::Value description = dim.get("description", empty);
++    dim.removeMember("description");
+     if (description.isNull())
+     {
+         std::ostringstream oss;
+@@ -204,7 +207,8 @@ void DimBuilder::extractDim(Json::Value& dim)
+     d.m_description = description.asString();
+ 
+     // Get dimension type
+-    Json::Value type = dim.removeMember("type");
++    Json::Value type = dim.get("type", empty);
++    dim.removeMember("type");
+     if (type.isNull())
+     {
+         std::ostringstream oss;
+@@ -222,7 +226,8 @@ void DimBuilder::extractDim(Json::Value& dim)
+         throw dimbuilder_error(oss.str());
+     }
+ 
+-    Json::Value altNames = dim.removeMember("alt_names");
++    Json::Value altNames = dim.get("alt_names", empty);
++    dim.removeMember("alt_names");
+     if (!altNames.isNull())
+     {
+         if (!altNames.isString())



More information about the arch-commits mailing list