-
Notifications
You must be signed in to change notification settings - Fork 163
/
augustus-3.3.ebuild
70 lines (57 loc) · 1.86 KB
/
augustus-3.3.ebuild
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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils toolchain-funcs
DESCRIPTION="Eukaryotic gene predictor"
HOMEPAGE="http://augustus.gobics.de/"
SRC_URI="http://bioinf.uni-greifswald.de/augustus/binaries/${P}.tar.gz"
LICENSE="GPL-3"
# temporary drop in licensing scheme, see http://stubber.math-inf.uni-greifswald.de/bioinf/augustus/binaries/HISTORY.TXT
# http://stubber.math-inf.uni-greifswald.de/bioinf/augustus/binaries/LICENCE.TXT
# LICENSE="Artistic"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"
# TODO: provide USE for mysql and sqlite, edit src/Makefile to reflect paths
# and common.mk
RDEPEND="
sci-mathematics/lpsolve
sci-libs/gsl
dev-libs/boost
sys-libs/zlib"
DEPEND="${RDEPEND}
sys-devel/flex"
S="${WORKDIR}/${PN}"
src_prepare() {
# TODO: do we need anything from the 2.5.5 patch?
# epatch "${FILESDIR}"/${P}-sane-build.patch
tc-export CC CXX
sed -e 's/ -O3//g' -i src/Makefile || die
# enable comparative gene prediction (needs c++11 compiler),
# this needs sci-mathematics/lpsolve
sed -e 's/^# COMPGENEPRED/COMPGENEPRED/' -i common.mk || die
# respect $EPREFIX at src/Makefile, auxprogs/bam2hints/Makefile, more?
find . -name Makefile | while read f; do \
sed -s 's#/usr/include#${EPREFIX}/usr/include#' -i $f || die;
done
}
src_compile() {
emake clean && default
}
src_install() {
dobin bin/*
# dobin src/{augustus,etraining,consensusFinder,curve2hints,fastBlockSearch,prepareAlign}
exeinto /usr/libexec/${PN}
doexe scripts/*.p*
insinto /usr/libexec/${PN}
doins scripts/*.conf
insinto /usr/share/${PN}
doins -r config
echo "AUGUSTUS_CONFIG_PATH=\"/usr/share/${PN}/config\"" > "${S}/99${PN}"
doenvd "${S}/99${PN}"
dodoc -r README.TXT HISTORY.TXT docs/*.{pdf,txt}
if use examples; then
insinto /usr/share/${PN}/
doins -r docs/tutorial examples
fi
}