aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCeleste <20312-Celeste@users.gitlab.alpinelinux.org>2024-05-08 06:24:52 +0000
committerCeleste <20312-Celeste@users.gitlab.alpinelinux.org>2024-05-08 09:13:34 +0000
commit871dc97334254c5e0cf885fe2c526378ce864330 (patch)
tree731639fcf90140edab8a7147840641668e985eb0
parent740a1d44a62c4152bcb80fe9ceb74916420ef726 (diff)
main/perl-*: adopt from @vaka
also, upgrade to apkbuild-cpan template 4
-rw-r--r--main/perl-cgi-fast/APKBUILD15
-rw-r--r--main/perl-encode-hanextra/APKBUILD19
-rw-r--r--main/perl-encode-hanextra/reproducible-hash-order.patch74
-rw-r--r--main/perl-gd/APKBUILD18
-rw-r--r--main/perl-gdgraph/APKBUILD19
-rw-r--r--main/perl-gdtextutil/APKBUILD17
-rw-r--r--main/perl-mail-imapclient/APKBUILD25
-rw-r--r--main/perl-net-smtp-tls-butmaintained/APKBUILD19
-rw-r--r--main/perl-yaml-libyaml/APKBUILD4
9 files changed, 157 insertions, 53 deletions
diff --git a/main/perl-cgi-fast/APKBUILD b/main/perl-cgi-fast/APKBUILD
index 7dc476e500c..ea0a75e945d 100644
--- a/main/perl-cgi-fast/APKBUILD
+++ b/main/perl-cgi-fast/APKBUILD
@@ -1,11 +1,12 @@
-# Automatically generated by apkbuild-cpan, template 3
+# Automatically generated by apkbuild-cpan, template 4
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
-# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-cgi-fast
+pkgver=2.17
+pkgrel=1
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=CGI-Fast
-pkgver=2.17
-pkgrel=0
pkgdesc="CGI Interface for Fast CGI"
url="https://metacpan.org/release/CGI-Fast/"
arch="noarch"
@@ -17,7 +18,10 @@ builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
+ INSTALLDIRS=vendor \
+ NO_PACKLIST=1 \
+ NO_PERLLOCAL=1
make
}
@@ -28,7 +32,6 @@ check() {
package() {
make DESTDIR="$pkgdir" install
- find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
diff --git a/main/perl-encode-hanextra/APKBUILD b/main/perl-encode-hanextra/APKBUILD
index b0abf7199c9..b92d52aa1db 100644
--- a/main/perl-encode-hanextra/APKBUILD
+++ b/main/perl-encode-hanextra/APKBUILD
@@ -1,11 +1,11 @@
-# Automatically generated by apkbuild-cpan, template 3
+# Automatically generated by apkbuild-cpan, template 4
# Contributor: Valery Kartel <valery.kartel@gmail.com>
-# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-encode-hanextra
+pkgver=0.23
+pkgrel=12
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Encode-HanExtra
-pkgver=0.23
-pkgrel=11
pkgdesc="Extra sets of Chinese encodings"
url="https://metacpan.org/release/Encode-HanExtra/"
arch="all"
@@ -13,12 +13,17 @@ license="MIT"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
-source="https://cpan.metacpan.org/authors/id/A/AU/AUDREYT/Encode-HanExtra-$pkgver.tar.gz"
+source="https://cpan.metacpan.org/authors/id/A/AU/AUDREYT/Encode-HanExtra-$pkgver.tar.gz
+ reproducible-hash-order.patch
+ "
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
+ INSTALLDIRS=vendor \
+ NO_PACKLIST=1 \
+ NO_PERLLOCAL=1
make
}
@@ -29,9 +34,9 @@ check() {
package() {
make DESTDIR="$pkgdir" install
- find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
218083b9b3b4517cfc714169479cba0689a3586d9abb24bcc79d3401d37dd9412cb4e878b6aad06676d5c4f0e03cc69dcaf2e5f48036e2da6f336508c381e462 Encode-HanExtra-0.23.tar.gz
+2f89d85cc882509f4ee68e98d05fb073ba1f2143ed22c3a049946e4aa3f3847afc9bd8e26853ec6f091465d744f0070700cd7adf069e065184bf4903e9668914 reproducible-hash-order.patch
"
diff --git a/main/perl-encode-hanextra/reproducible-hash-order.patch b/main/perl-encode-hanextra/reproducible-hash-order.patch
new file mode 100644
index 00000000000..e86cfd39651
--- /dev/null
+++ b/main/perl-encode-hanextra/reproducible-hash-order.patch
@@ -0,0 +1,74 @@
+Patch-Source: https://sources.debian.org/data/main/libe/libencode-hanextra-perl/0.23-6/debian/patches/0001-Make-the-build-reproducible-by-sorting-hash-keys-in-.patch
+--
+From ffaee9c0e01aa0e66a8284948eb98efe4420549f Mon Sep 17 00:00:00 2001
+From: Niko Tyni <ntyni@debian.org>
+Date: Thu, 4 Jun 2015 20:35:36 +0300
+Subject: [PATCH] Make the build reproducible by sorting hash keys in
+ Makefile.PL
+
+Bug-Debian: https://bugs.debian.org/787754
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=104964
+
+---
+ Makefile.PL | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/Makefile.PL b/Makefile.PL
+index 9e6cf51..28b8489 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -79,7 +79,7 @@ sub post_initialize {
+ my $x = $self->{'OBJ_EXT'};
+
+ # Add the table O_FILES
+- foreach my $e (keys %tables) {
++ foreach my $e (sort keys %tables) {
+ $o{ $e . $x } = 1;
+ }
+ $o{"$name$x"} = 1;
+@@ -93,7 +93,7 @@ sub post_initialize {
+
+ # $self->{'H'} = [$self->catfile($self->updir,'encode.h')];
+ my %xs;
+- foreach my $table (keys %tables) {
++ foreach my $table (sort keys %tables) {
+ push(@{ $self->{'C'} }, "$table.c");
+
+ # Do NOT add $table.h etc. to H_FILES unless we own up as to how they
+@@ -112,7 +112,7 @@ sub post_initialize {
+ #define U8 U8
+ #include "encode.h"
+ END
+- foreach my $table (keys %tables) {
++ foreach my $table (sort keys %tables) {
+ print XS qq[#include "${table}.h"\n];
+ }
+ print XS <<"END";
+@@ -141,7 +141,7 @@ PROTOTYPES: DISABLE
+ BOOT:
+ {
+ END
+- foreach my $table (keys %tables) {
++ foreach my $table (sort keys %tables) {
+ print XS qq[#include "${table}.exh"\n];
+ }
+ print XS "}\n";
+@@ -155,13 +155,13 @@ sub postamble {
+ my $str =
+ "# $name\$(OBJ_EXT) depends on .h and .exh files not .c files - but all written by enc2xs\n";
+ $str .= "$name.c : $name.xs ";
+- foreach my $table (keys %tables) {
++ foreach my $table (sort keys %tables) {
+ $str .= " $table.c";
+ }
+ $str .= "\n\n";
+ $str .= "$name\$(OBJ_EXT) : $name.c\n\n";
+
+- foreach my $table (keys %tables) {
++ foreach my $table (sort keys %tables) {
+ my $numlines = 1;
+ my $lengthsofar = length($str);
+ my $continuator = '';
+--
+2.1.4
+
diff --git a/main/perl-gd/APKBUILD b/main/perl-gd/APKBUILD
index 0229fe5d0aa..356f5f404bd 100644
--- a/main/perl-gd/APKBUILD
+++ b/main/perl-gd/APKBUILD
@@ -1,18 +1,26 @@
# Automatically generated by apkbuild-cpan, template 4
# Contributor: Valery Kartel <valery.kartel@gmail.com>
-# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-gd
pkgver=2.81
-pkgrel=0
+pkgrel=1
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=GD
pkgdesc="Perl interface to the libgd graphics library"
url="https://metacpan.org/release/GD/"
arch="all"
-license="GPL-1.0-or-later OR Artistic-1.0-Perl"
+license="GPL-1.0-or-later OR Artistic-2.0"
depends="perl"
-makedepends="perl-dev perl-extutils-pkgconfig gd-dev libjpeg-turbo-dev zlib-dev
- libpng-dev freetype-dev libwebp-dev"
+makedepends="
+ perl-dev
+ perl-extutils-pkgconfig
+ freetype-dev
+ gd-dev
+ libjpeg-turbo-dev
+ libpng-dev
+ libwebp-dev
+ zlib-dev
+ "
checkdepends="perl-test-fork perl-test-nowarnings"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RU/RURBAN/GD-$pkgver.tar.gz"
diff --git a/main/perl-gdgraph/APKBUILD b/main/perl-gdgraph/APKBUILD
index 24c91442131..5bb58c3ee99 100644
--- a/main/perl-gdgraph/APKBUILD
+++ b/main/perl-gdgraph/APKBUILD
@@ -1,17 +1,16 @@
-# Automatically generated by apkbuild-cpan, template 3
+# Automatically generated by apkbuild-cpan, template 4
# Contributor: Valery Kartel <valery.kartel@gmail.com>
-# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-gdgraph
+pkgver=1.56
+pkgrel=2
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=GDGraph
-pkgver=1.56
-pkgrel=1
-pkgdesc="Produces charts with GD"
+pkgdesc="Generate charts with GD"
url="https://metacpan.org/release/GDGraph/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
-depends="perl perl-gdtextutil perl-gd"
-makedepends="perl-dev"
+depends="perl perl-gd perl-gdtextutil"
checkdepends="perl-capture-tiny perl-test-exception"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/B/BP/BPS/GDGraph-$pkgver.tar.gz"
@@ -19,7 +18,10 @@ builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
+ INSTALLDIRS=vendor \
+ NO_PACKLIST=1 \
+ NO_PERLLOCAL=1
make
}
@@ -30,7 +32,6 @@ check() {
package() {
make DESTDIR="$pkgdir" install
- find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
diff --git a/main/perl-gdtextutil/APKBUILD b/main/perl-gdtextutil/APKBUILD
index ae3d89d9f60..fa0dc15a19b 100644
--- a/main/perl-gdtextutil/APKBUILD
+++ b/main/perl-gdtextutil/APKBUILD
@@ -1,24 +1,26 @@
-# Automatically generated by apkbuild-cpan, template 3
+# Automatically generated by apkbuild-cpan, template 4
# Contributor: Valery Kartel <valery.kartel@gmail.com>
-# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-gdtextutil
+pkgver=0.86
+pkgrel=5
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=GDTextUtil
-pkgver=0.86
-pkgrel=4
-pkgdesc="Perl module for GDTextUtil"
+pkgdesc="Text utilities for GD"
url="https://metacpan.org/release/GDTextUtil/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-gd"
-makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MV/MVERB/GDTextUtil-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
+ INSTALLDIRS=vendor \
+ NO_PACKLIST=1 \
+ NO_PERLLOCAL=1
make
}
@@ -29,7 +31,6 @@ check() {
package() {
make DESTDIR="$pkgdir" install
- find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
diff --git a/main/perl-mail-imapclient/APKBUILD b/main/perl-mail-imapclient/APKBUILD
index e02676a81f5..746d48a2865 100644
--- a/main/perl-mail-imapclient/APKBUILD
+++ b/main/perl-mail-imapclient/APKBUILD
@@ -1,11 +1,11 @@
-# Automatically generated by apkbuild-cpan, template 3
+# Automatically generated by apkbuild-cpan, template 4
# Contributor: Valery Kartel <valery.kartel@gmail.com>
-# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-mail-imapclient
+pkgver=3.43
+pkgrel=2
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Mail-IMAPClient
-pkgver=3.43
-pkgrel=1
pkgdesc="IMAP4 client library"
url="https://metacpan.org/release/Mail-IMAPClient/"
arch="noarch"
@@ -17,7 +17,10 @@ builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
+ INSTALLDIRS=vendor \
+ NO_PACKLIST=1 \
+ NO_PERLLOCAL=1
make
}
@@ -28,7 +31,15 @@ check() {
package() {
make DESTDIR="$pkgdir" install
- find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
-sha512sums="9e2346238d68ea62c0ad2e5c03ae9a36face8238dbccbbc083bcefd41d82a7f75887e3245c792e4bd2a5999ce66fabdc4e861118904e96cf2781e1ca549a1b09 Mail-IMAPClient-3.43.tar.gz"
+doc() {
+ local file; find "$pkgdir" -name "*.pod" | while read -r file; do
+ amove "${file#"$pkgdir"}"
+ done
+ default_doc
+}
+
+sha512sums="
+9e2346238d68ea62c0ad2e5c03ae9a36face8238dbccbbc083bcefd41d82a7f75887e3245c792e4bd2a5999ce66fabdc4e861118904e96cf2781e1ca549a1b09 Mail-IMAPClient-3.43.tar.gz
+"
diff --git a/main/perl-net-smtp-tls-butmaintained/APKBUILD b/main/perl-net-smtp-tls-butmaintained/APKBUILD
index fb72ba91a2f..8c9efa7c1a1 100644
--- a/main/perl-net-smtp-tls-butmaintained/APKBUILD
+++ b/main/perl-net-smtp-tls-butmaintained/APKBUILD
@@ -1,24 +1,26 @@
-# Automatically generated by apkbuild-cpan, template 3
+# Automatically generated by apkbuild-cpan, template 4
# Contributor: Valery Kartel <valery.kartel@gmail.com>
-# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-net-smtp-tls-butmaintained
+pkgver=0.24
+pkgrel=5
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Net-SMTP-TLS-ButMaintained
-pkgver=0.24
-pkgrel=4
-pkgdesc="An SMTP client supporting TLS and AUTH (DEPRECATED, use Net::SMTPS instead)"
+pkgdesc="SMTP client supporting TLS and AUTH"
url="https://metacpan.org/release/Net-SMTP-TLS-ButMaintained/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
-depends="perl perl-net-ssleay perl-io-socket-ssl perl-digest-hmac"
-makedepends="perl-dev"
+depends="perl perl-digest-hmac perl-io-socket-ssl perl-net-ssleay"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/F/FA/FAYLAND/Net-SMTP-TLS-ButMaintained-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
- PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
+ PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
+ INSTALLDIRS=vendor \
+ NO_PACKLIST=1 \
+ NO_PERLLOCAL=1
make
}
@@ -29,7 +31,6 @@ check() {
package() {
make DESTDIR="$pkgdir" install
- find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
diff --git a/main/perl-yaml-libyaml/APKBUILD b/main/perl-yaml-libyaml/APKBUILD
index 59727ac686d..31de3cc423f 100644
--- a/main/perl-yaml-libyaml/APKBUILD
+++ b/main/perl-yaml-libyaml/APKBUILD
@@ -1,10 +1,10 @@
# Automatically generated by apkbuild-cpan, template 4
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
-# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-yaml-libyaml
pkgver=0.89
-pkgrel=0
+pkgrel=1
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=YAML-LibYAML
pkgdesc="Perl YAML Serialization using XS and libyaml"