summaryrefslogtreecommitdiff
path: root/math/R-RNetCDF
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2018-09-17 13:24:17 +0000
committermaya <maya@pkgsrc.org>2018-09-17 13:24:17 +0000
commit0d195fb6d06208a6ac06469d506b97b4161292ca (patch)
treeb0fefbe526b74a59c9fb636d5db7c7759bf64063 /math/R-RNetCDF
parent3f0813849650a490fb59f19308c5c7f4510a1325 (diff)
downloadpkgsrc-0d195fb6d06208a6ac06469d506b97b4161292ca.tar.gz
Add package R-RNetCDF version 1.9-1
An R interface to the NetCDF file format designed by Unidata for efficient storage of array-oriented scientific data and descriptions. The R interface is closely based on the C API of the NetCDF library, and it includes calendar conversions from the Unidata UDUNITS library. The current implementation supports all operations on NetCDF datasets in classic and 64-bit offset file formats, and NetCDF4-classic format is supported for reading and modification of existing files. From Kai-Uwe Eckhardt, updated as the previous distfile wasn't available. PR pkg/51607
Diffstat (limited to 'math/R-RNetCDF')
-rw-r--r--math/R-RNetCDF/DESCR7
-rw-r--r--math/R-RNetCDF/Makefile19
-rw-r--r--math/R-RNetCDF/distinfo7
-rw-r--r--math/R-RNetCDF/patches/patch-configure33
4 files changed, 66 insertions, 0 deletions
diff --git a/math/R-RNetCDF/DESCR b/math/R-RNetCDF/DESCR
new file mode 100644
index 00000000000..9d908491800
--- /dev/null
+++ b/math/R-RNetCDF/DESCR
@@ -0,0 +1,7 @@
+An R interface to the NetCDF file format designed by Unidata for
+efficient storage of array-oriented scientific data and descriptions.
+The R interface is closely based on the C API of the NetCDF library,
+and it includes calendar conversions from the Unidata UDUNITS library.
+The current implementation supports all operations on NetCDF datasets
+in classic and 64-bit offset file formats, and NetCDF4-classic format
+is supported for reading and modification of existing files.
diff --git a/math/R-RNetCDF/Makefile b/math/R-RNetCDF/Makefile
new file mode 100644
index 00000000000..e7e0cdfd4ac
--- /dev/null
+++ b/math/R-RNetCDF/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2018/09/17 13:24:18 maya Exp $
+#
+
+CATEGORIES= math
+MASTER_SITES= ${MASTER_SITE_R_CRAN:=contrib/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= ${R_HOMEPAGE_BASE}/ncdf/
+COMMENT= High-level R interface to Unidata's netCDF data files
+LICENSE= gnu-gpl-v2
+
+R_PKGNAME= RNetCDF
+R_PKGVER= 1.9-1
+
+
+.include "../../math/R/Makefile.extension"
+.include "../../devel/netcdf/buildlink3.mk"
+.include "../../math/udunits/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/R-RNetCDF/distinfo b/math/R-RNetCDF/distinfo
new file mode 100644
index 00000000000..3cde35de4f6
--- /dev/null
+++ b/math/R-RNetCDF/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2018/09/17 13:24:18 maya Exp $
+
+SHA1 (R/RNetCDF_1.9-1.tar.gz) = 720b4146271bd8a5156f9d3810d2c9bd1eee76ef
+RMD160 (R/RNetCDF_1.9-1.tar.gz) = b473a5eb57df4d48b96eea8b4b347bda2f2ded52
+SHA512 (R/RNetCDF_1.9-1.tar.gz) = 3a1cd3b9b7996ffc40b14f4ac6bee78c5ea68cad8e4f68e0ba64ecfd6bb26e9e349cfacac8dac910dd5c57d6f4e8dbad6f47e48632b57a7a2d962381e6ff75f7
+Size (R/RNetCDF_1.9-1.tar.gz) = 98628 bytes
+SHA1 (patch-configure) = 62e98e78ae4338ce7bad04dbcb69fdb60cef5b8f
diff --git a/math/R-RNetCDF/patches/patch-configure b/math/R-RNetCDF/patches/patch-configure
new file mode 100644
index 00000000000..e93be96bd67
--- /dev/null
+++ b/math/R-RNetCDF/patches/patch-configure
@@ -0,0 +1,33 @@
+$NetBSD: patch-configure,v 1.1 2018/09/17 13:24:18 maya Exp $
+
+Fix the use of == in shell scripts.
+
+--- configure.orig 2016-11-06 16:18:40.084776697 +0000
++++ configure
+@@ -3275,7 +3275,7 @@ fi
+ done
+
+
+-if test "x$have_nc_config" == xyes; then :
++if test "x$have_nc_config" = xyes; then :
+
+ # Find libraries and cflags used to build netcdf:
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking netcdf linker flags" >&5
+@@ -3589,7 +3589,7 @@ fi
+ # Define variables UDUNITS_LIB, UDUNITS_DBFILE and UDUNITS_DBVAR,
+ # based on the version of udunits detected above.
+ # Also define preprocessor macro HAVE_LIBUDUNITS or HAVE_LIBUDUNITS2.
+-if test $udunits == 2; then :
++if test $udunits = 2; then :
+
+ UDUNITS_LIB=udunits2
+ UDUNITS_DBFILE=udunits2.xml
+@@ -3597,7 +3597,7 @@ if test $udunits == 2; then :
+ $as_echo "#define HAVE_LIBUDUNITS2 1" >>confdefs.h
+
+
+-elif test $udunits == 1; then :
++elif test $udunits = 1; then :
+
+ UDUNITS_LIB=udunits
+ UDUNITS_DBFILE=udunits.dat