Hi, ports@:
Here is a patch for math/p5-Math-GMP:
i) Update to 2.19
ii) Add a patch to build with gmp in ports
It build well and pass all tests on amd64-current system.
One port depends on it : net/p5-Net-SSH-Perl. It build well.
One tests fail but it was not caused by this patch.
Cheers,
wen
Index: Makefile
===================================================================
RCS file: /cvs/ports/math/p5-Math-GMP/Makefile,v
retrieving revision 1.36
diff -u -p -r1.36 Makefile
--- Makefile 12 Jul 2019 20:47:44 -0000 1.36
+++ Makefile 13 Jan 2020 11:16:16 -0000
@@ -3,8 +3,7 @@
COMMENT= high speed arbitrary-size integer math
MODULES= cpan
-DISTNAME = Math-GMP-2.14
-REVISION = 0
+DISTNAME = Math-GMP-2.19
CATEGORIES= math
# LGPLv2+
Index: distinfo
===================================================================
RCS file: /cvs/ports/math/p5-Math-GMP/distinfo,v
retrieving revision 1.10
diff -u -p -r1.10 distinfo
--- distinfo 30 Apr 2017 09:10:00 -0000 1.10
+++ distinfo 13 Jan 2020 11:16:16 -0000
@@ -1,2 +1,2 @@
-SHA256 (Math-GMP-2.14.tar.gz) = JX6C5dfghLr10eu0H7xxowJr4vmeItjitYFnU3L3Lvg=
-SIZE (Math-GMP-2.14.tar.gz) = 33025
+SHA256 (Math-GMP-2.19.tar.gz) = EeHgcUEQGdZoEJGwvJc4RlghPp8wiO6Fh2g0UoMoB7A=
+SIZE (Math-GMP-2.19.tar.gz) = 33475
Index: patches/patch-Makefile_PL
===================================================================
RCS file: /cvs/ports/math/p5-Math-GMP/patches/patch-Makefile_PL,v
retrieving revision 1.5
diff -u -p -r1.5 patch-Makefile_PL
--- patches/patch-Makefile_PL 13 Aug 2015 08:47:52 -0000 1.5
+++ patches/patch-Makefile_PL 13 Jan 2020 11:16:16 -0000
@@ -1,13 +1,27 @@
$OpenBSD: patch-Makefile_PL,v 1.5 2015/08/13 08:47:52 benoit Exp $
---- Makefile.PL.orig Wed Aug 12 14:56:32 2015
-+++ Makefile.PL Thu Aug 13 09:19:35 2015
-@@ -52,7 +52,8 @@
+Index: Makefile.PL
+--- Makefile.PL.orig
++++ Makefile.PL
+@@ -8,13 +8,10 @@ use warnings;
+ use 5.010;
+ use ExtUtils::MakeMaker;
+
+-use Alien::Base::Wrapper qw( Alien::GMP !export );
+-
+ my %WriteMakefileArgs = (
+ "ABSTRACT" => "High speed arbitrary size integer math",
+ "AUTHOR" => "Shlomi Fish <shlomif\@cpan.org>",
+ "CONFIGURE_REQUIRES" => {
+- "Alien::GMP" => "1.08",
+ "ExtUtils::MakeMaker" => 0
+ },
+ "DISTNAME" => "Math-GMP",
+@@ -47,7 +44,7 @@ my %WriteMakefileArgs = (
%WriteMakefileArgs = (
%WriteMakefileArgs,
-- 'LIBS' => ['-lgmp'],,
-+ 'INC' => "$ENV{CPPFLAGS}",
-+ 'LIBS' => ["$ENV{LDFLAGS} -lgmp"],,
+- Alien::Base::Wrapper->mm_args,
++ 'LIBS' => ["$ENV{LDFLAGS} -lgmp"],
);
my %FallbackPrereqs = (