community/perl-unicode-normalize: rebuild against perl 5.26

This commit is contained in:
Natanael Copa 2017-06-15 15:40:24 +00:00
parent a5bc29e2fd
commit fd4cd08345
2 changed files with 25 additions and 14 deletions

View File

@ -4,7 +4,7 @@
pkgname=perl-unicode-normalize
_pkgreal=Unicode-Normalize
pkgver=1.25
pkgrel=2
pkgrel=3
pkgdesc="Unicode Normalization Forms"
url="http://search.cpan.org/dist/Unicode-Normalize/"
arch="all"
@ -14,21 +14,21 @@ cpanmakedepends=" "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/K/KH/KHW/$_pkgreal-$pkgver.tar.gz"
source="http://search.cpan.org/CPAN/authors/id/K/KH/KHW/$_pkgreal-$pkgver.tar.gz
Unicode-Normalize-1.25-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}')
make && make test
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
cd "$builddir"
make test
}
package() {
@ -42,6 +42,5 @@ doc() {
replaces="perl-doc"
}
md5sums="8f25327bbccc33717b7d85433e1083bd Unicode-Normalize-1.25.tar.gz"
sha256sums="00b33a75d3b356ade2e09391ea2d32fac881671c18b1eb26b9ca31273d5b046c Unicode-Normalize-1.25.tar.gz"
sha512sums="f28c19e0293cf75cc0aab669ae0a0543f6a1a39e1e50ff32ab37abd8e85efc73e8b9075e581212b6da576ecbf8c0e9ddb7b9b352674aa3a04c77f9aaf4717866 Unicode-Normalize-1.25.tar.gz"
sha512sums="f28c19e0293cf75cc0aab669ae0a0543f6a1a39e1e50ff32ab37abd8e85efc73e8b9075e581212b6da576ecbf8c0e9ddb7b9b352674aa3a04c77f9aaf4717866 Unicode-Normalize-1.25.tar.gz
bd1bd5e67d3a09ddd7bf2ec584af2258ab44e64850e480816c2b824fceabe9c926fe795d610c5468c84a8f375c3826fbf7c69b870cdd7719fc6f3a367660e553 Unicode-Normalize-1.25-Fixes-for-removal-dot-from-INC.patch"

View File

@ -0,0 +1,12 @@
diff -up Unicode-Normalize-1.25/Makefile.PL.orig Unicode-Normalize-1.25/Makefile.PL
--- Unicode-Normalize-1.25/Makefile.PL.orig 2017-05-12 10:24:13.296305863 +0200
+++ Unicode-Normalize-1.25/Makefile.PL 2017-05-12 10:25:28.275822594 +0200
@@ -8,7 +8,7 @@ my $mm_ver = ExtUtils::MakeMaker->VERSIO
if (-f "Normalize.xs") {
print STDERR "Making header files for XS...\n";
- do 'mkheader' or die $@ || "mkheader: $!";
+ do './mkheader' or die $@ || "mkheader: $!";
$clean = { FILES => 'unfcan.h unfcmb.h unfcmp.h unfcpt.h unfexc.h' };
}