aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authortota <tota@FreeBSD.org>2017-06-27 14:31:26 +0800
committertota <tota@FreeBSD.org>2017-06-27 14:31:26 +0800
commit433ae2f5d2286c8867c65c76ceedce8166647ebd (patch)
tree7451197c9e535740122d0e0f5583853fc0af5d94 /math
parentc76611d4e47dadfb7e3cd30172fa8f23cc25c25c (diff)
downloadfreebsd-ports-gnome-433ae2f5d2286c8867c65c76ceedce8166647ebd.tar.gz
freebsd-ports-gnome-433ae2f5d2286c8867c65c76ceedce8166647ebd.tar.zst
freebsd-ports-gnome-433ae2f5d2286c8867c65c76ceedce8166647ebd.zip
- Add new port: math/R-cran-units
Support for measurement units in R vectors; automatic propagation, conversion, derivation and simplification of units; raising errors in case of unit incompatibility. Compatible with the difftime class. Uses the UNIDATA udunits library and unit database for unit conversion and compatibility checking. WWW: https://cran.r-project.org/web/packages/units/
Diffstat (limited to 'math')
-rw-r--r--math/Makefile1
-rw-r--r--math/R-cran-units/Makefile20
-rw-r--r--math/R-cran-units/distinfo3
-rw-r--r--math/R-cran-units/pkg-descr7
4 files changed, 31 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 2ad23a16285f..02c4f4ada933 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -74,6 +74,7 @@
SUBDIR += R-cran-stabledist
SUBDIR += R-cran-survey
SUBDIR += R-cran-truncnorm
+ SUBDIR += R-cran-units
SUBDIR += R-cran-xts
SUBDIR += R-cran-zoo
SUBDIR += aamath
diff --git a/math/R-cran-units/Makefile b/math/R-cran-units/Makefile
new file mode 100644
index 000000000000..9f3ed33301e5
--- /dev/null
+++ b/math/R-cran-units/Makefile
@@ -0,0 +1,20 @@
+# Created by: TAKATSU Tomonari <tota@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= units
+DISTVERSION= 0.4-5
+CATEGORIES= math
+DISTNAME= ${PORTNAME}_${DISTVERSION}
+
+MAINTAINER= tota@FreeBSD.org
+COMMENT= Measurement Units for R Vectors
+
+LICENSE= GPLv2
+
+CRAN_DEPENDS= R-cran-udunits2>=0.13:science/R-cran-udunits2
+BUILD_DEPENDS= ${CRAN_DEPENDS}
+RUN_DEPENDS= ${CRAN_DEPENDS}
+
+USES= cran:auto-plist
+
+.include <bsd.port.mk>
diff --git a/math/R-cran-units/distinfo b/math/R-cran-units/distinfo
new file mode 100644
index 000000000000..2ea081bb2eb5
--- /dev/null
+++ b/math/R-cran-units/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1498444362
+SHA256 (units_0.4-5.tar.gz) = 5c208cc8266bc37373bb630d22172643630a4e0f7a34d02a56cba67e03045469
+SIZE (units_0.4-5.tar.gz) = 781927
diff --git a/math/R-cran-units/pkg-descr b/math/R-cran-units/pkg-descr
new file mode 100644
index 000000000000..ff4d2f110122
--- /dev/null
+++ b/math/R-cran-units/pkg-descr
@@ -0,0 +1,7 @@
+Support for measurement units in R vectors; automatic propagation,
+conversion, derivation and simplification of units; raising errors
+in case of unit incompatibility. Compatible with the difftime class.
+Uses the UNIDATA udunits library and unit database for unit conversion
+and compatibility checking.
+
+WWW: https://cran.r-project.org/web/packages/units/