blob: 7d54bf273ac0715a4a7abd1c76ddca3040923de2 (
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
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit flag-o-matic toolchain-funcs
DESCRIPTION="A suite of algorithms for ecological bioinformatics"
HOMEPAGE="https://mothur.org/"
SRC_URI="https://github.com/mothur/mothur/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="boost gsl hdf5 mpi +readline"
RDEPEND="
sci-biology/uchime
boost? ( dev-libs/boost:=[zlib] )
gsl? ( sci-libs/gsl:= )
hdf5? ( sci-libs/hdf5:=[cxx] )
mpi? ( virtual/mpi )
"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-1.48.0-build.patch
)
src_configure() {
use mpi && export CXX=mpicxx || tc-export CXX
use amd64 && append-cppflags -DBIT_VERSION
}
src_compile() {
# bug #862273
append-flags -fno-strict-aliasing
filter-lto
# USEBOOST - link with boost libraries. Must install boost. Allows the make.contigs command to read .gz files.
# USEHDF5 - link with HDF5cpp libraries. Must install HDF5. Allows the biom.info command to read Biom format 2.0.
# USEGSL - link with GNU Scientific libraries. Must install GSL. Allows the estimiator.single command to find diversity estimates.
emake \
USEBOOST=$(usex boost) \
USEHDF5=$(usex hdf5) \
USEGSL=$(usex gsl) \
USEMPI=$(usex mpi) \
USEREADLINE=$(usex readline) \
OPTIMIZE=no
}
src_install() {
dobin mothur
}
|