mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
community/perl-unicode-collate: rebuild against perl 5.26
This commit is contained in:
parent
8cf6c4f07b
commit
0c8f731d6e
@ -4,7 +4,7 @@
|
||||
pkgname=perl-unicode-collate
|
||||
_pkgreal=Unicode-Collate
|
||||
pkgver=1.19
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Unicode Collation Algorithm"
|
||||
url="http://search.cpan.org/dist/Unicode-Collate/"
|
||||
arch="all"
|
||||
@ -14,23 +14,23 @@ cpanmakedepends=" "
|
||||
depends="$cpandepends"
|
||||
makedepends="perl-dev $cpanmakedepends"
|
||||
subpackages="$pkgname-doc"
|
||||
source="http://search.cpan.org/CPAN/authors/id/S/SA/SADAHIRO/$_pkgreal-$pkgver.tar.gz"
|
||||
source="http://search.cpan.org/CPAN/authors/id/S/SA/SADAHIRO/$_pkgreal-$pkgver.tar.gz
|
||||
Unicode-Collate-1.19-Fixes-for-removal-dot-from-INC.patch
|
||||
"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
|
||||
prepare() {
|
||||
default_prepare || return 1
|
||||
|
||||
cd "$builddir"
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||||
make && make test
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
@ -42,6 +42,5 @@ doc() {
|
||||
replaces="perl-doc"
|
||||
}
|
||||
|
||||
md5sums="6f9dcc7801fa2516993dcb59f8b61f6d Unicode-Collate-1.19.tar.gz"
|
||||
sha256sums="c3ff558c28d4fecb6fb77fbc1936518536e115c3b1eed9b990755e00bb479570 Unicode-Collate-1.19.tar.gz"
|
||||
sha512sums="580bca6e96dd474b223ec9f971d6b8a4fc96d1bbffdc278dfa679d511455940e088f19069647715c2ae7c8e52972a59107cbc6d1bf3537de1c314feab2f4c21b Unicode-Collate-1.19.tar.gz"
|
||||
sha512sums="580bca6e96dd474b223ec9f971d6b8a4fc96d1bbffdc278dfa679d511455940e088f19069647715c2ae7c8e52972a59107cbc6d1bf3537de1c314feab2f4c21b Unicode-Collate-1.19.tar.gz
|
||||
c80607164c7c6ff180770e4e296e645f04e7cda2868039a012c6fb51fdd6951703181165d1c71a7407f938df9ccff59c5ce63784e30b1a3ae8907d0b4b8dd1f3 Unicode-Collate-1.19-Fixes-for-removal-dot-from-INC.patch"
|
||||
|
@ -0,0 +1,24 @@
|
||||
diff -up Unicode-Collate-1.19/mklocale.orig Unicode-Collate-1.19/mklocale
|
||||
--- Unicode-Collate-1.19/mklocale.orig 2017-05-11 14:46:13.491501304 +0200
|
||||
+++ Unicode-Collate-1.19/mklocale 2017-05-11 14:48:21.829764058 +0200
|
||||
@@ -546,7 +546,7 @@ for my $txt (@txts) {
|
||||
s/\s*\z/.pm/;
|
||||
my $f = File::Spec->catfile($CUR_DIR, split /::/, $_);
|
||||
$f = 'Korean.pm' if /::Korean\.pm/; # using the newer one
|
||||
- require $f;
|
||||
+ require "./$f";
|
||||
next;
|
||||
}
|
||||
if (/^(alternate)\s+(\S+)/) {
|
||||
diff -up Unicode-Collate-1.19/Makefile.PL.orig Unicode-Collate-1.19/Makefile.PL
|
||||
--- Unicode-Collate-1.19/Makefile.PL.orig 2017-05-11 14:57:57.113506081 +0200
|
||||
+++ Unicode-Collate-1.19/Makefile.PL 2017-05-11 14:57:25.895682439 +0200
|
||||
@@ -6,7 +6,7 @@ my $clean = {};
|
||||
if (-f "Collate.xs") {
|
||||
print "Making header files for XS...\n";
|
||||
|
||||
- do 'mkheader' or die $@ || "mkheader: $!";
|
||||
+ do './mkheader' or die $@ || "mkheader: $!";
|
||||
|
||||
$clean = { FILES => 'ucatbl.h' };
|
||||
}
|
Loading…
Reference in New Issue
Block a user