sci-libs/htslib - 1.23.1 (gentoo)

Search

Install

Install this version:

emerge -a =sci-libs/htslib-1.23.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sci-libs/htslib-1.23.1

Or alternatively:

emerge --autounmask-write -a =sci-libs/htslib-1.23.1

Package Information

Description:
C library for high-throughput sequencing data formats
Homepage:
http://www.htslib.org/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.23.1 9 ~amd64 ~x86 0/3
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=9

inherit toolchain-funcs

DESCRIPTION="C library for high-throughput sequencing data formats"
HOMEPAGE="http://www.htslib.org/"
SRC_URI="https://github.com/samtools/${PN}/releases/download/${PV}/${P}.tar.bz2"

LICENSE="MIT"
SLOT="0/3"
KEYWORDS="~amd64 ~x86"
IUSE="+bzip2 curl +lzma"

RDEPEND="
	virtual/zlib:=
	bzip2? ( app-arch/bzip2 )
	curl? ( net-misc/curl )
	lzma? ( app-arch/xz-utils )"
DEPEND="${RDEPEND}"

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
}

src_configure() {
	econf \
		--disable-gcs \
		--disable-plugins \
		--disable-ref-cache \
		--disable-s3 \
		$(use_enable bzip2 bz2) \
		$(use_enable curl libcurl) \
		$(use_enable lzma)
}

src_compile() {
	emake AR="$(tc-getAR)"
}

src_install() {
	default

	# doesn't use libtool, can't disable static libraries
	find "${ED}" -name '*.a' -delete || die
}

USE Flags

Manage flags for this package: euse -i <flag> -p sci-libs/htslib | euse -E <flag> -p sci-libs/htslib | euse -D <flag> -p sci-libs/htslib

Global/Standard Flags

bzip2
Default: Enabled (+)
lzma
Default: Enabled (+)

Inherited Eclasses

Dependencies

DEPEND

	virtual/zlib:=
	bzip2? ( app-arch/bzip2 )
	curl? ( net-misc/curl )
	lzma? ( app-arch/xz-utils )

RDEPEND

	virtual/zlib:=
	bzip2? ( app-arch/bzip2 )
	curl? ( net-misc/curl )
	lzma? ( app-arch/xz-utils )

Manifest for 1.23.1

Type File Size Source URLs
DIST htslib-1.23.1.tar.bz2 4987046 bytes https://github.com/samtools/htslib/releases/download/1.23.1/htslib-1.23.1.tar.bz2