main/perl-*: adopt from @vaka

also, upgrade to apkbuild-cpan template 4
This commit is contained in:
Celeste 2024-05-08 06:24:52 +00:00
parent 740a1d44a6
commit 871dc97334
9 changed files with 157 additions and 53 deletions

View file

@ -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="

View file

@ -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
"

View file

@ -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

View file

@ -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"

View file

@ -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="

View file

@ -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="

View file

@ -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
"

View file

@ -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="

View file

@ -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"