diff options
author | Holger Jaekel <holger.jaekel@gmx.de> | 2020-05-26 20:49:53 +0200 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-05-27 16:00:55 +0000 |
commit | 22e46c061bb87ed0a9d5d33f8b7959a6185a0f5c (patch) | |
tree | ed2a68af90ca878bc1a61e373c4830a42bbe4bda | |
parent | 2154491ead6ce22a4d57b7cfdf8dbd67acdc8188 (diff) | |
download | alpine_aports-22e46c061bb87ed0a9d5d33f8b7959a6185a0f5c.tar.bz2 alpine_aports-22e46c061bb87ed0a9d5d33f8b7959a6185a0f5c.tar.xz alpine_aports-22e46c061bb87ed0a9d5d33f8b7959a6185a0f5c.zip |
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.patch | 15 | ||||
-rw-r--r-- | testing/librasterlite2/20-skip-tests.patch | 50 | ||||
-rw-r--r-- | testing/librasterlite2/APKBUILD | 55 |
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 @@ | |||
1 | Author: Holger Jaekel <holger.jaekel@gmx.de> | ||
2 | Summary: include time.h for time_t | ||
3 | ---- | ||
4 | |||
5 | --- a/headers/rasterlite2_private.h | ||
6 | +++ b/headers/rasterlite2_private.h | ||
7 | @@ -48,6 +48,7 @@ | ||
8 | */ | ||
9 | |||
10 | #include "config.h" | ||
11 | +#include <time.h> | ||
12 | |||
13 | /* | ||
14 | / the following patch supporting GeoTiff headers | ||
15 | ~ \ 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 @@ | |||
1 | Author: Holger Jaekel <holger.jaekel@gmx.de> | ||
2 | Summary: skip tests that use functions included in sqlite 5.0.0.beta0 | ||
3 | ---- | ||
4 | |||
5 | --- a/test/Makefile.am | ||
6 | +++ b/test/Makefile.am | ||
7 | @@ -15,16 +15,16 @@ | ||
8 | test_map_rgb test_map_gray \ | ||
9 | test_map_srtm test_map_mono \ | ||
10 | test_map_indiana test_load_wms \ | ||
11 | - test_map_noref test_map_trento \ | ||
12 | + test_map_noref \ | ||
13 | test_map_trieste test_map_infrared \ | ||
14 | - test_map_orbetello test_raster_symbolizer \ | ||
15 | + test_raster_symbolizer \ | ||
16 | test_svg test_raw test_openjpeg \ | ||
17 | test_line_symbolizer test_line_symbolizer_col \ | ||
18 | test_polygon_symbolizer test_polygon_symbolizer_col \ | ||
19 | test_point_symbolizer test_point_symbolizer_col \ | ||
20 | test_text_symbolizer test_text_symbolizer_col \ | ||
21 | test_vectors test_font test_copy_rastercov \ | ||
22 | - test_tile_callback test_map_vector \ | ||
23 | + test_tile_callback \ | ||
24 | test_col_symbolizers | ||
25 | |||
26 | AM_CPPFLAGS = -I@srcdir@/../headers @LIBXML2_CFLAGS@ | ||
27 | |||
28 | --- a/test/Makefile.in | ||
29 | +++ b/test/Makefile.in | ||
30 | @@ -105,9 +105,9 @@ | ||
31 | test_map_rgb$(EXEEXT) test_map_gray$(EXEEXT) \ | ||
32 | test_map_srtm$(EXEEXT) test_map_mono$(EXEEXT) \ | ||
33 | test_map_indiana$(EXEEXT) test_load_wms$(EXEEXT) \ | ||
34 | - test_map_noref$(EXEEXT) test_map_trento$(EXEEXT) \ | ||
35 | + test_map_noref$(EXEEXT) \ | ||
36 | test_map_trieste$(EXEEXT) test_map_infrared$(EXEEXT) \ | ||
37 | - test_map_orbetello$(EXEEXT) test_raster_symbolizer$(EXEEXT) \ | ||
38 | + test_raster_symbolizer$(EXEEXT) \ | ||
39 | test_svg$(EXEEXT) test_raw$(EXEEXT) test_openjpeg$(EXEEXT) \ | ||
40 | test_line_symbolizer$(EXEEXT) \ | ||
41 | test_line_symbolizer_col$(EXEEXT) \ | ||
42 | @@ -118,7 +118,7 @@ | ||
43 | test_text_symbolizer$(EXEEXT) \ | ||
44 | test_text_symbolizer_col$(EXEEXT) test_vectors$(EXEEXT) \ | ||
45 | test_font$(EXEEXT) test_copy_rastercov$(EXEEXT) \ | ||
46 | - test_tile_callback$(EXEEXT) test_map_vector$(EXEEXT) \ | ||
47 | + test_tile_callback$(EXEEXT) \ | ||
48 | test_col_symbolizers$(EXEEXT) | ||
49 | subdir = test | ||
50 | 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 @@ | |||
1 | # Contributor: Holger Jaekel <holger.jaekel@gmx.de> | ||
2 | # Maintainer: Holger Jaekel <holger.jaekel@gmx.de> | ||
3 | pkgname=librasterlite2 | ||
4 | pkgver=1.1.0b0 | ||
5 | _pkgver="${pkgver//b0/-beta0}" | ||
6 | pkgrel=0 | ||
7 | pkgdesc="Library for storing and retrieving huge raster coverages using a SpatiaLite DBMS" | ||
8 | url="https://www.gaia-gis.it/fossil/librasterlite2/index" | ||
9 | arch="x86_64" # libspatialite availability | ||
10 | license="MPL-1.1" | ||
11 | makedepends=" | ||
12 | cairo-dev | ||
13 | curl-dev | ||
14 | giflib-dev | ||
15 | libgeotiff-dev | ||
16 | libjpeg-turbo-dev | ||
17 | libpng-dev | ||
18 | libspatialite-dev | ||
19 | libwebp-dev | ||
20 | libxml2-dev | ||
21 | openjpeg-dev | ||
22 | proj-dev | ||
23 | sqlite-dev | ||
24 | tiff-dev | ||
25 | xz-dev | ||
26 | " | ||
27 | subpackages="$pkgname-dev" | ||
28 | source=" | ||
29 | http://www.gaia-gis.it/gaia-sins/librasterlite2-sources/librasterlite2-$_pkgver.tar.gz | ||
30 | 10-musl.patch | ||
31 | 20-skip-tests.patch | ||
32 | " | ||
33 | builddir=$srcdir/$pkgname-$_pkgver | ||
34 | |||
35 | build() { | ||
36 | ./configure \ | ||
37 | --prefix=/usr \ | ||
38 | --build=$CBUILD \ | ||
39 | --host=$CHOST \ | ||
40 | --disable-static \ | ||
41 | --disable-charls # broken build with charls 2.1.0 | ||
42 | make | ||
43 | } | ||
44 | |||
45 | check() { | ||
46 | make check | ||
47 | } | ||
48 | |||
49 | package() { | ||
50 | make DESTDIR="$pkgdir" install | ||
51 | } | ||
52 | |||
53 | sha512sums="2514a781fab3b93740d2f8d8500ae0664be86603e483a4ca576a09da55edc085c5715caa3fcfa686d0590d1c2132957de49b35356624229f66e11ce4ce637e22 librasterlite2-1.1.0-beta0.tar.gz | ||
54 | 6ed660abe58577d565de40d799434ae5c04aff5896d7b3a35a0e65400e48b1adc13a3842a0cb31ec3b104f2acad4a3ec0e9d1ca6b97b03e6ce186be5d355605d 10-musl.patch | ||
55 | 07481392ba03b985ecdfb82086d9c40c111807d29b8ce2252f76e7e8ec18fe4a6f83ddc90e8a4e93a7ef57cb568f8fdc9f1f1f92757980a423ac6b8c8e7a6dc4 20-skip-tests.patch" | ||