blob: b194609b6dde5276834671cf5060d3e2d86d49d3 (
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
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit toolchain-funcs
DESCRIPTION="Utilities for variant calling and manipulating VCF and BCF files"
HOMEPAGE="http://www.htslib.org"
SRC_URI="https://github.com/samtools/bcftools/releases/download/"${PV}"/"${P}".tar.bz2"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
# compiles bundled sci-libs/htslib-"${PV}" as a static library and links it into binaries
DEPEND="dev-lang/perl"
RDEPEND="${DEPEND}"
src_prepare(){
sed -e "s@gcc@$(tc-getCC)@" \
-e 's#prefix = /usr/local#prefix = "${EPREFIX}"/usr#' \
-e "s@CFLAGS = -g -Wall -Wc++-compat -O2@#CFLAGS = ${CFLAGS}@" -i Makefile || die
sed -e "s@gcc@$(tc-getCC)@" \
-e 's#prefix = /usr/local#prefix = "${EPREFIX}"/usr#' \
-e "s@CFLAGS = -g -Wall -O2@#CFLAGS = ${CFLAGS}@" -i htslib-*/Makefile || die
}
|