Updated p5-Math-Pari to 2.010809.00.

2.010809
  MakeMaker of 5.22 (and, maybe, 5.20) started to call test_dynamic target in the daughter Makefile.
  Correct "{" in RExes of libPARI/gphelp.
  Attempt to workaround a broken config of gcc on vendor's Perl on Solaris.

2.01080900
  Repackage as zip
This commit is contained in:
wiz 2016-05-22 17:50:57 +00:00
parent 24cd91b46d
commit a302c21f8f
3 changed files with 36 additions and 22 deletions

View file

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.49 2016/03/03 13:26:02 wiz Exp $
# $NetBSD: Makefile,v 1.50 2016/05/22 17:50:57 wiz Exp $
DISTNAME= Math-Pari-2.010808
PKGNAME= p5-${DISTNAME}
DISTNAME= Math-Pari-2.01080900
PKGNAME= p5-${DISTNAME:S/900/9.00/}
CATEGORIES+= perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Math/}
EXTRACT_SUFX= .zip

View file

@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.22 2015/12/29 23:21:11 wiz Exp $
$NetBSD: distinfo,v 1.23 2016/05/22 17:50:57 wiz Exp $
SHA1 (Math-Pari-2.010808.zip) = 722315027efa634aea1eb9620fae81d6d976f81b
RMD160 (Math-Pari-2.010808.zip) = 4c869bbdf56326eb0f98a06f7abf09891f4627f7
SHA512 (Math-Pari-2.010808.zip) = 006e77328f0d8e61b89addbb6b8b8a8adb8c8c1591a1d3cdf80f5183a5fb30bb19219cbfc2624d15ffcdb6b0dc5cff4d69e6e27eb7cb6c29796bbab36ecfda88
Size (Math-Pari-2.010808.zip) = 153838 bytes
SHA1 (patch-aa) = 08b366ed26c69c6795e0e9e4066c62e10f3a1f66
SHA1 (Math-Pari-2.01080900.zip) = 7f2c10d30f4bd3b9b9af638f325bc80e39757ff6
RMD160 (Math-Pari-2.01080900.zip) = 12ed92b335a9b097190ed3147dae14b491d3827c
SHA512 (Math-Pari-2.01080900.zip) = 844324472632081e16d8c70e2f3b14a04cc125dc65ac1e4e75b495f7b83393cadc637c6b81d2e6657380b153a6d91eba4a437087481ffbd4c6c58c5da0e4d05b
Size (Math-Pari-2.01080900.zip) = 166396 bytes
SHA1 (patch-aa) = 0a03edf36a3e162ccdbc6514faec3cf2d049f893
SHA1 (patch-ab) = 32ddc27824bbb5ac88adc0dece0f436044b8d9c7

View file

@ -1,6 +1,6 @@
$NetBSD: patch-aa,v 1.7 2015/12/29 23:21:11 wiz Exp $
$NetBSD: patch-aa,v 1.8 2016/05/22 17:50:57 wiz Exp $
--- Makefile.PL.orig 2014-06-01 19:12:16.000000000 +0000
--- Makefile.PL.orig 2016-05-07 03:14:29.000000000 +0000
+++ Makefile.PL
@@ -2,9 +2,6 @@
use ExtUtils::MakeMaker;
@ -12,7 +12,7 @@ $NetBSD: patch-aa,v 1.7 2015/12/29 23:21:11 wiz Exp $
# Uncomment and change this line if I fail to find it
# $paridir = "..";
@@ -18,137 +15,16 @@ unless (-t STDOUT) { # Better reports i
@@ -18,151 +15,16 @@ unless (-t STDOUT) { # Better reports i
chmod 0400, 'typemap' if $^O =~ /cygwin/ and -f 'typemap' and not -r 'typemap'; # bug in some installations of cygwin???
@ -50,6 +50,27 @@ $NetBSD: patch-aa,v 1.7 2015/12/29 23:21:11 wiz Exp $
- ld=$Config{ld}, ldflags='$Config{ldflags}'.
-EOP
-
-if ($^O eq 'solaris' and $Config{cc} eq 'gcc'
- and ( $Config{optimize} =~ s/(?<!\S)(-xarch=386|-xildoff)(?!\S)//g
- or $Config{cccdlflags} =~ s/(?<!\S)-KPIC(?!\S)/-fPIC/ )) {
- # Vendor's Perl has major problems with building extensions; try to fix this
- # One way is to use perlgcc; but it does not work with 5.8.4
- # See http://prefetch.net/blog/index.php/2006/07/29/building-perl-modules-for-solaris/
- print <<EOP;
-
-... Broken config of gcc-on-Solaris detected! I would try to work around this.
-... Reset: cccdlflags --> '$Config{cccdlflags}', optimize -> '$Config{optimize}'.
+my $pariprefix;
+my $addlibs;
+my $libpari = "pari";
+
+grep {/^pariprefix=(.*)$/i and $pariprefix = $1} @ARGV;
+grep {/^addlibs=(.*)$/i and $addlibs = $1} @ARGV;
+grep {/^libpari=(.*)$/i and $libpari = $1} @ARGV;
-EOP
-}
-
-if ($common::parilib) {
- $pari_version = '2001007'; # XXXX How to get a correct one?
- $define = '-DNO_HIGHLEVEL_PARI';
@ -97,14 +118,7 @@ $NetBSD: patch-aa,v 1.7 2015/12/29 23:21:11 wiz Exp $
-}
-
-$os = $Config{osname};
+my $pariprefix;
+my $addlibs;
+my $libpari = "pari";
+
+grep {/^pariprefix=(.*)$/i and $pariprefix = $1} @ARGV;
+grep {/^addlibs=(.*)$/i and $addlibs = $1} @ARGV;
+grep {/^libpari=(.*)$/i and $libpari = $1} @ARGV;
-
-$define .= " -DPARI_VERSION_EXP=$pari_version -DDEBUG_PARI";
-$define .= " -DUSE_SLOW_ARRAY_ACCESS -DUSE_SLOW_NARGS_ACCESS" if $] >= 5.009;
-$libs = "-lm";
@ -159,7 +173,7 @@ $NetBSD: patch-aa,v 1.7 2015/12/29 23:21:11 wiz Exp $
# We want to find the offset of the least significant byte
# of SV.flags inside an SV.
@@ -166,74 +42,36 @@ my $perl_int_size = $Config{'ivsize'} ||
@@ -180,74 +42,36 @@ my $perl_int_size = $Config{'ivsize'} ||
$define .= ' -DLONG_SHORTER_THAN_IV' if $perl_int_size > $longsize;
$define .= ' -Derr=pari_err'; # On linux it can get a wrong dynamic loading
@ -249,7 +263,7 @@ $NetBSD: patch-aa,v 1.7 2015/12/29 23:21:11 wiz Exp $
}
# Rewrite pic option to PIC in CCCDLFLAGS,
@@ -243,7 +81,8 @@ sub MY::const_config
@@ -257,7 +81,8 @@ sub MY::const_config
my $self = shift;
my $flags = $self->{'CCCDLFLAGS'}; # Tmp var needed with Perl4 !
$flags =~ s/(-[fK]?\s*)pic\b/${1}PIC/;