diff --git a/community/perl-app-cpanminus/APKBUILD b/community/perl-app-cpanminus/APKBUILD index 8860c7e064a7f99745a7dbd5f48ac61c6f8a60a2..c0a87b9483819f7ca628f48f62d339ed2cc5365b 100644 --- a/community/perl-app-cpanminus/APKBUILD +++ b/community/perl-app-cpanminus/APKBUILD @@ -5,16 +5,18 @@ pkgname=perl-app-cpanminus #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=App-cpanminus pkgver=1.7046 -pkgrel=0 +pkgrel=1 pkgdesc="Get, unpack, build and install modules from CPAN" url="https://metacpan.org/release/App-cpanminus/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl ssl_client ca-certificates-bundle" -subpackages="$pkgname-doc" +options="net" # needed to ensure cpanminus is able to access CPAN +subpackages="$pkgname-doc $pkgname-lwp" source="https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-$pkgver.tar.gz use-https-mirrors.patch busybox-wget-compat.patch + README.alpine " builddir="$srcdir/$_pkgreal-$pkgver" _blibdir="$builddir/blib" @@ -55,8 +57,18 @@ package() { find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } +lwp() { + pkgdesc="$pkgdesc with LWP::Protocol::https" + depends="$pkgname=$pkgver-r$pkgrel perl-lwp-protocol-https" + install_if="$pkgname=$pkgver-r$pkgrel perl-libwww" + + install -Dvm644 "$srcdir"/README.alpine \ + -t "$subpkgdir"/usr/share/"$subpkgname" +} + sha512sums=" ced5f264979eb50cc33ac566c0242998c9b9c158ba435b9a180810f58eaa0b28d0de70312ade10df0ee3808369423f7baa029f2be740461d20a695e5e24d0d9b App-cpanminus-1.7046.tar.gz b775836197d4ae2244a60ff3f2ba6cf2aa3217cc71686d20fae0eff6f2dfc222f4cfb73a97ffcaf5756c52312104130dc9e3837f1cf5d1b711d81b0bd7dd41ca use-https-mirrors.patch cd5aecb7f834dfef705f11fa8499b9257e299de862e1ef62d040da6b436191d7d42e48303113c118fb5604975a0ece950426c69382f1205328e9d28d08ac31e9 busybox-wget-compat.patch +e298cbc901a99380aaf15ef89a5a2e6e61307def674140dd53d9f16e9ad0da44ffe25679538c0a7495a77b44a0a483f80ee470b56b13434fdcfc3a8d61a8e5f7 README.alpine " diff --git a/community/perl-app-cpanminus/README.alpine b/community/perl-app-cpanminus/README.alpine new file mode 100644 index 0000000000000000000000000000000000000000..f4e1aae0660e5c014b445cace412b4fad92cce47 --- /dev/null +++ b/community/perl-app-cpanminus/README.alpine @@ -0,0 +1,6 @@ +This subpackage is needed because cpanminus will not +use wget if LWP (perl-libwww) is installed. + +The main package takes care of enabling HTTPS support +for Busybox wget, while this subpackage enables +HTTPS support for LWP. diff --git a/main/perl-lwp-protocol-https/APKBUILD b/main/perl-lwp-protocol-https/APKBUILD index 2256e1eb9c69ad69e87100a6ff236d65be1ec9ad..ca6fb0f39d26cb66dee920f131021881bacbabbe 100644 --- a/main/perl-lwp-protocol-https/APKBUILD +++ b/main/perl-lwp-protocol-https/APKBUILD @@ -4,7 +4,7 @@ pkgname=perl-lwp-protocol-https _pkgreal=LWP-Protocol-https pkgver=6.10 -pkgrel=2 +pkgrel=3 pkgdesc="Provide https support for LWP::UserAgent" url="https://metacpan.org/release/LWP-Protocol-https/" arch="noarch" @@ -15,10 +15,6 @@ subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/O/OA/OALDERS/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" -# cpanminus won't fallback on wget if perl-libwww is installed. -# So, this is needed for cpanminus to use HTTPS by default. -install_if="perl-libwww perl-app-cpanminus" - prepare() { default_prepare PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor @@ -37,5 +33,6 @@ package() { find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } - -sha512sums="4d3c89dab6fadcb574c176977ca6debba177ee3f817e87319d9cd81e0a0b09214e271c2e97edc456dad2f4a1ebf8c6266a4ae52c3a93144880a5b32db97e7a31 LWP-Protocol-https-6.10.tar.gz" +sha512sums=" +4d3c89dab6fadcb574c176977ca6debba177ee3f817e87319d9cd81e0a0b09214e271c2e97edc456dad2f4a1ebf8c6266a4ae52c3a93144880a5b32db97e7a31 LWP-Protocol-https-6.10.tar.gz +"