# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= perl-Math-GSL VERSION= 0.49 KEYWORDS= perl VARIANTS= 538 540 SDESC[540]= Interface to the GNU Scientific Library (5.40) SDESC[538]= Interface to the GNU Scientific Library (5.38) HOMEPAGE= https://github.com/hakonhagland/perl-math-gsl/tree/master CONTACT= Perl_Automaton[perl@ironwolf.systems] DOWNLOAD_GROUPS= main SITES[main]= CPAN/ID:H/HA/HAKONH DISTFILE[1]= Math-GSL-0.49.tar.gz:main DF_INDEX= 1 SPKGS[540]= single SPKGS[538]= single OPTIONS_AVAILABLE= PERL_538 PERL_540 OPTIONS_STANDARD= none VOPTS[540]= PERL_538=OFF PERL_540=ON VOPTS[538]= PERL_538=ON PERL_540=OFF BUILD_DEPENDS= gsl:dev:std gsl:tools:std BUILDRUN_DEPENDS= gsl:primary:std perl-Role-Tiny:single:perl_used perl-Alien-Role-Dino:single:perl_used USES= cclibs:single DISTNAME= Math-GSL-0.49 GENERATED= yes SINGLE_JOB= yes INSTALL_REQ_TOOLCHAIN= yes [PERL_540].BUILD_DEPENDS_ON= perl-Test-Class:single:540 perl-Test-Exception:single:540 perl-Test-Most:single:540 perl-Test-Taint:single:540 perl-Math-GSL-Alien:single:540 perl-Module-Build:single:540 perl-PkgConfig:single:540 [PERL_540].USES_ON= perl:540,buildmod,run [PERL_538].BUILD_DEPENDS_ON= perl-Test-Class:single:538 perl-Test-Exception:single:538 perl-Test-Most:single:538 perl-Test-Taint:single:538 perl-Math-GSL-Alien:single:538 perl-Module-Build:single:538 perl-PkgConfig:single:538 [PERL_538].USES_ON= perl:538,buildmod,run post-patch: ${REINPLACE_CMD} -e 's|@EXT1@|-Wl,-rpath,${PREFIX}/lib|' \ -e 's|@EXT2@|-Wl,-rpath,${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/CORE|' \ ${WRKSRC}/inc/GSLBuilder.pm # support GSL 2.7.1 (not needed since v0.44) # ${REINPLACE_CMD} -e 's|"2.7"|"2.7.1"|' ${WRKSRC}/inc/Ver2Func.pm [FILE:52:descriptions/desc.single] Interface to the GNU Scientific Library using SWIG [FILE:99:distinfo] 7ee9f1f24b11a99872f19b5247bc1eb0ea53cf3ecd6883fe1d4d287b95fc76aa 26221844 Math-GSL-0.49.tar.gz [FILE:1090:patches/patch-inc_GSLBuilder.pm] --- inc/GSLBuilder.pm.orig 2024-07-29 11:34:50 UTC +++ inc/GSLBuilder.pm @@ -31,6 +31,8 @@ sub process_swig_files { my $swig_flags = $self->{properties}->{swig_flags}; my $swig_version = $self->{properties}->{swig_version}; + push @$gsl_ldflags, ("@EXT1@", "@EXT2@"); + if ($binding_ver ne $current_version) { print "VERSION MISMATCH: Let's hope for the best.\n"; } @@ -286,7 +288,7 @@ sub link_c { } } - my @lddlflags = $self->split_like_shell($cf->{lddlflags}); + my @lddlflags = $self->split_like_shell($Config{lddlflags}); my @shrp = $self->split_like_shell($cf->{shrpenv}); my @ld = $self->split_like_shell($cf->{ld} || $Config{cc}); @@ -318,7 +320,7 @@ sub compile_c { $cf->{installarchlib} = $Config{archlib}; - my @include_dirs = @{$p->{include_dirs}} + my @include_dirs = ( @{$p->{include_dirs}} && ( ${@{$p->{include_dirs}}}[0] ne "" ) ) ? map {"-I$_"} (@{$p->{include_dirs}}, catdir($cf->{installarchlib}, 'CORE')) : map {"-I$_"} ( catdir($cf->{installarchlib}, 'CORE') ) ;