1 |
commit: cef6f206bd05567e80c11b9f9b1e850f74e06731 |
2 |
Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
3 |
AuthorDate: Fri Jul 28 19:23:07 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=cef6f206 |
7 |
|
8 |
sci-biology/nanopolish: new package |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
sci-biology/nanopolish/metadata.xml | 12 +++++++ |
13 |
sci-biology/nanopolish/nanopolish-9999.ebuild | 48 +++++++++++++++++++++++++++ |
14 |
2 files changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/sci-biology/nanopolish/metadata.xml b/sci-biology/nanopolish/metadata.xml |
17 |
new file mode 100644 |
18 |
index 000000000..f68a1b6fa |
19 |
--- /dev/null |
20 |
+++ b/sci-biology/nanopolish/metadata.xml |
21 |
@@ -0,0 +1,12 @@ |
22 |
+<?xml version="1.0" encoding="UTF-8"?> |
23 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
24 |
+<pkgmetadata> |
25 |
+ <maintainer type="person"> |
26 |
+ <email>mmokrejs@×××××××××××××××.cz</email> |
27 |
+ <name>Martin Mokrejs</name> |
28 |
+ </maintainer> |
29 |
+ <maintainer type="project"> |
30 |
+ <email>sci-biology@g.o</email> |
31 |
+ <name>Gentoo Biology Project</name> |
32 |
+ </maintainer> |
33 |
+</pkgmetadata> |
34 |
|
35 |
diff --git a/sci-biology/nanopolish/nanopolish-9999.ebuild b/sci-biology/nanopolish/nanopolish-9999.ebuild |
36 |
new file mode 100644 |
37 |
index 000000000..92c5f41d3 |
38 |
--- /dev/null |
39 |
+++ b/sci-biology/nanopolish/nanopolish-9999.ebuild |
40 |
@@ -0,0 +1,48 @@ |
41 |
+# Copyright 1999-2017 Gentoo Foundation |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+ |
44 |
+EAPI=6 |
45 |
+ |
46 |
+inherit git-r3 |
47 |
+ |
48 |
+DESCRIPTION="Signal-level analysis of Oxford Nanopore sequencing data" |
49 |
+HOMEPAGE="https://github.com/jts/nanopolish" |
50 |
+EGIT_REPO_URI="https://github.com/jts/nanopolish.git" |
51 |
+ |
52 |
+LICENSE="MIT" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="" |
55 |
+IUSE="" |
56 |
+ |
57 |
+# HDF5 is not thread safe by default and nanopolish currently requires a threadsafe HDF5. |
58 |
+# This is one reason we download the compile it ourself (the main reason is to make it |
59 |
+# easier for most users). The other options cxx, fortran, mpi are not needed by nanopolish |
60 |
+# (we use the C bindings in nanopolish only). |
61 |
+# The bundled version of htslib in is 1.2.1 as of now although 1.5.1 already exists |
62 |
+DEPEND=">=sci-libs/hdf5-1.8.14[threads] |
63 |
+ >=dev-cpp/eigen-3.2.5 |
64 |
+ sci-libs/htslib:0 |
65 |
+ sci-libs/fast5" |
66 |
+RDEPEND="${DEPEND} |
67 |
+ sci-biology/biopython" |
68 |
+ |
69 |
+src_prepare(){ |
70 |
+ default |
71 |
+ rm -rf hdf5* eigen htslib || die # TODO; zap also fast5 |
72 |
+} |
73 |
+ |
74 |
+src_compile(){ |
75 |
+ # >=gcc-4.8 but <gcc-7 is needed |
76 |
+ # https://github.com/jts/nanopolish/issues/145 |
77 |
+ emake HDF5="noinstall" EIGEN="nofetch" HTS_LIB=-lhts HTS_INCLUDE=-I/usr/include/htslib EIGEN_INCLUDE=-I/usr/include/eigen3 # TODO: FAST5_INCLUDE=-I/usr/include/fast5 |
78 |
+} |
79 |
+ |
80 |
+src_install(){ |
81 |
+ rm -rf lib || die # zap libs eventually compiled from the bundled copies |
82 |
+ dobin nanopolish |
83 |
+ # add scripts/ subdirectory to PATH |
84 |
+} |
85 |
+ |
86 |
+src_test(){ |
87 |
+ nanopolish_test || die |
88 |
+} |