blob: e3679664d7904ed12f6e6b4d6b6b3cb9fcda9ee6 (
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
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit toolchain-funcs eutils
DESCRIPTION="Whole genome shotgun assembler (sparse de Bruijn graph) (now MEGAHIT)"
HOMEPAGE="https://github.com/aquaskyline/SOAPdenovo2
http://gigascience.biomedcentral.com/articles/10.1186/2047-217X-1-18"
SRC_URI="https://github.com/aquaskyline/SOAPdenovo2/archive/r241.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE=""
DEPEND="dev-libs/libaio
sci-biology/samtools:0.1-legacy"
RDEPEND="${DEPEND}"
S="${WORKDIR}"/"${PN}"-r"${PV}" # version is 2.04-r241
src_prepare(){
epatch "${FILESDIR}"/SOAPdenovo2-r241-Makefile.patch
# this will be partly covered by
# https://github.com/aquaskyline/SOAPdenovo2/pull/44
#
for f in Makefile standardPregraph/Makefile sparsePregraph/Makefile; do
sed -e 's#^INCLUDES =#INCLUDES = -I/usr/include/bam-0.1-legacy -I./inc#;s#-lbam#-lbam-0.1-legacy#' -i $f || die
done
rm -f standardPregraph/*.a standardPregraph/inc/sam.h standardPregraph/inc/bam.h standardPregraph/inc/bgzf.h \
sparsePregraph/inc/sam.h sparsePregraph/inc/bam.h sparsePregraph/inc/bgzf.h standardPregraph/inc/zlib.h \
standardPregraph/inc/zconf.h sparsePregraph/inc/zlib.h sparsePregraph/inc/zconf.h standardPregraph/inc/*.so \
sparsePregraph/*.a || die
default
}
src_compile(){
cd standardPregraph && emake -j1 63mer=1
cd ../standardPregraph && emake -j1 127mer=1
cd ../sparsePregraph && emake -j1
}
src_install(){
doman "${FILESDIR}"/SOAPdenovo2.1
}
|