git: 44f2e894692d - main - math/p5-Math-GMP: Convert REINPLACE_CMD to patch file
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 Jan 2025 17:07:43 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=44f2e894692ddaaf3eecceb337030b8306825f40
commit 44f2e894692ddaaf3eecceb337030b8306825f40
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-01-28 16:58:31 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-01-28 17:05:02 +0000
math/p5-Math-GMP: Convert REINPLACE_CMD to patch file
---
math/p5-Math-GMP/Makefile | 4 ----
math/p5-Math-GMP/files/patch-Makefile.PL | 25 +++++++++++++++++++++++++
2 files changed, 25 insertions(+), 4 deletions(-)
diff --git a/math/p5-Math-GMP/Makefile b/math/p5-Math-GMP/Makefile
index 19c3503d1d2b..267e0d9bd27f 100644
--- a/math/p5-Math-GMP/Makefile
+++ b/math/p5-Math-GMP/Makefile
@@ -15,10 +15,6 @@ LIB_DEPENDS= libgmp.so:math/gmp
USES= localbase perl5
USE_PERL5= configure
-post-patch:
- @${REINPLACE_CMD} -e '/Alien::GMP/d' ${WRKSRC}/META.json ${WRKSRC}/META.yml ${WRKSRC}/Makefile.PL
- @${REINPLACE_CMD} -e 's|Alien::Base::Wrapper->mm_args|"LIBS" => ["-lgmp"]|' ${WRKSRC}/Makefile.PL
-
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Math/GMP/GMP.so
diff --git a/math/p5-Math-GMP/files/patch-Makefile.PL b/math/p5-Math-GMP/files/patch-Makefile.PL
new file mode 100644
index 000000000000..de07d078b1b3
--- /dev/null
+++ b/math/p5-Math-GMP/files/patch-Makefile.PL
@@ -0,0 +1,25 @@
+--- Makefile.PL.orig 2022-03-15 09:26:21 UTC
++++ Makefile.PL
+@@ -8,13 +8,11 @@ use ExtUtils::MakeMaker;
+ 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",
+@@ -48,7 +46,7 @@ my %WriteMakefileArgs = (
+
+ %WriteMakefileArgs = (
+ %WriteMakefileArgs,
+- Alien::Base::Wrapper->mm_args,
++ "LIBS" => ["-lgmp"],
+ );
+
+ my %FallbackPrereqs = (