From ece8a3e673e48c668e9cad16ac0d3c9a91eb3abd Mon Sep 17 00:00:00 2001 From: Zsolt Udvari Date: Fri, 21 Feb 2025 14:18:22 +0100 Subject: [PATCH] www/R-cran-webutils: New port Parses http request data in application/json, multipart/form-data, or application/x-www-form-urlencoded format. Includes example of hosting and parsing html form data in R using either 'httpuv' or 'Rhttpd'. --- www/Makefile | 1 + www/R-cran-webutils/Makefile | 22 ++++++++++++++++++++++ www/R-cran-webutils/distinfo | 3 +++ www/R-cran-webutils/pkg-descr | 3 +++ 4 files changed, 29 insertions(+) create mode 100644 www/R-cran-webutils/Makefile create mode 100644 www/R-cran-webutils/distinfo create mode 100644 www/R-cran-webutils/pkg-descr diff --git a/www/Makefile b/www/Makefile index 01c040931d01..bf70b2f86daa 100644 --- a/www/Makefile +++ b/www/Makefile @@ -21,6 +21,7 @@ SUBDIR += R-cran-shiny SUBDIR += R-cran-shinyjs SUBDIR += R-cran-webshot + SUBDIR += R-cran-webutils SUBDIR += UniversalFeedCreator SUBDIR += adguardhome SUBDIR += adjuster diff --git a/www/R-cran-webutils/Makefile b/www/R-cran-webutils/Makefile new file mode 100644 index 000000000000..e07fb9ffaf86 --- /dev/null +++ b/www/R-cran-webutils/Makefile @@ -0,0 +1,22 @@ +PORTNAME= webutils +DISTVERSION= 1.2.2 +CATEGORIES= www +DISTNAME= ${PORTNAME}_${DISTVERSION} + +MAINTAINER= uzsolt@FreeBSD.org +COMMENT= Parses http request data +WWW= https://cran.r-project.org/package=webutils + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +CRAN_DEPENDS= R-cran-curl>=2.5:ftp/R-cran-curl \ + R-cran-jsonlite>0:converters/R-cran-jsonlite +BUILD_DEPENDS= ${CRAN_DEPENDS} +RUN_DEPENDS= ${CRAN_DEPENDS} +TEST_DEPENDS= R-cran-httpuv>0:www/R-cran-httpuv \ + R-cran-testthat>0:devel/R-cran-testthat + +USES= cran:auto-plist,compiles + +.include diff --git a/www/R-cran-webutils/distinfo b/www/R-cran-webutils/distinfo new file mode 100644 index 000000000000..cc0856044577 --- /dev/null +++ b/www/R-cran-webutils/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1740143270 +SHA256 (webutils_1.2.2.tar.gz) = a534a225bfd08dc6ad61480f177eda97fadc3fc8fd66f23ad6cb327dcf68661e +SIZE (webutils_1.2.2.tar.gz) = 23489 diff --git a/www/R-cran-webutils/pkg-descr b/www/R-cran-webutils/pkg-descr new file mode 100644 index 000000000000..6e0f29fb56cd --- /dev/null +++ b/www/R-cran-webutils/pkg-descr @@ -0,0 +1,3 @@ +Parses http request data in application/json, multipart/form-data, or +application/x-www-form-urlencoded format. Includes example of hosting and +parsing html form data in R using either 'httpuv' or 'Rhttpd'.