* [gentoo-commits] repo/gentoo:master commit in: dev-perl/Bio-DB-HTS/, dev-perl/Bio-DB-HTS/files/
@ 2018-05-01 15:14 Marek Szuba
0 siblings, 0 replies; 2+ messages in thread
From: Marek Szuba @ 2018-05-01 15:14 UTC (permalink / raw
To: gentoo-commits
commit: 0243d563e8de7d1eb26227665892172dbf3379f6
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Tue May 1 13:48:24 2018 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Tue May 1 15:13:53 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0243d563
dev-perl/Bio-DB-HTS: remove old
Package-Manager: Portage-2.3.24, Repoman-2.3.6
dev-perl/Bio-DB-HTS/Bio-DB-HTS-2.10.ebuild | 32 ---------------
dev-perl/Bio-DB-HTS/Manifest | 1 -
.../files/2.10-build_search_for_so.patch | 29 -------------
.../files/2.10-build_split_htslib_opts.patch | 48 ----------------------
4 files changed, 110 deletions(-)
diff --git a/dev-perl/Bio-DB-HTS/Bio-DB-HTS-2.10.ebuild b/dev-perl/Bio-DB-HTS/Bio-DB-HTS-2.10.ebuild
deleted file mode 100644
index 0a150300213..00000000000
--- a/dev-perl/Bio-DB-HTS/Bio-DB-HTS-2.10.ebuild
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-DIST_AUTHOR=AVULLO
-DIST_VERSION=2.10
-
-inherit perl-module
-
-DESCRIPTION="Perl bindings for sci-libs/htslib"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="test"
-
-RDEPEND="sci-biology/bioperl
- sci-libs/htslib:="
-DEPEND="${RDEPEND}
- dev-perl/Module-Build
- test? ( dev-perl/Test-LeakTrace )"
-
-PATCHES=(
- "${FILESDIR}/2.10-build_search_for_so.patch"
- "${FILESDIR}/2.10-build_split_htslib_opts.patch"
-)
-
-src_configure() {
- local myconf="--htslib-includedir=${EPREFIX}/usr/include/htslib --htslib-libdir=${EPREFIX}/usr/$(get_libdir)"
- perl-module_src_configure
-}
diff --git a/dev-perl/Bio-DB-HTS/Manifest b/dev-perl/Bio-DB-HTS/Manifest
index 6770bf66986..3eaf22e7a99 100644
--- a/dev-perl/Bio-DB-HTS/Manifest
+++ b/dev-perl/Bio-DB-HTS/Manifest
@@ -1,2 +1 @@
-DIST Bio-DB-HTS-2.10.tar.gz 5245650 BLAKE2B a52d9b1e19d5920d61dd365eacfd1a40726500e25a3ab516df5a1d59a7a9d79ce02db7a2145801b6af5df2c41c95e80b49a39db83d27fd7ff3cf88ba0e6a328d SHA512 4e7c01022d9edf48a0e0dcffcbccf34812f236d1b581760ac115c323de5779fb6212eb4ad7d1953811930a6137cc8f5f59028c73d645d1ca5fb6118dd846ad57
DIST Bio-DB-HTS-2.11.tar.gz 5250814 BLAKE2B d77ccacebf339a33ab106b997139cdbf79f6c28269a832305e660b28370aca82b4c9824773acdbf8f59b18dd61f40346a9870578dba7b5b989b0f3bc9ad14b35 SHA512 114d90fe92b684250183b45b4d23d2dd45ecdcb2fa54f7b1c311ed668d8e87953adb861f709a0a48ff2b873ce777b21bc3b557bafa0df216b9a71b59facff6fd
diff --git a/dev-perl/Bio-DB-HTS/files/2.10-build_search_for_so.patch b/dev-perl/Bio-DB-HTS/files/2.10-build_search_for_so.patch
deleted file mode 100644
index b3d11bbbe7a..00000000000
--- a/dev-perl/Bio-DB-HTS/files/2.10-build_search_for_so.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- a/Build.PL
-+++ b/Build.PL
-@@ -125,7 +125,7 @@
-
- my $hts_lib = "$root";
- my $hts_include = "$root/htslib";
-- if (-f "$hts_lib/libhts.a" && -f "$hts_include/hts.h") {
-+ if ((-f "$hts_lib/libhts.so" || -f "$hts_lib/libhts.a") && -f "$hts_include/hts.h") {
- $self->config_data('hts_lib' => $hts_lib);
- $self->config_data('hts_include' => $hts_include);
- return 1;
-@@ -145,7 +145,7 @@
-
- my $hts_lib = "$root/lib";
- my $hts_include = "$root/include/htslib";
-- if (-f "$hts_lib/libhts.a" && -f "$hts_include/hts.h") {
-+ if ((-f "$hts_lib/libhts.so" || -f "$hts_lib/libhts.a") && -f "$hts_include/hts.h") {
- $self->config_data('hts_lib' => $hts_lib);
- $self->config_data('hts_include' => $hts_include);
- return 1;
-@@ -164,7 +164,7 @@
- This module requires htslib (http://htslib/org)
- Install it if you have not done so already.
-
--This script will attempt to locate htslib by looking for hts.h and libhts.a in:
-+This script will attempt to locate htslib by looking for hts.h and libhts.so/libhts.a in:
-
- 1. --htslib command line argument
- 2. HTSLIB_DIR environment variable
diff --git a/dev-perl/Bio-DB-HTS/files/2.10-build_split_htslib_opts.patch b/dev-perl/Bio-DB-HTS/files/2.10-build_split_htslib_opts.patch
deleted file mode 100644
index d68bc54e40d..00000000000
--- a/dev-perl/Bio-DB-HTS/files/2.10-build_split_htslib_opts.patch
+++ /dev/null
@@ -1,48 +0,0 @@
---- a/Build.PL
-+++ b/Build.PL
-@@ -68,7 +68,13 @@
- # If either of these are set, we expect to find the htslib files there:
- # (They're explicitly set by the user, so we shouldn't fall back to
- # finding another copy somewhere else.)
-- if (my $dir = $self->args('htslib')) {
-+ if (my ($incdir, $libdir) = ($self->args('htslib-includedir'), $self->args('htslib-libdir'))) {
-+ return 1 if $self->find_hts_in_split_install_dirs($incdir, $libdir);
-+ $self->die_hts_not_found(
-+ "--htslib-includedir '$incdir' or --htslib-libdir '$libdir' command line parameters do not contain expected files\n"
-+ );
-+ }
-+ elsif (my $dir = $self->args('htslib')) {
- return 1 if $self->find_hts_in_build_dir($dir);
- return 1 if $self->find_hts_in_install_dir($dir);
- $self->die_hts_not_found(
-@@ -155,6 +161,22 @@
- }
- }
-
-+sub find_hts_in_split_install_dirs {
-+ my ($self, $hts_include, $hts_lib) = @_;
-+
-+ chomp($hts_include);
-+ chomp($hts_lib);
-+
-+ if ((-f "$hts_lib/libhts.so" || -f "$hts_lib/libhts.a") && -f "$hts_include/hts.h") {
-+ $self->config_data('hts_lib' => $hts_lib);
-+ $self->config_data('hts_include' => $hts_include);
-+ return 1;
-+ }
-+ else {
-+ return 0;
-+ }
-+}
-+
- sub die_hts_not_found {
- my ($self, $msg) = @_;
-
-@@ -166,6 +188,7 @@
-
- This script will attempt to locate htslib by looking for hts.h and libhts.so/libhts.a in:
-
-+ 0. --htslib-includedir and --htslib-libdir command line arguments
- 1. --htslib command line argument
- 2. HTSLIB_DIR environment variable
- 3. --prefix command line argument (which also sets installation location)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-perl/Bio-DB-HTS/, dev-perl/Bio-DB-HTS/files/
@ 2020-03-24 22:07 Marek Szuba
0 siblings, 0 replies; 2+ messages in thread
From: Marek Szuba @ 2020-03-24 22:07 UTC (permalink / raw
To: gentoo-commits
commit: 9e4c8752a1e910bd8fc65e500672de0019b2cffd
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 24 22:06:38 2020 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Tue Mar 24 22:07:43 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e4c8752
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 <AT> gentoo.org>
dev-perl/Bio-DB-HTS/Bio-DB-HTS-2.110.0.ebuild | 3 ++-
dev-perl/Bio-DB-HTS/Bio-DB-HTS-3.10.0.ebuild | 1 +
.../Bio-DB-HTS/files/2.11-build_env_ldflags.patch | 22 ++++++++++++++++++++++
3 files changed, 25 insertions(+), 1 deletion(-)
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 745f39851f3..76af57429d3 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 6b6736ef6c1..575961ddaf1 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 00000000000..eef07791418
--- /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');
+ }
+ }
+
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-24 22:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-24 22:07 [gentoo-commits] repo/gentoo:master commit in: dev-perl/Bio-DB-HTS/, dev-perl/Bio-DB-HTS/files/ Marek Szuba
-- strict thread matches above, loose matches on Subject: below --
2018-05-01 15:14 Marek Szuba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox