commit:     1aa92f582501092acc6789f0fe818856def206f0
Author:     Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Sun Apr 30 13:31:11 2017 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Sun Apr 30 13:31:11 2017 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=1aa92f58

sci-biology/bcftools: version bump

Compiles its own static build of htslib-1.4

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 sci-biology/bcftools/bcftools-1.4.ebuild | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/sci-biology/bcftools/bcftools-1.4.ebuild 
b/sci-biology/bcftools/bcftools-1.4.ebuild
new file mode 100644
index 000000000..b194609b6
--- /dev/null
+++ b/sci-biology/bcftools/bcftools-1.4.ebuild
@@ -0,0 +1,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
+}

Reply via email to