git: 4a0868b15ce8 - main - devel/R-cran-data.table: Update to 1.17.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Feb 2025 14:39:54 UTC
The branch main has been updated by eduardo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4a0868b15ce8faa280991011633fe4fbaa1d05ef
commit 4a0868b15ce8faa280991011633fe4fbaa1d05ef
Author: Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2025-02-25 14:21:45 +0000
Commit: Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2025-02-25 14:39:18 +0000
devel/R-cran-data.table: Update to 1.17.0
- Added LC_ALL=C.UTF-8 MAKE_ENV to fix tests
ChangeLog: https://cran.r-project.org/web/packages/data.table/news/news.html
---
devel/R-cran-data.table/Makefile | 14 ++++++-------
devel/R-cran-data.table/distinfo | 6 +++---
devel/R-cran-data.table/files/extra-patch-test | 27 --------------------------
3 files changed, 9 insertions(+), 38 deletions(-)
diff --git a/devel/R-cran-data.table/Makefile b/devel/R-cran-data.table/Makefile
index 5c41fed0ba59..ba348b7fb3d0 100644
--- a/devel/R-cran-data.table/Makefile
+++ b/devel/R-cran-data.table/Makefile
@@ -1,5 +1,5 @@
PORTNAME= data.table
-DISTVERSION= 1.16.4
+DISTVERSION= 1.17.0
CATEGORIES= devel
DISTNAME= ${PORTNAME}_${DISTVERSION}
@@ -11,19 +11,17 @@ LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= R-cran-bit64>0:devel/R-cran-bit64 \
- R-cran-knitr>0:print/R-cran-knitr
-# Tests fail if no /etc/locatime symlink defined
+ R-cran-knitr>0:print/R-cran-knitr \
+ R-cran-R.utils>0:devel/R-cran-R.utils
USES= cran:auto-plist,compiles pkgconfig
-EXTRA_PATCHES= ${FILESDIR}/extra-patch-test:-p1
+# Tests needs /etc/locatime symlink defined to succeed
+# and C.UTF-8 env set:
+MAKE_ENV= LC_ALL=C.UTF-8
NO_ARCH_IGNORE= data_table.so
-# Decompress so patch could be applied. Tests will run from uncompressed file.
-pre-patch:
- ${BZIP2_CMD} -d ${WRKSRC}/inst/tests/tests.Rraw.bz2
-
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/R/library/data.table/libs/data_table.so
diff --git a/devel/R-cran-data.table/distinfo b/devel/R-cran-data.table/distinfo
index 4ec9c30412cb..8e23eaab9e3c 100644
--- a/devel/R-cran-data.table/distinfo
+++ b/devel/R-cran-data.table/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1735906834
-SHA256 (data.table_1.16.4.tar.gz) = 72764bb3aebc111de60223cfb32b6111a47081e3a1e7f6d20c78eb7f30269cdf
-SIZE (data.table_1.16.4.tar.gz) = 5490632
+TIMESTAMP = 1740489786
+SHA256 (data.table_1.17.0.tar.gz) = 82a7dd54fa583c20895b2d28fe07922f8f8aeb0ffbd94d1c143e79983bb9bcea
+SIZE (data.table_1.17.0.tar.gz) = 5833671
diff --git a/devel/R-cran-data.table/files/extra-patch-test b/devel/R-cran-data.table/files/extra-patch-test
deleted file mode 100644
index f96280f75fc1..000000000000
--- a/devel/R-cran-data.table/files/extra-patch-test
+++ /dev/null
@@ -1,27 +0,0 @@
-From 71bfe065ad5c6ddc40b0b5831802b48d9459c56e Mon Sep 17 00:00:00 2001
-From: Ivan K <krylov.r00t@gmail.com>
-Date: Thu, 10 Oct 2024 16:07:02 +0300
-Subject: [PATCH] tests: Detect session encoding incapable of U+00F1
-
-iconv() does not necessarily fail to convert U+00F1 to ASCII. For
-example, FreeBSD iconv() succeeds and returns '?' instead of the
-character in question. Use identical() to compare the result of the
-conversion back to the original (which internally converts both to
-UTF-8).
----
- inst/tests/tests.Rraw | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/inst/tests/tests.Rraw b/inst/tests/tests.Rraw
-index f79bec0d7f..c530b2fd12 100644
---- a/inst/tests/tests.Rraw
-+++ b/inst/tests/tests.Rraw
-@@ -18768,7 +18768,7 @@ if (test_bit64) local({
- # non-ASCII plain symbol in by, #4708
- # NB: recall we can't use non-ASCII symbols in the test script. The text is a-<n-tilde>-o (year in Spanish)
- native_ano = iconv("a\U00F1o", "UTF-8", "")
--if (!is.na(native_ano)) { # #6339: symbol must be represented in native encoding
-+if (identical(native_ano, "a\U00F1o")) { # #6339: symbol must be represented in native encoding
- DT = data.table(a = rep(1:3, 2))
- setnames(DT, "a", native_ano)
- test(2266, eval(parse(text=sprintf("DT[ , .N, %s]$N[1L]", native_ano))), 2L)