From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/IO-Compress-Brotli/files/, dev-perl/IO-Compress-Brotli/
Date: Wed, 22 Jan 2025 03:55:51 +0000 (UTC) [thread overview]
Message-ID: <1737517234.d1fea401b22f80441ac25457753db42ed8d64839.sam@gentoo> (raw)
commit: d1fea401b22f80441ac25457753db42ed8d64839
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 22 03:40:34 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 22 03:40:34 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1fea401
dev-perl/IO-Compress-Brotli: add 0.19.0
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../IO-Compress-Brotli-0.19.0.ebuild | 30 ++++++++++++
dev-perl/IO-Compress-Brotli/Manifest | 1 +
.../files/IO-Compress-Brotli-0.019-unbundle.patch | 53 ++++++++++++++++++++++
3 files changed, 84 insertions(+)
diff --git a/dev-perl/IO-Compress-Brotli/IO-Compress-Brotli-0.19.0.ebuild b/dev-perl/IO-Compress-Brotli/IO-Compress-Brotli-0.19.0.ebuild
new file mode 100644
index 000000000000..94f4308b2f9a
--- /dev/null
+++ b/dev-perl/IO-Compress-Brotli/IO-Compress-Brotli-0.19.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 2020-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_AUTHOR=TIMLEGGE
+DIST_VERSION=0.019
+inherit perl-module
+
+DESCRIPTION="Read/write Brotli buffers/streams"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ app-arch/brotli:=
+ dev-perl/File-Slurper
+ virtual/perl-Getopt-Long
+ virtual/perl-Time-HiRes
+"
+DEPEND="
+ app-arch/brotli:=
+"
+BDEPEND="
+ ${RDEPEND}
+ virtual/perl-ExtUtils-MakeMaker
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.019-unbundle.patch
+)
diff --git a/dev-perl/IO-Compress-Brotli/Manifest b/dev-perl/IO-Compress-Brotli/Manifest
index 934b44f1a5b0..09327f75da4c 100644
--- a/dev-perl/IO-Compress-Brotli/Manifest
+++ b/dev-perl/IO-Compress-Brotli/Manifest
@@ -1 +1,2 @@
DIST IO-Compress-Brotli-0.017.tar.gz 7748620 BLAKE2B 32a5d5653dc60a3cbd49fa9ad2daa3d657b232ee469fb3c5dfe2d675290079ea9b89c3164fd0dd03849257b9d786de71a19404574999f96c3adbe19b5e9f6f71 SHA512 a20c6a569fef2820dc089175de90a7e889e6f4093552ab9579c2520f51c87863b55c796b3b1bd12839d173268d05625caef5f9f95eef977cfb7c0280f82bbce0
+DIST IO-Compress-Brotli-0.019.tar.gz 7814536 BLAKE2B 5e1df4da84c464c3bb1c595bf9f63660a274b99ff06dbe2dc5b490d5ec4410f08629b62c60b7c85fb2120ed2902c0610fd0085a4360883f3368d5b784bfd1e7e SHA512 d81fb94dfbdae24af3985349ccccfac9d5a863452b173542f7718e3a1ffcf18819b4456e2e0c305afabe0eeb336c0ad648d4d3f0fdb1f6229e82e0fad4751628
diff --git a/dev-perl/IO-Compress-Brotli/files/IO-Compress-Brotli-0.019-unbundle.patch b/dev-perl/IO-Compress-Brotli/files/IO-Compress-Brotli-0.019-unbundle.patch
new file mode 100644
index 000000000000..7ec6c4549f42
--- /dev/null
+++ b/dev-perl/IO-Compress-Brotli/files/IO-Compress-Brotli-0.019-unbundle.patch
@@ -0,0 +1,53 @@
+From 59541041bc3b39e8539fd12a8e584a63040ad7a5 Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentnl@gentoo.org>
+Date: Tue, 4 Feb 2020 23:17:49 +1300
+Subject: Disable using bundled brotli
+
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -1,6 +1,5 @@
+ use 5.008000;
+ use ExtUtils::MakeMaker;
+-use Alien::cmake3;
+ use File::Spec::Functions qw/catfile/;
+ use Config;
+
+@@ -19,6 +18,12 @@ if ($Config{myuname} =~ /strawberry/i || $Config{osname} =~ /MSWin/i ) {
+ }
+ }
+
++my $bundled = $ENV{IO_COMPRESS_BROTLI_BUNDLED} || 0;
++
++# Avoid unnecessary dependency
++use if $bundled, 'Alien::cmake3';
++
++
+ WriteMakefile(
+ NAME => 'IO::Compress::Brotli',
+ VERSION_FROM => 'lib/IO/Compress/Brotli.pm',
+@@ -33,6 +38,7 @@ WriteMakefile(
+ 'Getopt::Long' => '0',
+ 'Time::HiRes' => '0',
+ },
++ ( $bundled ) ? (
+ CONFIGURE_REQUIRES => {
+ 'Alien::cmake3' => '0',
+ },
+@@ -43,6 +49,9 @@ WriteMakefile(
+ MYEXTLIB => $myextlib,
+ EXTRALIBS => ' brotli/libbrotlienc$(LIB_EXT) brotli/libbrotlidec$(LIB_EXT) brotli/libbrotlicommon$(LIB_EXT) ',
+ clean => { FILES => "brotli/Makefile $myextlib brotli/CMakeCache.txt brotli/CMakeFiles/* brotli/CTestTestfile.cmake brotli/DartConfiguration.tcl brotli/brotli* brotli/cmake_install.cmake brotli/libbrotlicommon.pc brotli/libbrotlidec.pc brotli/libbrotlienc.pc" },
++ ) : (
++ LIBS => ['-lbrotlienc -lbrotlidec'],
++ ),
+ META_ADD => {
+ dynamic_config => 0,
+ resources => {
+@@ -52,6 +61,7 @@ WriteMakefile(
+ );
+
+ sub MY::postamble {
++ return '' unless $bundled;
+ my @dirs = Alien::cmake3->bin_dir;
+ my $cmake = defined $dirs[0] ? catfile($dirs[0] , Alien::cmake3->exe) : Alien::cmake3->exe;
+ '
next reply other threads:[~2025-01-22 3:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-22 3:55 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-11-13 4:53 [gentoo-commits] repo/gentoo:master commit in: dev-perl/IO-Compress-Brotli/files/, dev-perl/IO-Compress-Brotli/ Sam James
2020-02-04 10:43 Kent Fredric
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1737517234.d1fea401b22f80441ac25457753db42ed8d64839.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox