git: bf1937512f1f - main - www/R-cran-httr2: new port: tools for HTTP requests

From: Zsolt Udvari <uzsolt_at_FreeBSD.org>
Date: Tue, 13 Aug 2024 06:31:47 UTC
The branch main has been updated by uzsolt:

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

commit bf1937512f1fa733f9264caa83aca733db78b9a3
Author:     Zsolt Udvari <uzsolt@FreeBSD.org>
AuthorDate: 2024-08-13 06:30:00 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2024-08-13 06:30:00 +0000

    www/R-cran-httr2: new port: tools for HTTP requests
    
    Tools for creating and modifying HTTP requests, then performing them and
    processing the results. 'httr2' is a modern re-imagining of 'httr' that uses a
    pipe-based interface and solves more of the problems that API wrapping packages
    face.
    
    Needed for update devel/R-cran-devtools.
---
 www/Makefile               |  1 +
 www/R-cran-httr2/Makefile  | 27 +++++++++++++++++++++++++++
 www/R-cran-httr2/distinfo  |  3 +++
 www/R-cran-httr2/pkg-descr |  4 ++++
 4 files changed, 35 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 388394f52e83..e0fe7f048375 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -9,6 +9,7 @@
     SUBDIR += R-cran-htmlwidgets
     SUBDIR += R-cran-httpuv
     SUBDIR += R-cran-httr
+    SUBDIR += R-cran-httr2
     SUBDIR += R-cran-jquerylib
     SUBDIR += R-cran-rvest
     SUBDIR += R-cran-scrapeR
diff --git a/www/R-cran-httr2/Makefile b/www/R-cran-httr2/Makefile
new file mode 100644
index 000000000000..922bfae7e3b1
--- /dev/null
+++ b/www/R-cran-httr2/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	httr2
+DISTVERSION=	1.0.2
+CATEGORIES=	www
+DISTNAME=	${PORTNAME}_${PORTVERSION}
+
+MAINTAINER=	uzsolt@FreeBSD.org
+COMMENT=	Tools for Working HTTP requests
+WWW=		https://cran.r-project.org/web/packages/httr2/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	R-cran-cli>0:devel/R-cran-cli \
+		R-cran-curl>=5.0.2:ftp/R-cran-curl \
+		R-cran-glue>0:devel/R-cran-glue \
+		R-cran-lifecycle>0:devel/R-cran-lifecycle \
+		R-cran-magrittr>0:devel/R-cran-magrittr \
+		R-cran-openssl>0:security/R-cran-openssl \
+		R-cran-R6>0:devel/R-cran-R6 \
+		R-cran-rappdirs>0:devel/R-cran-rappdirs \
+		R-cran-rlang>0:devel/R-cran-rlang \
+		R-cran-vctrs>0:devel/R-cran-vctrs \
+		R-cran-withr>0:devel/R-cran-withr
+
+USES=		cran:auto-plist
+
+.include <bsd.port.mk>
diff --git a/www/R-cran-httr2/distinfo b/www/R-cran-httr2/distinfo
new file mode 100644
index 000000000000..290e90ef4490
--- /dev/null
+++ b/www/R-cran-httr2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1723530050
+SHA256 (httr2_1.0.2.tar.gz) = d1f8e37f74a59f4e1b3b886e5f453336ba14251e500acdccc8f4f7d2b9300048
+SIZE (httr2_1.0.2.tar.gz) = 215147
diff --git a/www/R-cran-httr2/pkg-descr b/www/R-cran-httr2/pkg-descr
new file mode 100644
index 000000000000..f1bc1ad5d270
--- /dev/null
+++ b/www/R-cran-httr2/pkg-descr
@@ -0,0 +1,4 @@
+Tools for creating and modifying HTTP requests, then performing them and
+processing the results. 'httr2' is a modern re-imagining of 'httr' that uses a
+pipe-based interface and solves more of the problems that API wrapping packages
+face.