Commit 51680dc5 authored by rubicon's avatar rubicon
Browse files

community/perl-app-cpanminus: fix compatibility with perl-libwww

A better fix for #14003 that uses versioned install_if
parent 971d550f
......@@ -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
"
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.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment