blob: 9e9bf2160310cbf9f9a1c18ec4dfae8caafe63dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils flag-o-matic fortran-2 toolchain-funcs
DESCRIPTION="A suite of algorithms for ecological bioinformatics"
HOMEPAGE="https://www.mothur.org/"
SRC_URI="https://www.mothur.org/w/images/c/cb/Mothur.${PV}.zip -> ${P}.zip"
LICENSE="GPL-3"
SLOT="0"
IUSE="mpi +readline"
KEYWORDS="amd64 x86"
RDEPEND="
sci-biology/uchime
mpi? ( virtual/mpi )"
DEPEND="${RDEPEND}
app-arch/unzip"
S=${WORKDIR}/Mothur.source
pkg_setup() {
fortran-2_pkg_setup
use mpi && export CXX=mpicxx || export CXX=$(tc-getCXX)
use amd64 && append-cppflags -DBIT_VERSION
}
src_prepare() {
epatch \
"${FILESDIR}"/${P}-makefile.patch \
"${FILESDIR}"/${P}-overflows.patch
}
src_compile() {
emake USEMPI=$(usex mpi) USEREADLINE=$(usex readline)
}
src_install() {
dobin ${PN}
}
|