blob: 1793b2eaeb718f17149784c64721244d49058634 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/allpaths/allpaths-3.1-r1.ebuild,v 1.2 2012/11/19 10:27:46 jlec Exp $
EAPI=4
inherit base multilib
DESCRIPTION="De novo assembly of whole-genome shotgun microreads"
HOMEPAGE="http://www.broadinstitute.org/science/programs/genome-biology/crd"
SRC_URI="
ftp://ftp.broad.mit.edu/pub/crd/ALLPATHS/Release-3-0/allpaths-${PV}.tgz
ftp://ftp.broad.mit.edu/pub/crd/ALLPATHS/Release-3-0/AllPathsV3_Manual_r1.0.docx"
LICENSE="Whitehead-MIT"
SLOT="3"
KEYWORDS="~amd64 ~x86"
IUSE="openmp"
DEPEND="!sci-biology/allpathslg"
RDEPEND="${DEPEND}"
S="${WORKDIR}/AllPaths"
PATCHES=(
"${FILESDIR}"/${P}-gcc4.7.patch
"${FILESDIR}"/${P}-boost-1.50.patch
"${FILESDIR}"/${P}-linking.patch
)
pkg_setup() {
if use openmp; then
if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then
ewarn "OpenMP is not available in your current selected gcc"
die "need openmp capable gcc"
fi
fi
}
src_prepare() {
sed \
-e "s:-O3:${CXXFLAGS}:g" \
-e 's:-ggdb3::g' \
-i Makefile* || die
if use openmp; then
sed \
-e '/OPEN_MP/s:no:yes:g' \
-i Makefile.in || die
fi
base_src_prepare
export L_FLAGS="${LDFLAGS}"
}
src_configure() {
econf \
--with-boost="${EPREFIX}/usr" \
--with-boost-libdir="${EPREFIX}/usr/$(get_libdir)"
}
src_compile() {
base_src_compile
emake install_scripts
}
src_install() {
exeinto /usr/libexec/${P}/
find bin -type f -executable | xargs doexe
echo "PATH=\"/usr/libexec/${P}/\"" > "${S}/50${P}"
doenvd "${S}/50${P}" || die
dosym /usr/libexec/${P}/RunAllPaths3G /usr/bin/RunAllPaths3G
dodoc "${DISTDIR}/AllPathsV3_Manual_r1.0.docx"
}
|