git: aafaf1e366a7 - main - ftp/R-cran-curl: Update to 5.1.0.

From: Li-Wen Hsu <lwhsu_at_FreeBSD.org>
Date: Fri, 03 Nov 2023 07:42:02 UTC
The branch main has been updated by lwhsu:

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

commit aafaf1e366a7ee6856a3d5268d2b5697f6498acb
Author:     Zsolt Udvari <uzsolt@uzsolt.hu>
AuthorDate: 2023-11-01 18:56:00 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2023-11-03 07:41:11 +0000

    ftp/R-cran-curl: Update to 5.1.0.
    
    Added TEST_DEPENDS and pre-test target to run 'make test'.
    
    Changelog: https://cran.r-project.org/web/packages/curl/NEWS
    
    PR:             274854
---
 ftp/R-cran-curl/Makefile | 13 ++++++++++++-
 ftp/R-cran-curl/distinfo |  6 +++---
 2 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/ftp/R-cran-curl/Makefile b/ftp/R-cran-curl/Makefile
index 4949e9cf5306..0a19a6dd9ca5 100644
--- a/ftp/R-cran-curl/Makefile
+++ b/ftp/R-cran-curl/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	curl
-DISTVERSION=	5.0.2
+DISTVERSION=	5.1.0
 CATEGORIES=	ftp
 DISTNAME=	${PORTNAME}_${PORTVERSION}
 
@@ -11,7 +11,18 @@ LICENSE=	MIT
 
 BUILD_DEPENDS=	${LOCALBASE}/include/curl/curl.h:ftp/curl
 LIB_DEPENDS=	libcurl.so:ftp/curl
+TEST_DEPENDS=	R-cran-spelling>0:textproc/R-cran-spelling \
+		R-cran-testthat>0:devel/R-cran-testthat \
+		R-cran-httpuv>0:www/R-cran-httpuv \
+		R-cran-knitr>0:print/R-cran-knitr \
+		R-cran-magrittr>0:devel/R-cran-magrittr \
+		R-cran-rmarkdown>0:textproc/R-cran-rmarkdown
 
 USES=		cran:auto-plist,compiles
 
+pre-test:
+	# R-cran-webutils package does not exist yet
+	@${LOCALBASE}/bin/Rscript -e 'install.packages("webutils", \
+		repos = "https://cloud.r-project.org")'
+
 .include <bsd.port.mk>
diff --git a/ftp/R-cran-curl/distinfo b/ftp/R-cran-curl/distinfo
index e7e82b3627e4..c487582e2ed6 100644
--- a/ftp/R-cran-curl/distinfo
+++ b/ftp/R-cran-curl/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1692499877
-SHA256 (curl_5.0.2.tar.gz) = 166b373a992eb7c880d71b2fabfc31cba6195f52f307056e8420ecc42c6d7c72
-SIZE (curl_5.0.2.tar.gz) = 714170
+TIMESTAMP = 1698822677
+SHA256 (curl_5.1.0.tar.gz) = 57218da84b85bd01ce7daa4bca3e271eda1bf688e0cdb211c397ccb272ecba97
+SIZE (curl_5.1.0.tar.gz) = 714157