git: 8358efc98fd4 - main - textproc/R-cran-litedown: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 07 Mar 2025 06:36:45 UTC
The branch main has been updated by uzsolt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8358efc98fd4b19fe519e1bfc4d2d0d3685fae6f
commit 8358efc98fd4b19fe519e1bfc4d2d0d3685fae6f
Author: Zsolt Udvari <uzsolt@FreeBSD.org>
AuthorDate: 2025-03-07 06:35:37 +0000
Commit: Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2025-03-07 06:36:24 +0000
textproc/R-cran-litedown: New port
Render R Markdown to Markdown (without using 'knitr'), and Markdown to
lightweight HTML or 'LaTeX' documents with the 'commonmark' package (instead of
'Pandoc'). Some missing Markdown features in 'commonmark' are also supported,
such as raw HTML or 'LaTeX' blocks, 'LaTeX' math, superscripts, subscripts,
footnotes, element attributes, and appendices, but not all 'Pandoc' Markdown
features are (or will be) supported. With additional JavaScript and CSS, you can
also create HTML slides and articles. This package can be viewed as a
trimmed-down version of R Markdown and 'knitr'. It does not aim at rich Markdown
features or a large variety of output formats (the primary formats are HTML and
'LaTeX'). Book and website projects of multiple input documents are also
supported.
---
textproc/Makefile | 1 +
textproc/R-cran-litedown/Makefile | 26 ++++++++++++++++++++++++++
textproc/R-cran-litedown/distinfo | 3 +++
textproc/R-cran-litedown/pkg-descr | 11 +++++++++++
4 files changed, 41 insertions(+)
diff --git a/textproc/Makefile b/textproc/Makefile
index fb6afd9fc48d..a580342d3798 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -16,6 +16,7 @@
SUBDIR += R-cran-htmlTable
SUBDIR += R-cran-htmltools
SUBDIR += R-cran-hunspell
+ SUBDIR += R-cran-litedown
SUBDIR += R-cran-markdown
SUBDIR += R-cran-openxlsx
SUBDIR += R-cran-pystr
diff --git a/textproc/R-cran-litedown/Makefile b/textproc/R-cran-litedown/Makefile
new file mode 100644
index 000000000000..dfc89bb5a098
--- /dev/null
+++ b/textproc/R-cran-litedown/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= litedown
+DISTVERSION= 0.6
+CATEGORIES= textproc
+DISTNAME= ${PORTNAME}_${PORTVERSION}
+
+MAINTAINER= uzsolt@FreeBSD.org
+COMMENT= Lightweight Version of R Markdown
+WWW= https://cran.r-project.org/package=litedown
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= R-cran-commonmark>=1.9.1:textproc/R-cran-commonmark \
+ R-cran-xfun>=0.51:misc/R-cran-xfun
+TEST_DEPENDS= R-cran-rbibutils>0:textproc/R-cran-rbibutils \
+ R-cran-rstudioapi>0:devel/R-cran-rstudioapi \
+ R-cran-tinytex>0:print/R-cran-tinytex
+
+USES= cran:auto-plist
+
+do-test:
+ @${FIND} ${WRKSRC} \( -name '*.o' -o -name '*.so' \) -delete
+ @cd ${WRKDIR} ; ${SETENV} ${MAKE_ENV} _R_CHECK_FORCE_SUGGESTS_=FALSE \
+ ${LOCALBASE}/bin/R CMD check --no-manual ${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/textproc/R-cran-litedown/distinfo b/textproc/R-cran-litedown/distinfo
new file mode 100644
index 000000000000..1f2718b31a25
--- /dev/null
+++ b/textproc/R-cran-litedown/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1741287148
+SHA256 (litedown_0.6.tar.gz) = 09b665ef39e30efd2fed7c78757e1760e42ada8e8f5d4f5d24f1920aea15ba59
+SIZE (litedown_0.6.tar.gz) = 106148
diff --git a/textproc/R-cran-litedown/pkg-descr b/textproc/R-cran-litedown/pkg-descr
new file mode 100644
index 000000000000..e8166a230c13
--- /dev/null
+++ b/textproc/R-cran-litedown/pkg-descr
@@ -0,0 +1,11 @@
+Render R Markdown to Markdown (without using 'knitr'), and Markdown to
+lightweight HTML or 'LaTeX' documents with the 'commonmark' package (instead of
+'Pandoc'). Some missing Markdown features in 'commonmark' are also supported,
+such as raw HTML or 'LaTeX' blocks, 'LaTeX' math, superscripts, subscripts,
+footnotes, element attributes, and appendices, but not all 'Pandoc' Markdown
+features are (or will be) supported. With additional JavaScript and CSS, you can
+also create HTML slides and articles. This package can be viewed as a
+trimmed-down version of R Markdown and 'knitr'. It does not aim at rich Markdown
+features or a large variety of output formats (the primary formats are HTML and
+'LaTeX'). Book and website projects of multiple input documents are also
+supported.