Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Bio-DB-HTS/files/, dev-perl/Bio-DB-HTS/
Date: Thu, 26 Apr 2018 11:31:15
Message-Id: 1524742228.9a9cafec65f1eb3de700a077dae30537993823cc.marecki@gentoo
1 commit: 9a9cafec65f1eb3de700a077dae30537993823cc
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 26 11:25:15 2018 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 26 11:30:28 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a9cafec
7
8 dev-perl/Bio-DB-HTS: new package
9
10 Perl bindings for sci-libs/htslib, used by e.g. Ensembl.
11
12 Package-Manager: Portage-2.3.24, Repoman-2.3.6
13
14 dev-perl/Bio-DB-HTS/Bio-DB-HTS-2.10.ebuild | 30 ++++++++++++++++++++++
15 dev-perl/Bio-DB-HTS/Manifest | 1 +
16 .../files/2.10-build_search_for_so.patch | 29 +++++++++++++++++++++
17 dev-perl/Bio-DB-HTS/metadata.xml | 17 ++++++++++++
18 4 files changed, 77 insertions(+)
19
20 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
21 new file mode 100644
22 index 00000000000..02c38cd34f3
23 --- /dev/null
24 +++ b/dev-perl/Bio-DB-HTS/Bio-DB-HTS-2.10.ebuild
25 @@ -0,0 +1,30 @@
26 +# Copyright 1999-2018 Gentoo Foundation
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=6
30 +
31 +DIST_AUTHOR=AVULLO
32 +DIST_VERSION=2.10
33 +
34 +inherit perl-module
35 +
36 +DESCRIPTION="Perl bindings for sci-libs/htslib"
37 +
38 +LICENSE="Apache-2.0"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86"
41 +IUSE="test"
42 +
43 +RDEPEND="sci-libs/htslib:="
44 +DEPEND="${RDEPEND}
45 + dev-perl/Module-Build
46 + test? ( dev-perl/Test-LeakTrace )"
47 +
48 +PATCHES=(
49 + "${FILESDIR}/2.10-build_search_for_so.patch"
50 +)
51 +
52 +src_configure() {
53 + local myconf="--htslib=${EPREFIX}/usr"
54 + perl-module_src_configure
55 +}
56
57 diff --git a/dev-perl/Bio-DB-HTS/Manifest b/dev-perl/Bio-DB-HTS/Manifest
58 new file mode 100644
59 index 00000000000..536315137fa
60 --- /dev/null
61 +++ b/dev-perl/Bio-DB-HTS/Manifest
62 @@ -0,0 +1 @@
63 +DIST Bio-DB-HTS-2.10.tar.gz 5245650 BLAKE2B a52d9b1e19d5920d61dd365eacfd1a40726500e25a3ab516df5a1d59a7a9d79ce02db7a2145801b6af5df2c41c95e80b49a39db83d27fd7ff3cf88ba0e6a328d SHA512 4e7c01022d9edf48a0e0dcffcbccf34812f236d1b581760ac115c323de5779fb6212eb4ad7d1953811930a6137cc8f5f59028c73d645d1ca5fb6118dd846ad57
64
65 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
66 new file mode 100644
67 index 00000000000..b3d11bbbe7a
68 --- /dev/null
69 +++ b/dev-perl/Bio-DB-HTS/files/2.10-build_search_for_so.patch
70 @@ -0,0 +1,29 @@
71 +--- a/Build.PL
72 ++++ b/Build.PL
73 +@@ -125,7 +125,7 @@
74 +
75 + my $hts_lib = "$root";
76 + my $hts_include = "$root/htslib";
77 +- if (-f "$hts_lib/libhts.a" && -f "$hts_include/hts.h") {
78 ++ if ((-f "$hts_lib/libhts.so" || -f "$hts_lib/libhts.a") && -f "$hts_include/hts.h") {
79 + $self->config_data('hts_lib' => $hts_lib);
80 + $self->config_data('hts_include' => $hts_include);
81 + return 1;
82 +@@ -145,7 +145,7 @@
83 +
84 + my $hts_lib = "$root/lib";
85 + my $hts_include = "$root/include/htslib";
86 +- if (-f "$hts_lib/libhts.a" && -f "$hts_include/hts.h") {
87 ++ if ((-f "$hts_lib/libhts.so" || -f "$hts_lib/libhts.a") && -f "$hts_include/hts.h") {
88 + $self->config_data('hts_lib' => $hts_lib);
89 + $self->config_data('hts_include' => $hts_include);
90 + return 1;
91 +@@ -164,7 +164,7 @@
92 + This module requires htslib (http://htslib/org)
93 + Install it if you have not done so already.
94 +
95 +-This script will attempt to locate htslib by looking for hts.h and libhts.a in:
96 ++This script will attempt to locate htslib by looking for hts.h and libhts.so/libhts.a in:
97 +
98 + 1. --htslib command line argument
99 + 2. HTSLIB_DIR environment variable
100
101 diff --git a/dev-perl/Bio-DB-HTS/metadata.xml b/dev-perl/Bio-DB-HTS/metadata.xml
102 new file mode 100644
103 index 00000000000..95abbb699ad
104 --- /dev/null
105 +++ b/dev-perl/Bio-DB-HTS/metadata.xml
106 @@ -0,0 +1,17 @@
107 +<?xml version="1.0" encoding="UTF-8"?>
108 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
109 +<pkgmetadata>
110 + <maintainer type="person">
111 + <email>marecki@g.o</email>
112 + <name>Marek Szuba</name>
113 + </maintainer>
114 + <maintainer type="project">
115 + <email>sci-biology@g.o</email>
116 + <name>Gentoo Biology Project</name>
117 + </maintainer>
118 + <upstream>
119 + <remote-id type="github">Ensembl/Bio-DB-HTS</remote-id>
120 + <remote-id type="cpan">Bio-DB-HTS</remote-id>
121 + <remote-id type="cpan-module">Bio::DB::HTS</remote-id>
122 + </upstream>
123 +</pkgmetadata>