diff --git a/math/p5-Math-GSL/Makefile b/math/p5-Math-GSL/Makefile index 197fe823a7d3..ec5272c73f0b 100644 --- a/math/p5-Math-GSL/Makefile +++ b/math/p5-Math-GSL/Makefile @@ -12,8 +12,7 @@ WWW= https://metacpan.org/release/Math-GSL LICENSE= ART10 GPLv1+ LICENSE_COMB= dual -BUILD_DEPENDS= p5-PkgConfig>=0.07720:devel/p5-PkgConfig \ - p5-Alien-GSL>=1.01:math/p5-Alien-GSL +BUILD_DEPENDS= p5-PkgConfig>=0.07720:devel/p5-PkgConfig LIB_DEPENDS= libgsl.so:math/gsl TEST_DEPENDS= p5-Test-Class>=0.12:devel/p5-Test-Class \ p5-Test-Exception>=0.21:devel/p5-Test-Exception \ @@ -23,6 +22,9 @@ TEST_DEPENDS= p5-Test-Class>=0.12:devel/p5-Test-Class \ USES= perl5 USE_PERL5= modbuild +post-patch: + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/Build.PL + post-install: ${FIND} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Math/GSL/ -name "*.so" -exec ${STRIP_CMD} {} + diff --git a/math/p5-Math-GSL/files/patch-Build.PL b/math/p5-Math-GSL/files/patch-Build.PL new file mode 100644 index 000000000000..b9604af7db00 --- /dev/null +++ b/math/p5-Math-GSL/files/patch-Build.PL @@ -0,0 +1,32 @@ +--- Build.PL.orig 2021-07-26 16:28:55 UTC ++++ Build.PL +@@ -26,7 +26,6 @@ use File::Spec::Functions qw/:ALL/; + use GSLBuilder; + use Ver2Func; + use File::Spec::Functions qw/:ALL/; +-use Alien::GSL; + + our $MIN_GSL_VERSION = "1.15"; + +@@ -143,7 +142,6 @@ my $builder = GSLBuilder->new( + configure_requires => { + 'PkgConfig' => '0.07720', + 'Module::Build' => '0.38', +- 'Alien::GSL' => '1.01', + }, + swig_version => $swig_version, + current_version => $gsl_conf->{gsl_version}, +@@ -251,11 +249,8 @@ sub check_alien_gsl_share_dir { + } + + sub check_alien_gsl_share_dir { +- if (Alien::GSL->install_type eq "share") { +- my $dist_dir = Alien::GSL->dist_dir; +- my $bin_dir = File::Spec->catfile( $dist_dir, "bin" ); +- $ENV{PATH} .= ":$bin_dir"; +- } ++ my $bin_dir = File::Spec->catfile( "%%LOCALBASE%%", "bin" ); ++ $ENV{PATH} .= ":$bin_dir"; + } + + sub check_gsl_version_pkgconfig {