aboutsummaryrefslogtreecommitdiff
blob: f7abf6dc9475ddb3c6e67c490ed6d4624665d8f6 (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
55
56
57
58
59
60
61
62
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

AUTOTOOLS_AUTORECONF=true

inherit autotools-utils flag-o-matic multilib

DESCRIPTION="EST sequence clustering: d2 function, edit distance, common word heuristics"
HOMEPAGE="http://code.google.com/p/wcdest/"
SRC_URI="http://wcdest.googlecode.com/files/wcd-express-${PV}.tar.gz -> ${P}.tar.gz
	http://www.bioinf.wits.ac.za/~scott/wcd.html
	http://www.bioinf.wits.ac.za/~scott/wcd.pdf"

S="${WORKDIR}"/wcd-express-"${PV}"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
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 )"
RDEPEND=""

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

src_prepare() {
	rm -r src/*o src/.deps || die
	autotools-utils_src_prepare
}

src_configure(){
	local myeconfargs=()
	use mpi && myeconfargs+=( --enable-mpi )

	use threads && myeconfargs+=( --enable-pthreads )

	autotools-utils_src_configure
}

src_compile() {
	autotools-utils_src_compile
	use doc && autotools-utils_src_compile pdf info html
}

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

# consider providing the EMBOSS wrapper for wcd
# https://code.google.com/p/wcdest/downloads/detail?name=wcd_emboss_wrap_001.tar.gz

# also consider ESTsim
# https://code.google.com/p/wcdest/downloads/detail?name=estsim_distrib.tar.gz&can=2&q=