blob: 6226addaf40be8d4ab468df0f42c6f5cbec71ca8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/htslib/htslib-1.1.ebuild,v 1.2 2015/01/06 12:14:13 jlec Exp $
EAPI=5
inherit multilib toolchain-funcs
DESCRIPTION="C library for high-throughput sequencing data formats"
HOMEPAGE="http://www.htslib.org/"
SRC_URI="mirror://sourceforge/samtools/${PV}/${P}.tar.bz2"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="static-libs"
src_prepare() {
sed \
-e "/libdir/s:lib$:$(get_libdir):g" \
-i Makefile || die
}
src_compile() {
emake \
AR="$(tc-getAR)" \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}"
}
src_install() {
emake \
DESTDIR="${D}" \
prefix="${EPREFIX}/usr" \
install
if ! use static-libs; then
find "${ED}" -type f -name "*.a" -delete || die
fi
dodoc README
}
|