Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/htslib/
Date: Sun, 03 Oct 2021 17:41:51
Message-Id: 1633282896.a7e45d492762de669f6e84b5df12aaf95cae1a1d.soap@gentoo
1 commit: a7e45d492762de669f6e84b5df12aaf95cae1a1d
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 3 17:41:36 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 3 17:41:36 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7e45d49
7
8 sci-libs/htslib: add 1.13
9
10 Bug: https://bugs.gentoo.org/799788
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 sci-libs/htslib/Manifest | 1 +
14 sci-libs/htslib/htslib-1.13.ebuild | 52 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 53 insertions(+)
16
17 diff --git a/sci-libs/htslib/Manifest b/sci-libs/htslib/Manifest
18 index 3aac577a0cf..9e65f247fdf 100644
19 --- a/sci-libs/htslib/Manifest
20 +++ b/sci-libs/htslib/Manifest
21 @@ -1 +1,2 @@
22 DIST htslib-1.10.2.tar.bz2 1306320 BLAKE2B f877bd9c160921f498f4160f687094a1a369732bc9f61cd94a3c9ca311fa9f865505a205e38e0d348a1010b627f1ef07b590cd7e69c945df1d804133b17b2fd1 SHA512 3ecb83b0abccf731cd42b889e352e10dd922524f6e78bcafb04f8c6c71457b0dc1f5f22690b36f03cce7d97a6a905db286243ef4858138068dcac368e4ae1075
23 +DIST htslib-1.13.tar.bz2 4226834 BLAKE2B ae1f64e564f0f7bea80ea9d276b5d5b2b04fa3c8bd58f2c68966225b4324962f34d8a26b74267ab90dc530dfced1b9c01702d25918fd7a7c74e13913f00d5007 SHA512 16a3d61c115b71406bc4411a0c1176909166b52c4f7bb11614e398df4defaec4d09763413053e4d0d5916921c866d20019096d8fed866e77f9f1cafbd1e95b16
24
25 diff --git a/sci-libs/htslib/htslib-1.13.ebuild b/sci-libs/htslib/htslib-1.13.ebuild
26 new file mode 100644
27 index 00000000000..cfd9cfb3263
28 --- /dev/null
29 +++ b/sci-libs/htslib/htslib-1.13.ebuild
30 @@ -0,0 +1,52 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit toolchain-funcs
37 +
38 +DESCRIPTION="C library for high-throughput sequencing data formats"
39 +HOMEPAGE="http://www.htslib.org/"
40 +SRC_URI="mirror://sourceforge/samtools/${PV}/${P}.tar.bz2"
41 +
42 +LICENSE="MIT"
43 +SLOT="0/3"
44 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
45 +IUSE="+bzip2 curl +lzma"
46 +
47 +RDEPEND="
48 + sys-libs/zlib
49 + bzip2? ( app-arch/bzip2 )
50 + curl? ( net-misc/curl )
51 + lzma? ( app-arch/xz-utils )"
52 +DEPEND="${RDEPEND}"
53 +
54 +src_prepare() {
55 + default
56 +
57 + # upstream injects LDFLAGS into the .pc file,
58 + # which is a big nono for QA
59 + sed -e '/^\(static_l\|Libs.private\|Requires.private\)/d' \
60 + -i htslib.pc.in || die
61 +}
62 +
63 +src_configure() {
64 + econf \
65 + --disable-gcs \
66 + --disable-plugins \
67 + --disable-s3 \
68 + $(use_enable bzip2 bz2) \
69 + $(use_enable curl libcurl) \
70 + $(use_enable lzma)
71 +}
72 +
73 +src_compile() {
74 + emake AR="$(tc-getAR)"
75 +}
76 +
77 +src_install() {
78 + default
79 +
80 + # doesn't use libtool, can't disable static libraries
81 + find "${ED}" -name '*.a' -delete || die
82 +}