aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZsolt Udvari <uzsolt@FreeBSD.org>2025-02-16 14:03:03 +0000
committerZsolt Udvari <uzsolt@FreeBSD.org>2025-02-16 14:03:47 +0000
commit0c5cb198d9ba1d6725b6eca4f8650398339131b9 (patch)
tree3113c1199928cbfbc992179aae4e04eea419edd1
parentef08ef1262c333ed4d0dfd4804aecb56a4f93be1 (diff)
devel/R-cran-R.cache: New port
R.cache: Fast and Light-Weight Caching (Memoization) of Objects and Results to Speed Up Computations Memoization can be used to speed up repetitive and computational expensive function calls. The first time a function that implements memoization is called the results are stored in a cache memory. The next time the function is called with the same set of parameters, the results are momentarily retrieved from the cache avoiding repeating the calculations. With this package, any R object can be cached in a key-value storage where the key can be an arbitrary set of R objects. The cache memory is persistent (on the file system).
-rw-r--r--devel/Makefile1
-rw-r--r--devel/R-cran-R.cache/Makefile20
-rw-r--r--devel/R-cran-R.cache/distinfo3
-rw-r--r--devel/R-cran-R.cache/pkg-descr10
4 files changed, 34 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 15d5921ea7b6..06e8b7c04787 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -6,6 +6,7 @@
SUBDIR += R-cran-Defaults
SUBDIR += R-cran-Hmisc
SUBDIR += R-cran-ModelMetrics
+ SUBDIR += R-cran-R.cache
SUBDIR += R-cran-R.methodsS3
SUBDIR += R-cran-R.oo
SUBDIR += R-cran-R.utils
diff --git a/devel/R-cran-R.cache/Makefile b/devel/R-cran-R.cache/Makefile
new file mode 100644
index 000000000000..e07c3e650125
--- /dev/null
+++ b/devel/R-cran-R.cache/Makefile
@@ -0,0 +1,20 @@
+PORTNAME= R.cache
+DISTVERSION= 0.16.0
+CATEGORIES= devel
+DISTNAME= ${PORTNAME}_${PORTVERSION}
+
+MAINTAINER= uzsolt@FreeBSD.org
+COMMENT= Caching (Memoization) of Objects and Results
+WWW= https://cran.r-project.org/package=R.cache
+
+LICENSE= LGPL21 LGPL3
+LICENSE_COMB= dual
+
+RUN_DEPENDS= R-cran-digest>0:security/R-cran-digest \
+ R-cran-R.methodsS3>=1.8.1:devel/R-cran-R.methodsS3 \
+ R-cran-R.oo>0:devel/R-cran-R.oo \
+ R-cran-R.utils>0:devel/R-cran-R.utils
+
+USES= cran:auto-plist
+
+.include <bsd.port.mk>
diff --git a/devel/R-cran-R.cache/distinfo b/devel/R-cran-R.cache/distinfo
new file mode 100644
index 000000000000..10fbf7d3afd4
--- /dev/null
+++ b/devel/R-cran-R.cache/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1739707567
+SHA256 (R.cache_0.16.0.tar.gz) = 7853409161571a790e0383f64f99e4eae43201a0ed7146d2baf157741a509291
+SIZE (R.cache_0.16.0.tar.gz) = 35287
diff --git a/devel/R-cran-R.cache/pkg-descr b/devel/R-cran-R.cache/pkg-descr
new file mode 100644
index 000000000000..265af7452361
--- /dev/null
+++ b/devel/R-cran-R.cache/pkg-descr
@@ -0,0 +1,10 @@
+R.cache: Fast and Light-Weight Caching (Memoization) of Objects and Results to
+Speed Up Computations
+
+Memoization can be used to speed up repetitive and computational expensive
+function calls. The first time a function that implements memoization is called
+the results are stored in a cache memory. The next time the function is called
+with the same set of parameters, the results are momentarily retrieved from the
+cache avoiding repeating the calculations. With this package, any R object can
+be cached in a key-value storage where the key can be an arbitrary set of R
+objects. The cache memory is persistent (on the file system).