aboutsummaryrefslogtreecommitdiff
blob: 6593d97edef4a70920570505f9d09c5f591fb109 (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

COMMIT="aee525029bb661b633097e989c6fe2eaa93d2def"

DESCRIPTION="EST sequence clustering: d2 function, edit distance, common word heuristics"
HOMEPAGE="https://shaze.github.io/wcdest/"
SRC_URI="https://github.com/shaze/wcdest/archive/${COMMIT}.tar.gz -> ${P}.tar.gz
	http://www.bioinf.wits.ac.za/~scott/wcd.html
	http://www.bioinf.wits.ac.za/~scott/wcd.pdf"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""

IUSE="doc mpi threads"

# This code (0.4.1 at least) has been tested using LAMMPI (RedHat, Suse,
# MacOS X), MPICH (Ubuntu) and MVAPICH (Suse)
DEPEND="mpi? ( sys-cluster/mpich2 )"

PATCHES=(
	"${FILESDIR}"/${PN}-0.6.3-ldflags.patch
	"${FILESDIR}"/${PN}-0.6.3-impl-decl.patch
)

S="${WORKDIR}/${PN}est-${COMMIT}/code"

src_configure(){
	econf \
		$(use_enable mpi) \
		$(use_enable threads pthreads)
}

src_compile() {
	default
	use doc && emake pdf info html
}

src_install() {
	use doc && HTML_DOCS=( doc/wcd.html doc/wcd.pdf doc/wcd.texi )
	emake install PREFIX=/usr LIBDIR="${D}"/usr/$(get_libdir)
	dodoc "${DISTDIR}"/wcd.*
}