summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorbrook <brook@pkgsrc.org>2020-08-08 22:52:57 +0000
committerbrook <brook@pkgsrc.org>2020-08-08 22:52:57 +0000
commit8752bd274bb85932a2c209ff7fd091cc6162ef72 (patch)
tree1dd585cef1aed4e5833611e299666da3eb7fc397 /math
parent2c6295d99ebaf152683f0c72e55bafe4698866e7 (diff)
downloadpkgsrc-8752bd274bb85932a2c209ff7fd091cc6162ef72.tar.gz
math/R-units: import R-units-0.6.5
Support for measurement units in R vectors, matrices and arrays: automatic propagation, conversion, derivation and simplification of units; raising errors in case of unit incompatibility. Compatible with the POSIXct, Date and difftime classes. Uses the UNIDATA udunits library and unit database for unit compatibility checking and conversion.
Diffstat (limited to 'math')
-rw-r--r--math/Makefile3
-rw-r--r--math/R-units/DESCR6
-rw-r--r--math/R-units/Makefile15
-rw-r--r--math/R-units/distinfo8
-rw-r--r--math/R-units/patches/patch-configure15
-rw-r--r--math/R-units/patches/patch-configure.ac15
6 files changed, 61 insertions, 1 deletions
diff --git a/math/Makefile b/math/Makefile
index 998120ba59a..14fb92b767e 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.475 2020/08/07 13:50:07 jperkin Exp $
+# $NetBSD: Makefile,v 1.476 2020/08/08 22:52:57 brook Exp $
COMMENT= Mathematics
@@ -112,6 +112,7 @@ SUBDIR+= R-tensor
SUBDIR+= R-tensorA
SUBDIR+= R-tibble
SUBDIR+= R-tidyr
+SUBDIR+= R-units
SUBDIR+= R-urca
SUBDIR+= R-vctrs
SUBDIR+= R-wle
diff --git a/math/R-units/DESCR b/math/R-units/DESCR
new file mode 100644
index 00000000000..22d239f1e55
--- /dev/null
+++ b/math/R-units/DESCR
@@ -0,0 +1,6 @@
+Support for measurement units in R vectors, matrices and arrays:
+automatic propagation, conversion, derivation and simplification of
+units; raising errors in case of unit incompatibility. Compatible with
+the POSIXct, Date and difftime classes. Uses the UNIDATA udunits
+library and unit database for unit compatibility checking and
+conversion.
diff --git a/math/R-units/Makefile b/math/R-units/Makefile
new file mode 100644
index 00000000000..1b2358113fd
--- /dev/null
+++ b/math/R-units/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 2020/08/08 22:52:57 brook Exp $
+
+R_PKGNAME= units
+R_PKGVER= 0.6-5
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+COMMENT= Measurement Units for R Vectors
+LICENSE= gnu-gpl-v2
+
+USE_LANGUAGES+= c c++
+
+.include "../../math/R/Makefile.extension"
+.include "../../devel/R-Rcpp/buildlink3.mk"
+.include "../../math/udunits/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/R-units/distinfo b/math/R-units/distinfo
new file mode 100644
index 00000000000..55be4926988
--- /dev/null
+++ b/math/R-units/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2020/08/08 22:52:57 brook Exp $
+
+SHA1 (R/units_0.6-5.tar.gz) = 970efb2a7afbb7693d1d2d1272adc562c46fd28f
+RMD160 (R/units_0.6-5.tar.gz) = b006936f0f9c3b531ed6a4ff1eabf37fcf80e924
+SHA512 (R/units_0.6-5.tar.gz) = 729af00ced12e3394e6742e1db26469170969310fa9dd6c4cb2a9544382cd46575850cf716aa80992dd4634fc62118a47555a2b62fc20c1e84223e7e438209cd
+Size (R/units_0.6-5.tar.gz) = 959970 bytes
+SHA1 (patch-configure) = f57f2b7187678ba9f0973e2c90dd08d1fe4e752f
+SHA1 (patch-configure.ac) = 6f6dab407646bda4fc25abca4af1c730146a79be
diff --git a/math/R-units/patches/patch-configure b/math/R-units/patches/patch-configure
new file mode 100644
index 00000000000..cbd7c85d4dd
--- /dev/null
+++ b/math/R-units/patches/patch-configure
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure,v 1.1 2020/08/08 22:52:57 brook Exp $
+
+Use of == with test is not portable; use = instead.
+
+--- configure.orig 2018-06-09 10:48:44.000000000 +0000
++++ configure
+@@ -3795,7 +3795,7 @@ _ACEOF
+
+ fi
+
+-if test "${ac_cv_lib_expat_XML_ParserCreate}" == yes; then
++if test "${ac_cv_lib_expat_XML_ParserCreate}" = yes; then
+ LIBS="${LIBS} -lexpat"
+ fi
+
diff --git a/math/R-units/patches/patch-configure.ac b/math/R-units/patches/patch-configure.ac
new file mode 100644
index 00000000000..cbf015d8f2e
--- /dev/null
+++ b/math/R-units/patches/patch-configure.ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure.ac,v 1.1 2020/08/08 22:52:57 brook Exp $
+
+Use of == with test is not portable; use = instead.
+
+--- configure.ac.orig 2018-06-08 13:06:37.000000000 +0000
++++ configure.ac
+@@ -45,7 +45,7 @@ else
+ fi
+
+ AC_CHECK_LIB(expat, XML_ParserCreate, [],[], ${LIBS})
+-if test "${ac_cv_lib_expat_XML_ParserCreate}" == yes; then
++if test "${ac_cv_lib_expat_XML_ParserCreate}" = yes; then
+ LIBS="${LIBS} -lexpat"
+ fi
+