git: bcf83e1c6798 - main - archivers/R-cran-brotli: new port

From: Zsolt Udvari <uzsolt_at_FreeBSD.org>
Date: Mon, 03 Feb 2025 15:11:59 UTC
The branch main has been updated by uzsolt:

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

commit bcf83e1c6798dc03419a096b40c66825e9065712
Author:     Zsolt Udvari <uzsolt@FreeBSD.org>
AuthorDate: 2025-02-03 15:10:22 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2025-02-03 15:11:38 +0000

    archivers/R-cran-brotli: new port
    
    A lossless compressed data format that uses a combination of the LZ77
    algorithm and Huffman coding.
    Brotli is similar in speed to deflate (gzip) but offers more dense
    compression.
---
 archivers/Makefile                |  1 +
 archivers/R-cran-brotli/Makefile  | 25 +++++++++++++++++++++++++
 archivers/R-cran-brotli/distinfo  |  3 +++
 archivers/R-cran-brotli/pkg-descr |  3 +++
 4 files changed, 32 insertions(+)

diff --git a/archivers/Makefile b/archivers/Makefile
index 85e17183482a..c15294b46a1d 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -2,6 +2,7 @@
 
     SUBDIR += 7-zip
     SUBDIR += 9e
+    SUBDIR += R-cran-brotli
     SUBDIR += R-cran-zip
     SUBDIR += advancecomp
     SUBDIR += amigadepacker
diff --git a/archivers/R-cran-brotli/Makefile b/archivers/R-cran-brotli/Makefile
new file mode 100644
index 000000000000..5f539e9680cc
--- /dev/null
+++ b/archivers/R-cran-brotli/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	brotli
+DISTVERSION=	1.3.1
+CATEGORIES=	archivers
+DISTNAME=	${PORTNAME}_${DISTVERSION}
+
+MAINTAINER=	uzsolt@FreeBSD.org
+COMMENT=	Compression Format Optimized for the Web
+WWW=		https://CRAN.R-project.org/package=brotli
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+TEST_DEPENDS=	R-cran-ggplot2>0:graphics/R-cran-ggplot2 \
+		R-cran-knitr>0:print/R-cran-knitr \
+		R-cran-microbenchmark>0:devel/R-cran-microbenchmark \
+		R-cran-rmarkdown>0:textproc/R-cran-rmarkdown \
+		R-cran-spelling>0:textproc/R-cran-spelling
+TESTING_UNSAFE=	R-cran-R.rsp is required
+
+USES=		cran:auto-plist,compiles
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/R/library/brotli/bin/bro
+
+.include <bsd.port.mk>
diff --git a/archivers/R-cran-brotli/distinfo b/archivers/R-cran-brotli/distinfo
new file mode 100644
index 000000000000..1f269422b13a
--- /dev/null
+++ b/archivers/R-cran-brotli/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1737746476
+SHA256 (brotli_1.3.1.tar.gz) = 8776c3fce9fdd72ead4ea166135d699b0f348eb44c0c30895f515a2f0e711946
+SIZE (brotli_1.3.1.tar.gz) = 1055599
diff --git a/archivers/R-cran-brotli/pkg-descr b/archivers/R-cran-brotli/pkg-descr
new file mode 100644
index 000000000000..03227d69c1fe
--- /dev/null
+++ b/archivers/R-cran-brotli/pkg-descr
@@ -0,0 +1,3 @@
+A lossless compressed data format that uses a combination of the LZ77 algorithm
+and Huffman coding. Brotli is similar in speed to deflate (gzip) but offers more
+dense compression.