1 |
commit: 6948e2872a1c6182e8e325edd5e48a21bd713443 |
2 |
Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
3 |
AuthorDate: Sun Apr 30 13:23:16 2017 +0000 |
4 |
Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
5 |
CommitDate: Sun Apr 30 13:23:16 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=6948e287 |
7 |
|
8 |
sci-biology/samtools: version bump |
9 |
|
10 |
Compiles fine against htslib-1.4 but because htslib-1.4 is not KEYWORDed |
11 |
keeping samtools-1.4 masked as well. |
12 |
|
13 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
14 |
|
15 |
sci-biology/samtools/samtools-1.4.ebuild | 82 ++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 82 insertions(+) |
17 |
|
18 |
diff --git a/sci-biology/samtools/samtools-1.4.ebuild b/sci-biology/samtools/samtools-1.4.ebuild |
19 |
new file mode 100644 |
20 |
index 000000000..b0bd40b82 |
21 |
--- /dev/null |
22 |
+++ b/sci-biology/samtools/samtools-1.4.ebuild |
23 |
@@ -0,0 +1,82 @@ |
24 |
+# Copyright 1999-2017 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=5 |
28 |
+ |
29 |
+PYTHON_COMPAT=( python2_7 ) |
30 |
+ |
31 |
+inherit eutils multilib python-r1 toolchain-funcs |
32 |
+ |
33 |
+DESCRIPTION="Utilities for SAM (Sequence Alignment/Map) and BAM files" |
34 |
+HOMEPAGE="http://www.htslib.org/" |
35 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" |
36 |
+ |
37 |
+LICENSE="MIT" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="" |
40 |
+# KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" |
41 |
+IUSE="examples" |
42 |
+ |
43 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
44 |
+ |
45 |
+CDEPEND=" |
46 |
+ sys-libs/ncurses:0= |
47 |
+ >=sci-libs/htslib-${PV}" |
48 |
+ |
49 |
+RDEPEND="${CDEPEND} |
50 |
+ dev-lang/lua |
51 |
+ dev-lang/perl" |
52 |
+DEPEND="${CDEPEND} |
53 |
+ virtual/pkgconfig" |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ find htslib-* -delete || die |
57 |
+ |
58 |
+ sed -i 's~/software/bin/python~/usr/bin/env python~' "${S}"/misc/varfilter.py || die |
59 |
+ |
60 |
+ tc-export CC AR |
61 |
+ |
62 |
+ sed \ |
63 |
+ -e '/htslib.mk/d' \ |
64 |
+ -i Makefile || die |
65 |
+} |
66 |
+ |
67 |
+src_compile() { |
68 |
+ local mymakeargs=( |
69 |
+ LIBCURSES="$($(tc-getPKG_CONFIG) --libs ncurses)" |
70 |
+ HTSDIR="${EPREFIX}/usr/include" |
71 |
+ HTSLIB=$($(tc-getPKG_CONFIG) --libs htslib) |
72 |
+ BAMLIB="libbam.so" |
73 |
+ CC=$(tc-getCC) CFLAGS="${CFLAGS}" |
74 |
+ ) |
75 |
+ emake "${mymakeargs[@]}" |
76 |
+} |
77 |
+ |
78 |
+src_test() { |
79 |
+ local mymakeargs=( |
80 |
+ LIBCURSES="$($(tc-getPKG_CONFIG) --libs ncurses)" |
81 |
+ HTSDIR="${EPREFIX}/usr/include" |
82 |
+ HTSLIB=$($(tc-getPKG_CONFIG) --libs htslib) |
83 |
+ BAMLIB="libbam.so" |
84 |
+ ) |
85 |
+ LD_LIBRARY_PATH="${S}" emake "${mymakeargs[@]}" test |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ dobin samtools $(find misc -type f -executable) |
90 |
+ |
91 |
+ python_replicate_script "${ED}"/usr/bin/varfilter.py |
92 |
+ #dolib.so libbam.so* |
93 |
+ dolib libbam.a |
94 |
+ |
95 |
+ insinto /usr/include/bam |
96 |
+ doins *.h |
97 |
+ |
98 |
+ doman ${PN}.1 |
99 |
+ dodoc AUTHORS NEWS README |
100 |
+ |
101 |
+ if use examples; then |
102 |
+ insinto /usr/share/${PN} |
103 |
+ doins -r examples |
104 |
+ fi |
105 |
+} |