public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
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: Mon, 13 Nov 2023 04:53:33 +0000 (UTC)	[thread overview]
Message-ID: <1699851114.3fc84e7cb8eb0f4d7f22127b96f38241893a2c2e.sam@gentoo> (raw)

commit:     3fc84e7cb8eb0f4d7f22127b96f38241893a2c2e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 13 04:51:54 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Nov 13 04:51:54 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fc84e7c

dev-perl/IO-Compress-Brotli: fix unbundle patch for 0.17.0

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../IO-Compress-Brotli-0.17.0.ebuild               |  2 +-
 .../files/IO-Compress-Brotli-0.017-unbundle.patch  | 55 ++++++++++++++++++++++
 2 files changed, 56 insertions(+), 1 deletion(-)

diff --git a/dev-perl/IO-Compress-Brotli/IO-Compress-Brotli-0.17.0.ebuild b/dev-perl/IO-Compress-Brotli/IO-Compress-Brotli-0.17.0.ebuild
index 69dee213f563..11a2b12873d8 100644
--- a/dev-perl/IO-Compress-Brotli/IO-Compress-Brotli-0.17.0.ebuild
+++ b/dev-perl/IO-Compress-Brotli/IO-Compress-Brotli-0.17.0.ebuild
@@ -25,5 +25,5 @@ BDEPEND="${RDEPEND}
 "
 
 PATCHES=(
-	"${FILESDIR}"/${PN}-0.010-unbundle.patch
+	"${FILESDIR}"/${PN}-0.017-unbundle.patch
 )

diff --git a/dev-perl/IO-Compress-Brotli/files/IO-Compress-Brotli-0.017-unbundle.patch b/dev-perl/IO-Compress-Brotli/files/IO-Compress-Brotli-0.017-unbundle.patch
new file mode 100644
index 000000000000..d07e691840a7
--- /dev/null
+++ b/dev-perl/IO-Compress-Brotli/files/IO-Compress-Brotli-0.017-unbundle.patch
@@ -0,0 +1,55 @@
+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
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 57063cf..809001a 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -1,6 +1,5 @@
+ use 5.014000;
+ use ExtUtils::MakeMaker;
+-use Alien::cmake3;
+ use File::Spec::Functions qw/catfile/;
+ use Config;
+ 
+@@ -18,6 +17,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',
+@@ -32,6 +37,7 @@ WriteMakefile(
+ 		'Getopt::Long'  => '0',
+ 		'Time::HiRes'   => '0',
+ 	},
++  ( $bundled )  ? (
+ 	CONFIGURE_REQUIRES   => {
+ 		'Alien::cmake3' => '0',
+ 	},
+@@ -41,6 +47,9 @@ WriteMakefile(
+ 	INC              => '-Ibrotli/c/include',
+ 	MYEXTLIB         => $myextlib,
+ 	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      => {
+@@ -50,6 +59,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;
+ '


             reply	other threads:[~2023-11-13  4:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-13  4:53 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-22  3:55 [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=1699851114.3fc84e7cb8eb0f4d7f22127b96f38241893a2c2e.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