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/abyss/
Date: Thu, 22 Apr 2021 07:23:37
Message-Id: 1619076196.6c252245a4ab18f5d211723f9078682dfa06bd00.mmokrejs@gentoo
1 commit: 6c252245a4ab18f5d211723f9078682dfa06bd00
2 Author: Martin Mokrejs <mmokrejs <AT> gmail <DOT> com>
3 AuthorDate: Thu Apr 22 07:23:16 2021 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Thu Apr 22 07:23:16 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=6c252245
7
8 sci-biology/abyss: add 2.3.1 release but keep patches
9
10 The PathConsensus crash fixes were not included by upstream,
11 keep them.
12
13 Package-Manager: Portage-3.0.18, Repoman-3.0.3
14 Signed-off-by: Martin Mokrejs <mmokrejs <AT> gmail.com>
15
16 sci-biology/abyss/abyss-2.3.1.ebuild | 58 ++++++++++++++++++++++++++++++++++++
17 1 file changed, 58 insertions(+)
18
19 diff --git a/sci-biology/abyss/abyss-2.3.1.ebuild b/sci-biology/abyss/abyss-2.3.1.ebuild
20 new file mode 100644
21 index 000000000..d9134813b
22 --- /dev/null
23 +++ b/sci-biology/abyss/abyss-2.3.1.ebuild
24 @@ -0,0 +1,58 @@
25 +# Copyright 1999-2021 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=7
29 +
30 +inherit autotools toolchain-funcs
31 +
32 +DESCRIPTION="Assembly By Short Sequences - a de novo, parallel, paired-end sequence assembler"
33 +HOMEPAGE="http://www.bcgsc.ca/platform/bioinfo/software/abyss/"
34 +SRC_URI="https://github.com/bcgsc/abyss/archive/${PV}.tar.gz -> ${P}.tar.gz"
35 +
36 +LICENSE="GPL-3"
37 +SLOT="0"
38 +IUSE="+mpi openmp misc-haskell"
39 +KEYWORDS="~amd64 ~x86"
40 +
41 +RDEPEND="
42 + dev-cpp/sparsehash
43 + dev-libs/boost:=
44 + misc-haskell? (
45 + dev-libs/gmp:0=
46 + dev-libs/libffi:0=
47 + )
48 + mpi? ( sys-cluster/openmpi )"
49 +DEPEND="${RDEPEND}
50 + misc-haskell? (
51 + dev-lang/ghc
52 + )"
53 +
54 +PATCHES=( "${FILESDIR}"/${PN}-2.2.5-PathConsensus-assert.patch
55 + "${FILESDIR}"/${PN}-2.2.5-ContigProperties.h.patch
56 + )
57 +
58 +# todo: --enable-maxk=N configure option
59 +# todo: fix automagic mpi toggling
60 +
61 +pkg_pretend() {
62 + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
63 +}
64 +
65 +pkg_setup() {
66 + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
67 +}
68 +
69 +src_prepare() {
70 + default
71 + sed -i -e "s/-Werror//" configure.ac || die #365195
72 + sed -i -e "/dist_pkgdoc_DATA/d" Makefile.am || die
73 + eautoreconf
74 +}
75 +
76 +src_configure() {
77 + # disable building haskell tool Misc/samtobreak
78 + # unless request by user: bug #534412
79 + use misc-haskell || export ac_cv_prog_ac_ct_GHC=
80 +
81 + econf $(use_enable openmp) --enable-maxk=256
82 +}