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 ", + "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 = (