aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Jaekel <holger.jaekel@gmx.de>2020-05-26 20:49:53 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-05-27 16:00:55 +0000
commit22e46c061bb87ed0a9d5d33f8b7959a6185a0f5c (patch)
treeed2a68af90ca878bc1a61e373c4830a42bbe4bda
parent2154491ead6ce22a4d57b7cfdf8dbd67acdc8188 (diff)
downloadaports-22e46c061bb87ed0a9d5d33f8b7959a6185a0f5c.tar.gz
aports-22e46c061bb87ed0a9d5d33f8b7959a6185a0f5c.tar.bz2
aports-22e46c061bb87ed0a9d5d33f8b7959a6185a0f5c.tar.xz
testing/librasterlite2: new aport
https://www.gaia-gis.it/fossil/librasterlite2/index Library for storing and retrieving huge raster coverages using a SpatiaLite DBMS
-rw-r--r--testing/librasterlite2/10-musl.patch15
-rw-r--r--testing/librasterlite2/20-skip-tests.patch50
-rw-r--r--testing/librasterlite2/APKBUILD55
3 files changed, 120 insertions, 0 deletions
diff --git a/testing/librasterlite2/10-musl.patch b/testing/librasterlite2/10-musl.patch
new file mode 100644
index 0000000000..787db752cd
--- /dev/null
+++ b/testing/librasterlite2/10-musl.patch
@@ -0,0 +1,15 @@
+Author: Holger Jaekel <holger.jaekel@gmx.de>
+Summary: include time.h for time_t
+----
+
+--- a/headers/rasterlite2_private.h
++++ b/headers/rasterlite2_private.h
+@@ -48,6 +48,7 @@
+ */
+
+ #include "config.h"
++#include <time.h>
+
+ /*
+ / the following patch supporting GeoTiff headers
+~ \ No newline at end of file
diff --git a/testing/librasterlite2/20-skip-tests.patch b/testing/librasterlite2/20-skip-tests.patch
new file mode 100644
index 0000000000..238c4b0654
--- /dev/null
+++ b/testing/librasterlite2/20-skip-tests.patch
@@ -0,0 +1,50 @@
+Author: Holger Jaekel <holger.jaekel@gmx.de>
+Summary: skip tests that use functions included in sqlite 5.0.0.beta0
+----
+
+--- a/test/Makefile.am
++++ b/test/Makefile.am
+@@ -15,16 +15,16 @@
+ test_map_rgb test_map_gray \
+ test_map_srtm test_map_mono \
+ test_map_indiana test_load_wms \
+- test_map_noref test_map_trento \
++ test_map_noref \
+ test_map_trieste test_map_infrared \
+- test_map_orbetello test_raster_symbolizer \
++ test_raster_symbolizer \
+ test_svg test_raw test_openjpeg \
+ test_line_symbolizer test_line_symbolizer_col \
+ test_polygon_symbolizer test_polygon_symbolizer_col \
+ test_point_symbolizer test_point_symbolizer_col \
+ test_text_symbolizer test_text_symbolizer_col \
+ test_vectors test_font test_copy_rastercov \
+- test_tile_callback test_map_vector \
++ test_tile_callback \
+ test_col_symbolizers
+
+ AM_CPPFLAGS = -I@srcdir@/../headers @LIBXML2_CFLAGS@
+
+--- a/test/Makefile.in
++++ b/test/Makefile.in
+@@ -105,9 +105,9 @@
+ test_map_rgb$(EXEEXT) test_map_gray$(EXEEXT) \
+ test_map_srtm$(EXEEXT) test_map_mono$(EXEEXT) \
+ test_map_indiana$(EXEEXT) test_load_wms$(EXEEXT) \
+- test_map_noref$(EXEEXT) test_map_trento$(EXEEXT) \
++ test_map_noref$(EXEEXT) \
+ test_map_trieste$(EXEEXT) test_map_infrared$(EXEEXT) \
+- test_map_orbetello$(EXEEXT) test_raster_symbolizer$(EXEEXT) \
++ test_raster_symbolizer$(EXEEXT) \
+ test_svg$(EXEEXT) test_raw$(EXEEXT) test_openjpeg$(EXEEXT) \
+ test_line_symbolizer$(EXEEXT) \
+ test_line_symbolizer_col$(EXEEXT) \
+@@ -118,7 +118,7 @@
+ test_text_symbolizer$(EXEEXT) \
+ test_text_symbolizer_col$(EXEEXT) test_vectors$(EXEEXT) \
+ test_font$(EXEEXT) test_copy_rastercov$(EXEEXT) \
+- test_tile_callback$(EXEEXT) test_map_vector$(EXEEXT) \
++ test_tile_callback$(EXEEXT) \
+ test_col_symbolizers$(EXEEXT)
+ subdir = test
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
diff --git a/testing/librasterlite2/APKBUILD b/testing/librasterlite2/APKBUILD
new file mode 100644
index 0000000000..2486c06598
--- /dev/null
+++ b/testing/librasterlite2/APKBUILD
@@ -0,0 +1,55 @@
+# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
+# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
+pkgname=librasterlite2
+pkgver=1.1.0b0
+_pkgver="${pkgver//b0/-beta0}"
+pkgrel=0
+pkgdesc="Library for storing and retrieving huge raster coverages using a SpatiaLite DBMS"
+url="https://www.gaia-gis.it/fossil/librasterlite2/index"
+arch="x86_64" # libspatialite availability
+license="MPL-1.1"
+makedepends="
+ cairo-dev
+ curl-dev
+ giflib-dev
+ libgeotiff-dev
+ libjpeg-turbo-dev
+ libpng-dev
+ libspatialite-dev
+ libwebp-dev
+ libxml2-dev
+ openjpeg-dev
+ proj-dev
+ sqlite-dev
+ tiff-dev
+ xz-dev
+ "
+subpackages="$pkgname-dev"
+source="
+ http://www.gaia-gis.it/gaia-sins/librasterlite2-sources/librasterlite2-$_pkgver.tar.gz
+ 10-musl.patch
+ 20-skip-tests.patch
+ "
+builddir=$srcdir/$pkgname-$_pkgver
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --disable-static \
+ --disable-charls # broken build with charls 2.1.0
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="2514a781fab3b93740d2f8d8500ae0664be86603e483a4ca576a09da55edc085c5715caa3fcfa686d0590d1c2132957de49b35356624229f66e11ce4ce637e22 librasterlite2-1.1.0-beta0.tar.gz
+6ed660abe58577d565de40d799434ae5c04aff5896d7b3a35a0e65400e48b1adc13a3842a0cb31ec3b104f2acad4a3ec0e9d1ca6b97b03e6ce186be5d355605d 10-musl.patch
+07481392ba03b985ecdfb82086d9c40c111807d29b8ce2252f76e7e8ec18fe4a6f83ddc90e8a4e93a7ef57cb568f8fdc9f1f1f92757980a423ac6b8c8e7a6dc4 20-skip-tests.patch"