summaryrefslogtreecommitdiff
path: root/sci-biology/augustus/augustus-2.5.5.ebuild
blob: ed345330c4a72f922fae63b81fef01d1dfed1fee (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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit toolchain-funcs

DESCRIPTION="Eukaryotic gene predictor"
HOMEPAGE="http://augustus.gobics.de/"
SRC_URI="http://augustus.gobics.de/binaries/${PN}.${PV}.tar.gz"

LICENSE="Artistic"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="examples"

S="${WORKDIR}/${PN}.${PV}"
PATCHES=( "${FILESDIR}"/${P}-sane-build.patch )

src_configure() {
	tc-export CC CXX
}

src_compile() {
	emake clean
	default
}

src_install() {
	dobin bin/*

	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\"" > 99${PN} || die
	doenvd 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
}