git: 33bc010d4315 - main - devel/R-cran-styler: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Sep 2026 04:25:21 UTC
The branch main has been updated by uzsolt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=33bc010d4315766fd72fda5a83ef7fb9d2adbe40
commit 33bc010d4315766fd72fda5a83ef7fb9d2adbe40
Author: Zsolt Udvari <uzsolt@FreeBSD.org>
AuthorDate: 2026-09-07 04:23:47 +0000
Commit: Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2026-09-07 04:25:05 +0000
devel/R-cran-styler: New port
Pretty-prints R code without changing the user's formatting intent.
---
devel/Makefile | 1 +
devel/R-cran-styler/Makefile | 39 +++++++++++++++++++++++++++++++++++++++
devel/R-cran-styler/distinfo | 3 +++
devel/R-cran-styler/pkg-descr | 4 ++++
4 files changed, 47 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 4927f43e0c09..def8be2fff75 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -143,6 +143,7 @@
SUBDIR += R-cran-sfsmisc
SUBDIR += R-cran-sourcetools
SUBDIR += R-cran-sparsevctrs
+ SUBDIR += R-cran-styler
SUBDIR += R-cran-sys
SUBDIR += R-cran-systemfonts
SUBDIR += R-cran-testit
diff --git a/devel/R-cran-styler/Makefile b/devel/R-cran-styler/Makefile
new file mode 100644
index 000000000000..abc634e08280
--- /dev/null
+++ b/devel/R-cran-styler/Makefile
@@ -0,0 +1,39 @@
+PORTNAME= styler
+DISTVERSION= 1.11.0
+CATEGORIES= devel
+DISTNAME= ${PORTNAME}_${DISTVERSION}
+
+MAINTAINER= uzsolt@FreeBSD.org
+COMMENT= Non-Invasive Pretty Printing of R Code
+WWW= https://cran.r-project.org/package=styler
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= R-cran-cli>=3.1.1:devel/R-cran-cli \
+ R-cran-magrittr>=2.0.0:devel/R-cran-magrittr \
+ R-cran-purrr>=1.0.2:devel/R-cran-purrr \
+ R-cran-R.cache>=0.15.0:devel/R-cran-R.cache \
+ R-cran-rlang>=1.0.0:devel/R-cran-rlang \
+ R-cran-rprojroot>=1.1:devel/R-cran-rprojroot \
+ R-cran-vctrs>=0.4.1:devel/R-cran-vctrs \
+ R-cran-withr>=2.3.0:devel/R-cran-withr
+TEST_DEPENDS= R-cran-digest>0:security/R-cran-digest \
+ R-cran-knitr>0:print/R-cran-knitr \
+ R-cran-prettycode>0:devel/R-cran-prettycode \
+ R-cran-rmarkdown>0:textproc/R-cran-rmarkdown \
+ R-cran-roxygen2>0:devel/R-cran-roxygen2 \
+ R-cran-rstudioapi>=0.7:devel/R-cran-rstudioapi \
+ R-cran-testthat>=3.2.1:devel/R-cran-testthat \
+ R-cran-tibble>=1.4.2:devel/R-cran-tibble
+
+USES= cran:auto-plist shebangfix
+
+SHEBANG_FILES= tests/dev/generate_roxygen_tests.R
+SHEBANG_LANG= Rscript
+Rscript_OLD_CMD= /usr/bin/Rscript
+Rscript_CMD= ${LOCALBASE}/bin/Rscript
+
+TESTING_UNSAFE= yes
+
+.include <bsd.port.mk>
diff --git a/devel/R-cran-styler/distinfo b/devel/R-cran-styler/distinfo
new file mode 100644
index 000000000000..822f3e1ee41a
--- /dev/null
+++ b/devel/R-cran-styler/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1788718087
+SHA256 (styler_1.11.0.tar.gz) = f08760782b2ead047dd8f166a7cd5e01ace8d713087712bf61d193f610fbfe18
+SIZE (styler_1.11.0.tar.gz) = 431739
diff --git a/devel/R-cran-styler/pkg-descr b/devel/R-cran-styler/pkg-descr
new file mode 100644
index 000000000000..46a70249f1a1
--- /dev/null
+++ b/devel/R-cran-styler/pkg-descr
@@ -0,0 +1,4 @@
+Pretty-prints R code without changing the user's formatting intent.
+
+styler allows you to format .qmd, .R, .Rmd, .Rmarkdown, .Rnw, and/or .Rprofile
+files, R packages, or entire R source trees according to a style guide.