aboutsummaryrefslogtreecommitdiffstats
path: root/testing/netcdf
diff options
context:
space:
mode:
authorHolger Jaekel <holger.jaekel@gmx.de>2019-06-10 22:38:39 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-06-14 17:16:09 -0300
commita0e3c1d8cb31ba9fe888e2e24ca1dd03d018fc11 (patch)
tree6d0a9a4b031711ebf5672e0a4433ac3d23247412 /testing/netcdf
parent97ed57394aa3324ded74b19200e945ca947f0390 (diff)
downloadaports-a0e3c1d8cb31ba9fe888e2e24ca1dd03d018fc11.tar.bz2
aports-a0e3c1d8cb31ba9fe888e2e24ca1dd03d018fc11.tar.xz
testing/netcdf: new aport
Diffstat (limited to 'testing/netcdf')
-rw-r--r--testing/netcdf/APKBUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/testing/netcdf/APKBUILD b/testing/netcdf/APKBUILD
new file mode 100644
index 0000000000..c6168120eb
--- /dev/null
+++ b/testing/netcdf/APKBUILD
@@ -0,0 +1,58 @@
+# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
+# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
+pkgname=netcdf
+pkgver=4.7.0
+pkgrel=0
+pkgdesc="Libraries for the Unidata network Common Data Format"
+url="https://www.unidata.ucar.edu/software/netcdf/"
+arch="all !armhf !armv7" # disabling on armhf and armv7 as tests fail
+license="BSD-3-Clause"
+makedepends="
+ bash
+ cmake
+ curl-dev
+ hdf5-dev
+ m4
+ "
+subpackages="
+ $pkgname-doc
+ $pkgname-dev
+ $pkgname-utils:utils
+ "
+source="$pkgname-$pkgver.tar.gz::https://github.com/Unidata/netcdf-c/archive/v${pkgver}.tar.gz"
+builddir="$srcdir/$pkgname-c-$pkgver"
+
+build() {
+ local ENABLE_CDF5=ON
+ case "$CARCH" in
+ x86|armhf|armv7) ENABLE_CDF5=OFF ;;
+ esac
+ cmake . \
+ -DCFLAGS="$CFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DENABLE_CDF5=$ENABLE_CDF5 \
+ -DENABLE_DAP_LONG_TESTS=ON \
+ -DENABLE_EXAMPLE_TESTS=ON \
+ -DENABLE_EXTRA_TESTS=ON \
+ -DENABLE_FAILING_TESTS=ON \
+ -DENABLE_FILTER_TESTING=ON \
+ -DENABLE_LARGE_FILE_TESTS=ON
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+utils() {
+ install -d "$subpkgdir/usr/bin"
+ mv "$pkgdir/usr/bin" "$subpkgdir/usr/"
+}
+
+check() {
+ # One test failure in nc_test as reported in https://github.com/Unidata/netcdf-c/issues/808
+ ctest -E nc_test
+}
+sha512sums="6602799780105c60ac8c873ed4055c1512dc8bebf98de01e1cce572d113ffb3bf3ca522475b93255c415340f672c55dc6785e0bdbcc39055314683da1d02141a netcdf-4.7.0.tar.gz"