diff options
author | Marek Szuba <marecki@gentoo.org> | 2020-03-24 23:06:38 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-03-24 23:07:43 +0100 |
commit | 9e4c8752a1e910bd8fc65e500672de0019b2cffd (patch) | |
tree | ff093c08d4fb8c094bf5607d4a098f066363d5d5 /dev-perl/Bio-DB-HTS | |
parent | sys-fs/fuse: Bump to version 3.9.1 (diff) | |
download | gentoo-9e4c8752a1e910bd8fc65e500672de0019b2cffd.tar.gz gentoo-9e4c8752a1e910bd8fc65e500672de0019b2cffd.tar.bz2 gentoo-9e4c8752a1e910bd8fc65e500672de0019b2cffd.zip |
dev-perl/Bio-DB-HTS: respect LDFLAGS
Closes: https://bugs.gentoo.org/713816
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-perl/Bio-DB-HTS')
-rw-r--r-- | dev-perl/Bio-DB-HTS/Bio-DB-HTS-2.110.0.ebuild | 3 | ||||
-rw-r--r-- | dev-perl/Bio-DB-HTS/Bio-DB-HTS-3.10.0.ebuild | 1 | ||||
-rw-r--r-- | dev-perl/Bio-DB-HTS/files/2.11-build_env_ldflags.patch | 22 |
3 files changed, 25 insertions, 1 deletions
diff --git a/dev-perl/Bio-DB-HTS/Bio-DB-HTS-2.110.0.ebuild b/dev-perl/Bio-DB-HTS/Bio-DB-HTS-2.110.0.ebuild index 745f39851f38..76af57429d3d 100644 --- a/dev-perl/Bio-DB-HTS/Bio-DB-HTS-2.110.0.ebuild +++ b/dev-perl/Bio-DB-HTS/Bio-DB-HTS-2.110.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -24,6 +24,7 @@ DEPEND="${RDEPEND} test? ( dev-perl/Test-LeakTrace )" PATCHES=( + "${FILESDIR}/2.11-build_env_ldflags.patch" "${FILESDIR}/2.11-build_split_htslib_opts.patch" ) diff --git a/dev-perl/Bio-DB-HTS/Bio-DB-HTS-3.10.0.ebuild b/dev-perl/Bio-DB-HTS/Bio-DB-HTS-3.10.0.ebuild index 6b6736ef6c11..575961ddaf10 100644 --- a/dev-perl/Bio-DB-HTS/Bio-DB-HTS-3.10.0.ebuild +++ b/dev-perl/Bio-DB-HTS/Bio-DB-HTS-3.10.0.ebuild @@ -24,6 +24,7 @@ DEPEND="${RDEPEND} test? ( dev-perl/Test-LeakTrace )" PATCHES=( + "${FILESDIR}/2.11-build_env_ldflags.patch" "${FILESDIR}/2.11-build_split_htslib_opts.patch" ) diff --git a/dev-perl/Bio-DB-HTS/files/2.11-build_env_ldflags.patch b/dev-perl/Bio-DB-HTS/files/2.11-build_env_ldflags.patch new file mode 100644 index 000000000000..eef077914183 --- /dev/null +++ b/dev-perl/Bio-DB-HTS/files/2.11-build_env_ldflags.patch @@ -0,0 +1,22 @@ +--- a/Build.PL ++++ b/Build.PL +@@ -107,11 +107,17 @@ + my $hts_include = $self->config_data('hts_include'); + my $hts_lib = $self->config_data('hts_lib'); + my $static = $self->args('static'); ++ ++ my @env_linker_flags; ++ if ( defined $ENV{LDFLAGS} ) { ++ @env_linker_flags = split qr{\s+}, $ENV{LDFLAGS}; ++ } ++ + $self->include_dirs([$hts_include]); + if($static){ +- $self->extra_linker_flags("-L$hts_lib", '-lhts', '-lpthread', '-lz'); ++ $self->extra_linker_flags(@env_linker_flags, "-L$hts_lib", '-lhts', '-lpthread', '-lz'); + }else{ +- $self->extra_linker_flags("-L$hts_lib", "-Wl,-rpath,$hts_lib", '-lhts', '-lpthread', '-lz'); ++ $self->extra_linker_flags(@env_linker_flags, "-L$hts_lib", "-Wl,-rpath,$hts_lib", '-lhts', '-lpthread', '-lz'); + } + } + |