mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 06:07:00 +02:00
New package: perl-IO-Compress-Brotli-0.004001
This commit is contained in:
parent
f3e0a0e7a8
commit
0c8375b8d6
2 changed files with 65 additions and 0 deletions
|
@ -0,0 +1,50 @@
|
|||
--- IO-Compress-Brotli-0.004001/Makefile.PL.orig 2022-08-02 09:39:14.249801914 +0200
|
||||
+++ IO-Compress-Brotli-0.004001/Makefile.PL 2022-08-02 09:39:03.236639950 +0200
|
||||
@@ -1,5 +1,23 @@
|
||||
use 5.014000;
|
||||
use ExtUtils::MakeMaker;
|
||||
+use ExtUtils::PkgConfig;
|
||||
+
|
||||
+my @requirements = qw(libbrotlidec libbrotlienc);
|
||||
+my $libs = '';
|
||||
+my $inc = '';
|
||||
+
|
||||
+my %pkgcfg;
|
||||
+foreach my $req (@requirements) {
|
||||
+ eval{
|
||||
+ %pkgcfg = ExtUtils::PkgConfig->find($req);
|
||||
+ };
|
||||
+ if ($@) {
|
||||
+ die "Could not determine location of library $req.";
|
||||
+ }
|
||||
+ $libs .= $pkgcfg{libs}.' ';
|
||||
+ $inc .= $pkgcfg{cflags}.' ';
|
||||
+}
|
||||
+
|
||||
|
||||
WriteMakefile(
|
||||
NAME => 'IO::Compress::Brotli',
|
||||
@@ -16,20 +34,12 @@ WriteMakefile(
|
||||
'Time::HiRes' => '0',
|
||||
},
|
||||
BUILD_REQUIRES => {},
|
||||
- INC => '-Ibrotli/c/include',
|
||||
- MYEXTLIB => 'brotli/libbrotli$(LIB_EXT)',
|
||||
- clean => { FILES => 'brotli/libbrotli$(LIB_EXT)' },
|
||||
META_ADD => {
|
||||
dynamic_config => 0,
|
||||
resources => {
|
||||
repository => 'https://git.ieval.ro/?p=io-compress-brotli.git',
|
||||
},
|
||||
- }
|
||||
+ },
|
||||
+ LIBS => $libs,
|
||||
+ INC => $inc,
|
||||
);
|
||||
-
|
||||
-sub MY::postamble {
|
||||
-'
|
||||
-$(MYEXTLIB): brotli/Makefile
|
||||
- cd brotli && CFLAGS=-fPIC `which gmake || echo $(MAKE)` lib
|
||||
-'
|
||||
-}
|
15
srcpkgs/perl-IO-Compress-Brotli/template
Normal file
15
srcpkgs/perl-IO-Compress-Brotli/template
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Template file for 'perl-IO-Compress-Brotli'
|
||||
pkgname=perl-IO-Compress-Brotli
|
||||
version=0.004001
|
||||
revision=1
|
||||
build_style=perl-module
|
||||
hostmakedepends="perl perl-ExtUtils-PkgConfig"
|
||||
makedepends="perl-File-Slurper brotli-devel"
|
||||
depends="perl-File-Slurper"
|
||||
short_desc="Modules for compressing and uncompressing Brotli data"
|
||||
maintainer="yosh <yosh-git@riseup.net>"
|
||||
license="Artistic-1.0-Perl, GPL-1.0-or-later"
|
||||
homepage="https://metacpan.org/dist/IO-Compress-Brotli"
|
||||
changelog="https://fastapi.metacpan.org/source/MGV/IO-Compress-Brotli-0.004001/Changes"
|
||||
distfiles="https://search.cpan.org/CPAN/authors/id/M/MG/MGV/IO-Compress-Brotli-$version.tar.gz"
|
||||
checksum=8ba5c0167e966f487bde159c18bc1b3486528013b3235d39f2fcb375ca4bf410
|
Loading…
Add table
Reference in a new issue