git: 101216828871 - main - archivers/p5-IO-Compress-Brotli: Update to 0.007
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 01 Nov 2023 02:19:06 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=101216828871edec1d37e139464f781d4d9e5d2e commit 101216828871edec1d37e139464f781d4d9e5d2e Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-11-01 01:53:26 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-11-01 02:08:58 +0000 archivers/p5-IO-Compress-Brotli: Update to 0.007 - Use brotli from ports tree - Strip shared library Changes: https://metacpan.org/dist/IO-Compress-Brotli/changes --- archivers/p5-IO-Compress-Brotli/Makefile | 9 ++++-- archivers/p5-IO-Compress-Brotli/distinfo | 6 ++-- .../p5-IO-Compress-Brotli/files/patch-Makefile.PL | 37 ++++++++++++++++++++++ 3 files changed, 47 insertions(+), 5 deletions(-) diff --git a/archivers/p5-IO-Compress-Brotli/Makefile b/archivers/p5-IO-Compress-Brotli/Makefile index 9ed5f604561e..8bf5c710b14c 100644 --- a/archivers/p5-IO-Compress-Brotli/Makefile +++ b/archivers/p5-IO-Compress-Brotli/Makefile @@ -1,8 +1,9 @@ PORTNAME= IO-Compress-Brotli -PORTVERSION= 0.004001 +PORTVERSION= 0.007000 CATEGORIES= archivers perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- +DISTNAME= IO-Compress-Brotli-${PORTVERSION:C|000$||} MAINTAINER= perl@FreeBSD.org COMMENT= Perl implementation of Brotli @@ -11,9 +12,13 @@ WWW= https://metacpan.org/release/IO-Compress-Brotli LICENSE= MIT BUILD_DEPENDS= ${RUN_DEPENDS} +LIB_DEPENDS= libbrotlicommon.so:archivers/brotli RUN_DEPENDS= p5-File-Slurper>0:devel/p5-File-Slurper -USES= gmake perl5 +USES= gmake localbase:ldflags perl5 USE_PERL5= configure +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/IO/Compress/Brotli/Brotli.so + .include <bsd.port.mk> diff --git a/archivers/p5-IO-Compress-Brotli/distinfo b/archivers/p5-IO-Compress-Brotli/distinfo index 6413b58bd64a..23d8c393106f 100644 --- a/archivers/p5-IO-Compress-Brotli/distinfo +++ b/archivers/p5-IO-Compress-Brotli/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1567172299 -SHA256 (IO-Compress-Brotli-0.004001.tar.gz) = 8ba5c0167e966f487bde159c18bc1b3486528013b3235d39f2fcb375ca4bf410 -SIZE (IO-Compress-Brotli-0.004001.tar.gz) = 7674244 +TIMESTAMP = 1698341291 +SHA256 (IO-Compress-Brotli-0.007.tar.gz) = 195fd7987e7074d8f9c324eea7599c316ccd9eeb1bc7ca13f7a951b78f9f35e0 +SIZE (IO-Compress-Brotli-0.007.tar.gz) = 7746650 diff --git a/archivers/p5-IO-Compress-Brotli/files/patch-Makefile.PL b/archivers/p5-IO-Compress-Brotli/files/patch-Makefile.PL new file mode 100644 index 000000000000..b83584689037 --- /dev/null +++ b/archivers/p5-IO-Compress-Brotli/files/patch-Makefile.PL @@ -0,0 +1,37 @@ +--- Makefile.PL.orig 2023-10-25 00:42:06 UTC ++++ Makefile.PL +@@ -1,6 +1,5 @@ + use 5.014000; + use ExtUtils::MakeMaker; +-use Alien::cmake3; + use File::Spec::Functions qw/catfile/; + + WriteMakefile( +@@ -17,14 +16,6 @@ WriteMakefile( + 'Getopt::Long' => '0', + 'Time::HiRes' => '0', + }, +- CONFIGURE_REQUIRES => { +- 'Alien::cmake3' => '0', +- }, +- BUILD_REQUIRES => { +- 'Alien::cmake3' => '0', +- }, +- INC => '-Ibrotli/c/include', +- MYEXTLIB => 'brotli/libbrotlienc.so.1.1.0 brotli/libbrotlidec.so.1.1.0 brotli/libbrotlicommon.so.1.1.0', + clean => { FILES => 'brotli/Makefile brotli/libbrotlienc.so* brotli/libbrotlidec.so* brotli/libbrotlicommon.so* 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' }, + META_ADD => { + dynamic_config => 0, +@@ -33,12 +24,3 @@ WriteMakefile( + }, + } + ); +- +-sub MY::postamble { +- my @dirs = Alien::cmake3->bin_dir; +- my $cmake = defined $dirs[0] ? catfile($dirs[0] , Alien::cmake3->exe) : Alien::cmake3->exe; +-' +-$(MYEXTLIB): brotli/CMakeLists.txt +- cd brotli && ' . $cmake . ' -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./installed . && make +-' +-}