git: 0d6cdbf5655b - main - devel/R-cran-cpp11: Update to 0.5.1

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Fri, 06 Dec 2024 15:31:14 UTC
The branch main has been updated by eduardo:

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

commit 0d6cdbf5655bccfeb8f061b74d320b5fb965b35a
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2024-12-06 15:23:05 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-12-06 15:31:02 +0000

    devel/R-cran-cpp11: Update to 0.5.1
    
    - Add TESTING_UNSAFE
    
    ChangeLog: https://cran.r-project.org/web/packages/cpp11/news/news.html
---
 devel/R-cran-cpp11/Makefile | 10 +++++++++-
 devel/R-cran-cpp11/distinfo |  6 +++---
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/devel/R-cran-cpp11/Makefile b/devel/R-cran-cpp11/Makefile
index f139bcb69969..072cdab96576 100644
--- a/devel/R-cran-cpp11/Makefile
+++ b/devel/R-cran-cpp11/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	cpp11
-DISTVERSION=	0.5.0
+DISTVERSION=	0.5.1
 CATEGORIES=	devel
 DISTNAME=	${PORTNAME}_${PORTVERSION}
 
@@ -10,10 +10,18 @@ WWW=		https://cran.r-project.org/web/packages/cpp11/
 LICENSE=	MIT
 
 TEST_DEPENDS=	R-cran-decor>0:devel/R-cran-decor \
+		R-cran-knitr>0:print/R-cran-knitr \
 		R-cran-mockery>0:devel/R-cran-mockery \
 		R-cran-progress>0:devel/R-cran-progress \
 		R-cran-testthat>0:devel/R-cran-testthat
 
+TESTING_UNSAFE=	https://github.com/r-lib/cpp11/issues/419
+
 USES=		cran:auto-plist
 
+pre-test:
+# R-cran-bench package does not exist yet
+	@${LOCALBASE}/bin/Rscript -e 'install.packages("bench", \
+		repos = "https://cloud.r-project.org")'
+
 .include <bsd.port.mk>
diff --git a/devel/R-cran-cpp11/distinfo b/devel/R-cran-cpp11/distinfo
index 59c46bad375d..26087ff25dfb 100644
--- a/devel/R-cran-cpp11/distinfo
+++ b/devel/R-cran-cpp11/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1724929728
-SHA256 (cpp11_0.5.0.tar.gz) = 75dd64b7a5bfd92471cb71e0c22e24a7d7484fe0580d067cecadf288cc4334a3
-SIZE (cpp11_0.5.0.tar.gz) = 275693
+TIMESTAMP = 1733476116
+SHA256 (cpp11_0.5.1.tar.gz) = 3d1ea475bc2dc2e9d4ee3ce41edeb96370f5417fbd77c48a085e5ed6f379afd4
+SIZE (cpp11_0.5.1.tar.gz) = 291870