Gentoo Archives: gentoo-commits

From: Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/SPAdes/
Date: Tue, 09 Jan 2018 22:03:22
Message-Id: 1515535382.4dd7fc5f1806465684c1101c88021ab3e1993fa2.mmokrejs@gentoo
1 commit: 4dd7fc5f1806465684c1101c88021ab3e1993fa2
2 Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Tue Jan 9 22:03:02 2018 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Tue Jan 9 22:03:02 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=4dd7fc5f
7
8 sci-biology/SPAdes: version bump
9
10 Try to follow the upstream's approach to compile and install
11 the tool. src_compile() therefore does also src_install()
12 into a DESTDIR.
13
14 Package-Manager: Portage-2.3.19, Repoman-2.3.6
15
16 sci-biology/SPAdes/SPAdes-3.11.1.ebuild | 72 +++++++++++++++++++++++++++++++++
17 1 file changed, 72 insertions(+)
18
19 diff --git a/sci-biology/SPAdes/SPAdes-3.11.1.ebuild b/sci-biology/SPAdes/SPAdes-3.11.1.ebuild
20 new file mode 100644
21 index 000000000..1842fca37
22 --- /dev/null
23 +++ b/sci-biology/SPAdes/SPAdes-3.11.1.ebuild
24 @@ -0,0 +1,72 @@
25 +# Copyright 1999-2018 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=6
29 +
30 +PYTHON_COMPAT=( python{2_7,3_{4,5}} )
31 +
32 +inherit eutils toolchain-funcs
33 +
34 +DESCRIPTION="De novo de Bruijn genome assembler overcoming uneven coverage"
35 +HOMEPAGE="http://cab.spbu.ru/software/spades"
36 +SRC_URI="
37 + http://spades.bioinf.spbau.ru/release${PV}/SPAdes-${PV}.tar.gz
38 + http://spades.bioinf.spbau.ru/release${PV}/manual.html -> ${P}_manual.html
39 + http://spades.bioinf.spbau.ru/release${PV}/dipspades_manual.html -> ${P}_dipspades_manual.html
40 + http://spades.bioinf.spbau.ru/release${PV}/rnaspades_manual.html -> ${P}_rnaspades_manual.html
41 + http://spades.bioinf.spbau.ru/release${PV}/truspades_manual.html -> ${P}_truspades_manual.html"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS=""
46 +IUSE=""
47 +
48 +DEPEND="
49 + sys-libs/zlib
50 + app-arch/bzip2
51 + dev-python/regex"
52 +RDEPEND="${DEPEND}"
53 +# BUG:
54 +# SPAdes uses bundled while modified copy of dev-libs/boost (only headers are used,
55 +# not *.so or *.a are even used)
56 +#
57 +# BUG: "${S}"/ext/src/ contains plenty of bundled 3rd-party tools. Drop them all and properly DEPEND on their
58 +# existing packages
59 +# nlopt
60 +# llvm
61 +# python_libs
62 +# bamtools
63 +# ConsensusCore
64 +# ssw
65 +# jemalloc
66 +# htrie
67 +# getopt_pp
68 +# cppformat
69 +# cityhash
70 +# samtools
71 +# bwa
72 +
73 +# BUG: "${S}"/ext/tools/ contains even two version of bwa, being installed as bwa-spades binary?
74 +# bwa-0.7.12
75 +# bwa-0.6.2
76 +
77 +pkg_pretend() {
78 + if [[ ${MERGE_TYPE} != binary ]]; then
79 + if [[ $(tc-getCXX) == *g++ ]] ; then
80 + if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 7 || $(gcc-major-version) -lt 4 ]] ; then
81 + eerror "You need at least sys-devel/gcc-4.7.0"
82 + die "You need at least sys-devel/gcc-4.7.0"
83 + fi
84 + fi
85 + fi
86 +}
87 +
88 +src_compile(){
89 + PREFIX="${ED}"/usr ./spades_compile.sh || die
90 +}
91 +
92 +src_install(){
93 + # BUG: move *.py files to standard site-packages/ subdirectories
94 + insinto /usr/share/"${PN}"
95 + dodoc "${DISTDIR}"/${P}_*manual.html
96 +}