aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZsolt Udvari <uzsolt@FreeBSD.org>2025-02-21 13:18:22 +0000
committerZsolt Udvari <uzsolt@FreeBSD.org>2025-02-21 13:18:51 +0000
commitece8a3e673e48c668e9cad16ac0d3c9a91eb3abd (patch)
treeb21b52137583847be134c355ecba05c8d17ee8aa
parentd758b1caa19eb6a43d8efe332d5ea0da8e9dbd96 (diff)
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'.
-rw-r--r--www/Makefile1
-rw-r--r--www/R-cran-webutils/Makefile22
-rw-r--r--www/R-cran-webutils/distinfo3
-rw-r--r--www/R-cran-webutils/pkg-descr3
4 files changed, 29 insertions, 0 deletions
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 <bsd.port.mk>
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'.