git: 0c5cb198d9ba - main - devel/R-cran-R.cache: New port

From: Zsolt Udvari <uzsolt_at_FreeBSD.org>
Date: Sun, 16 Feb 2025 14:03:57 UTC
The branch main has been updated by uzsolt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0c5cb198d9ba1d6725b6eca4f8650398339131b9

commit 0c5cb198d9ba1d6725b6eca4f8650398339131b9
Author:     Zsolt Udvari <uzsolt@FreeBSD.org>
AuthorDate: 2025-02-16 14:03:03 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2025-02-16 14:03:47 +0000

    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).
---
 devel/Makefile                 |  1 +
 devel/R-cran-R.cache/Makefile  | 20 ++++++++++++++++++++
 devel/R-cran-R.cache/distinfo  |  3 +++
 devel/R-cran-R.cache/pkg-descr | 10 ++++++++++
 4 files changed, 34 insertions(+)

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).