blob: 318dbc9d940c4344629316d8a613c4fc5b686a3e (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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=""
DEPEND="sci-libs/htslib
dev-lang/perl"
RDEPEND="${DEPEND}"
src_prepare(){
sed -e "s@gcc@$(tc-getCC)@" \
-e 's#prefix = /usr/local#prefix = /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 = /usr#' \
-e "s@CFLAGS = -g -Wall -O2@#CFLAGS = ${CFLAGS}@" -i htslib-*/Makefile || die
}
|