1 |
commit: 7d318bbea490d8786ab6336b355529b08df8ee38 |
2 |
Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
3 |
AuthorDate: Thu Jul 20 20:14:43 2017 +0000 |
4 |
Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
5 |
CommitDate: Fri Jul 28 20:05:19 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=7d318bbe |
7 |
|
8 |
sci-biology/bcftools: version bump |
9 |
|
10 |
This should be kept unmasked as it uses bundled static lib of htslib-1.5 |
11 |
so practically avoid dependency on sci-libs/htslib-1.5. |
12 |
|
13 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
14 |
|
15 |
sci-biology/bcftools/bcftools-1.5.ebuild | 29 +++++++++++++++++++++++++++++ |
16 |
1 file changed, 29 insertions(+) |
17 |
|
18 |
diff --git a/sci-biology/bcftools/bcftools-1.5.ebuild b/sci-biology/bcftools/bcftools-1.5.ebuild |
19 |
new file mode 100644 |
20 |
index 000000000..b194609b6 |
21 |
--- /dev/null |
22 |
+++ b/sci-biology/bcftools/bcftools-1.5.ebuild |
23 |
@@ -0,0 +1,29 @@ |
24 |
+# Copyright 1999-2017 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=5 |
28 |
+ |
29 |
+inherit toolchain-funcs |
30 |
+ |
31 |
+DESCRIPTION="Utilities for variant calling and manipulating VCF and BCF files" |
32 |
+HOMEPAGE="http://www.htslib.org" |
33 |
+SRC_URI="https://github.com/samtools/bcftools/releases/download/"${PV}"/"${P}".tar.bz2" |
34 |
+ |
35 |
+LICENSE="MIT" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64" |
38 |
+IUSE="" |
39 |
+ |
40 |
+# compiles bundled sci-libs/htslib-"${PV}" as a static library and links it into binaries |
41 |
+DEPEND="dev-lang/perl" |
42 |
+RDEPEND="${DEPEND}" |
43 |
+ |
44 |
+src_prepare(){ |
45 |
+ sed -e "s@gcc@$(tc-getCC)@" \ |
46 |
+ -e 's#prefix = /usr/local#prefix = "${EPREFIX}"/usr#' \ |
47 |
+ -e "s@CFLAGS = -g -Wall -Wc++-compat -O2@#CFLAGS = ${CFLAGS}@" -i Makefile || die |
48 |
+ |
49 |
+ sed -e "s@gcc@$(tc-getCC)@" \ |
50 |
+ -e 's#prefix = /usr/local#prefix = "${EPREFIX}"/usr#' \ |
51 |
+ -e "s@CFLAGS = -g -Wall -O2@#CFLAGS = ${CFLAGS}@" -i htslib-*/Makefile || die |
52 |
+} |