dev-perl/IO-Compress-Brotli: Drop old versions

Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner
2024-03-14 12:43:28 -04:00
parent 49fc89fd3d
commit dfcca015ad
5 changed files with 0 additions and 163 deletions

View File

@@ -1,29 +0,0 @@
# Copyright 2020-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DIST_AUTHOR=TIMLEGGE
DIST_VERSION=0.010
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.010-unbundle.patch
)

View File

@@ -1,28 +0,0 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DIST_AUTHOR=MGV
DIST_VERSION=0.004001
inherit perl-module
DESCRIPTION="Read/write Brotli buffers/streams"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-perl/File-Slurper
virtual/perl-Getopt-Long
virtual/perl-Time-HiRes
app-arch/brotli:=
"
DEPEND="
app-arch/brotli:=
"
BDEPEND="${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
"
PATCHES=(
"${FILESDIR}/${PN}-${DIST_VERSION}-unbundle.patch"
)

View File

@@ -1,3 +1 @@
DIST IO-Compress-Brotli-0.004001.tar.gz 7674244 BLAKE2B b3c4d6a1101429fc47f345f0ba119e5196873a0e5d368b31d02f76ca2a0ac269ed4c9c82972de527052b55e73a2a4724ebf4f644c23c383304082413b512dfad SHA512 7cc198ecef15c912d8b62e6851935c433159e7f3680f2034949c032d23827f5a5720dd02b77b89b60d43b0a2a7df059c9e76c8f4e44993c28630624f0e17a377
DIST IO-Compress-Brotli-0.010.tar.gz 7746600 BLAKE2B 121736c8fed73188d1e717296265ab1d716ab9b73b1540424f1b03533401b8a5843e172a138c4c63e3c82b5dfd5b6a5e6eb10ef6adb99b3548ddb860a3b74580 SHA512 8536c15c1e808f1785c2361b87277b5090c563d8c4111d9ca9358266610a18f7512438dcef9eacb2ef5c8bf0cbd737aacd86f196f6ad674e4d68342d5fc4d184
DIST IO-Compress-Brotli-0.017.tar.gz 7748620 BLAKE2B 32a5d5653dc60a3cbd49fa9ad2daa3d657b232ee469fb3c5dfe2d675290079ea9b89c3164fd0dd03849257b9d786de71a19404574999f96c3adbe19b5e9f6f71 SHA512 a20c6a569fef2820dc089175de90a7e889e6f4093552ab9579c2520f51c87863b55c796b3b1bd12839d173268d05625caef5f9f95eef977cfb7c0280f82bbce0

View File

@@ -1,49 +0,0 @@
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
---
Makefile.PL | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Makefile.PL b/Makefile.PL
index 0c59c05..b10234d 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,6 +1,8 @@
use 5.014000;
use ExtUtils::MakeMaker;
+my $bundled = $ENV{IO_COMPRESS_BROTLI_BUNDLED} || 0;
+
WriteMakefile(
NAME => 'IO::Compress::Brotli',
VERSION_FROM => 'lib/IO/Compress/Brotli.pm',
@@ -16,9 +18,13 @@ WriteMakefile(
'Time::HiRes' => '0',
},
BUILD_REQUIRES => {},
+ ( $bundled ) ? (
INC => '-Ibrotli/c/include',
MYEXTLIB => 'brotli/libbrotli$(LIB_EXT)',
clean => { FILES => 'brotli/libbrotli$(LIB_EXT)' },
+ ) : (
+ LIBS => ['-lbrotlienc -lbrotlidec'],
+ ),
META_ADD => {
dynamic_config => 0,
resources => {
@@ -27,7 +33,9 @@ WriteMakefile(
}
);
+
sub MY::postamble {
+ return '' unless $bundled;
'
$(MYEXTLIB): brotli/Makefile
cd brotli && CFLAGS=-fPIC `which gmake || echo $(MAKE)` lib
--
2.25.0

View File

@@ -1,55 +0,0 @@
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 3c92f12..00ff4e3 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;
@@ -9,6 +8,12 @@ if ($Config{myuname} =~ /strawberry/i) {
$cmake_options = ($Config{cc} =~ /gcc/i) ? ' -G "MinGW Makefiles" ' : '';
}
+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',
@@ -23,6 +28,7 @@ WriteMakefile(
'Getopt::Long' => '0',
'Time::HiRes' => '0',
},
+ ( $bundled ) ? (
CONFIGURE_REQUIRES => {
'Alien::cmake3' => '0',
},
@@ -32,6 +38,9 @@ WriteMakefile(
INC => '-Ibrotli/c/include',
MYEXTLIB => 'brotli/libbrotlienc$(LIB_EXT) brotli/libbrotlidec$(LIB_EXT) brotli/libbrotlicommon$(LIB_EXT)',
clean => { FILES => 'brotli/Makefile brotli/libbrotlienc$(LIB_EXT) brotli/libbrotlidec$(LIB_EXT) brotli/libbrotlicommon$(LIB_EXT) 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 => {
@@ -41,6 +50,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;
'