From 5adebf729b238d640da25755d18da7302864b572 Mon Sep 17 00:00:00 2001 From: Ryan Steinmetz Date: Fri, 30 Aug 2019 14:31:27 +0000 Subject: [PATCH] New port: archivers/p5-IO-Compress-Brotli: IO::Compress::Brotli is a module that compresses/decompresses Brotli buffers and streams. WWW: https://metacpan.org/release/IO-Compress-Brotli --- archivers/Makefile | 1 + archivers/p5-IO-Compress-Brotli/Makefile | 21 +++++++++++++++++++ archivers/p5-IO-Compress-Brotli/distinfo | 3 +++ .../files/patch-bin_bro-perl | 11 ++++++++++ archivers/p5-IO-Compress-Brotli/pkg-descr | 4 ++++ archivers/p5-IO-Compress-Brotli/pkg-plist | 6 ++++++ 6 files changed, 46 insertions(+) create mode 100644 archivers/p5-IO-Compress-Brotli/Makefile create mode 100644 archivers/p5-IO-Compress-Brotli/distinfo create mode 100644 archivers/p5-IO-Compress-Brotli/files/patch-bin_bro-perl create mode 100644 archivers/p5-IO-Compress-Brotli/pkg-descr create mode 100644 archivers/p5-IO-Compress-Brotli/pkg-plist diff --git a/archivers/Makefile b/archivers/Makefile index 0cbaa41169fc..fa3ab0b91015 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -116,6 +116,7 @@ SUBDIR += p5-Compress-Snappy SUBDIR += p5-Gzip-Faster SUBDIR += p5-IO-Compress + SUBDIR += p5-IO-Compress-Brotli SUBDIR += p5-IO-Compress-Lzf SUBDIR += p5-IO-Compress-Lzma SUBDIR += p5-IO-Compress-Lzop diff --git a/archivers/p5-IO-Compress-Brotli/Makefile b/archivers/p5-IO-Compress-Brotli/Makefile new file mode 100644 index 000000000000..ca86764a7819 --- /dev/null +++ b/archivers/p5-IO-Compress-Brotli/Makefile @@ -0,0 +1,21 @@ +# Created by: Ryan Steinmetz +# $FreeBSD$ + +PORTNAME= IO-Compress-Brotli +PORTVERSION= 0.004001 +CATEGORIES= archivers perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= perl@FreeBSD.org +COMMENT= Perl implementation of Brotli + +LICENSE= MIT + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-File-Slurper>0:devel/p5-File-Slurper + +USES= gmake perl5 +USE_PERL5= configure + +.include diff --git a/archivers/p5-IO-Compress-Brotli/distinfo b/archivers/p5-IO-Compress-Brotli/distinfo new file mode 100644 index 000000000000..6413b58bd64a --- /dev/null +++ b/archivers/p5-IO-Compress-Brotli/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1567172299 +SHA256 (IO-Compress-Brotli-0.004001.tar.gz) = 8ba5c0167e966f487bde159c18bc1b3486528013b3235d39f2fcb375ca4bf410 +SIZE (IO-Compress-Brotli-0.004001.tar.gz) = 7674244 diff --git a/archivers/p5-IO-Compress-Brotli/files/patch-bin_bro-perl b/archivers/p5-IO-Compress-Brotli/files/patch-bin_bro-perl new file mode 100644 index 000000000000..250b9887547d --- /dev/null +++ b/archivers/p5-IO-Compress-Brotli/files/patch-bin_bro-perl @@ -0,0 +1,11 @@ +--- bin/bro-perl.orig 2019-08-30 14:23:52 UTC ++++ bin/bro-perl +@@ -21,7 +21,7 @@ GetOptions( + 'o|output=s' => \(my $OUTPUT), + 'q|quality=i' => \(my $QUALITY = 11), + 'r|repeat=i' => \(my $REPEAT = 1), +- 's|stream=i' => \(my $STREAM), ++ 's|stream=i' => \(my $STREAM = 8), + 'v|verbose' => \(my $VERBOSE), + 'w|window=i' => \(my $WINDOW = 22), + ); diff --git a/archivers/p5-IO-Compress-Brotli/pkg-descr b/archivers/p5-IO-Compress-Brotli/pkg-descr new file mode 100644 index 000000000000..77e5ad6f9fef --- /dev/null +++ b/archivers/p5-IO-Compress-Brotli/pkg-descr @@ -0,0 +1,4 @@ +IO::Compress::Brotli is a module that compresses/decompresses Brotli buffers +and streams. + +WWW: https://metacpan.org/release/IO-Compress-Brotli diff --git a/archivers/p5-IO-Compress-Brotli/pkg-plist b/archivers/p5-IO-Compress-Brotli/pkg-plist new file mode 100644 index 000000000000..69d9cd735fba --- /dev/null +++ b/archivers/p5-IO-Compress-Brotli/pkg-plist @@ -0,0 +1,6 @@ +bin/bro-perl +%%SITE_ARCH%%/IO/Compress/Brotli.pm +%%SITE_ARCH%%/IO/Uncompress/Brotli.pm +%%SITE_ARCH%%/auto/IO/Compress/Brotli/Brotli.so +%%PERL5_MAN3%%/IO::Compress::Brotli.3.gz +%%PERL5_MAN3%%/IO::Uncompress::Brotli.3.gz