You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.0 KiB
52 lines
1.0 KiB
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
|
|
||
|
inherit toolchain-funcs
|
||
7 years ago
|
|
||
|
DESCRIPTION="C library for high-throughput sequencing data formats"
|
||
|
HOMEPAGE="http://www.htslib.org/"
|
||
|
SRC_URI="mirror://sourceforge/samtools/${PV}/${P}.tar.bz2"
|
||
|
|
||
|
LICENSE="MIT"
|
||
4 years ago
|
SLOT="0/3"
|
||
7 years ago
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||
4 years ago
|
IUSE="+bzip2 curl +lzma"
|
||
7 years ago
|
|
||
|
RDEPEND="
|
||
4 years ago
|
bzip2? ( app-arch/bzip2:= )
|
||
7 years ago
|
curl? ( net-misc/curl )
|
||
4 years ago
|
lzma? ( app-arch/xz-utils:= )"
|
||
7 years ago
|
DEPEND="${RDEPEND}"
|
||
|
|
||
4 years ago
|
src_prepare() {
|
||
|
default
|
||
|
|
||
|
# upstream injects LDFLAGS into the .pc file,
|
||
|
# which is a big nono for QA
|
||
|
sed -e '/^\(static_l\|Libs.private\|Requires.private\)/d' \
|
||
|
-i htslib.pc.in || die
|
||
|
}
|
||
|
|
||
7 years ago
|
src_configure() {
|
||
|
econf \
|
||
|
--disable-gcs \
|
||
|
--disable-plugins \
|
||
|
--disable-s3 \
|
||
|
$(use_enable bzip2 bz2) \
|
||
|
$(use_enable curl libcurl) \
|
||
|
$(use_enable lzma)
|
||
|
}
|
||
|
|
||
4 years ago
|
src_compile() {
|
||
|
emake AR="$(tc-getAR)"
|
||
|
}
|
||
|
|
||
7 years ago
|
src_install() {
|
||
|
default
|
||
|
|
||
4 years ago
|
# doesn't use libtool, can't disable static libraries
|
||
|
find "${ED}" -name '*.a' -delete || die
|
||
7 years ago
|
}
|