Diff augustus-2.5.5 with a augustus-3.4.0-r3

/usr/portage/sci-biology/augustus/augustus-3.4.0-r3.ebuild 2023-10-09 14:52:34.996368489 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit toolchain-funcs
6
DOCS_BUILDER="doxygen"
7
DOCS_CONFIG_NAME="doxygen.conf"
8
inherit docs toolchain-funcs
7 9

  
8 10
DESCRIPTION="Eukaryotic gene predictor"
9
HOMEPAGE="http://augustus.gobics.de/"
10
SRC_URI="http://augustus.gobics.de/binaries/${PN}.${PV}.tar.gz"
11
HOMEPAGE="https://bioinf.uni-greifswald.de/augustus/"
12
SRC_URI="https://github.com/Gaius-Augustus/Augustus/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
13
S="${WORKDIR}/${P^}"
11 14

  
12 15
LICENSE="Artistic"
13 16
SLOT="0"
14
KEYWORDS="amd64 ~x86"
15
IUSE="examples"
17
KEYWORDS="~amd64 ~x86"
16 18

  
17
S="${WORKDIR}/${PN}.${PV}"
18
PATCHES=( "${FILESDIR}"/${P}-sane-build.patch )
19
RDEPEND="
20
	dev-db/sqlite:3
21
	dev-db/mysql++:=
22
	dev-db/mysql-connector-c:=
23
	dev-libs/boost:=[zlib]
24
	sci-biology/bamtools:=
25
	sci-biology/samtools:0
26
	sci-libs/gsl:=
27
	sci-libs/htslib:=
28
	sci-libs/suitesparse
29
	sci-mathematics/lpsolve:=
30
	sys-libs/zlib
31
"
32
DEPEND="${RDEPEND}"
19 33

  
20
src_configure() {
34
src_compile() {
21 35
	tc-export CC CXX
22
}
23 36

  
24
src_compile() {
25
	emake clean
26
	default
37
	emake LINK.cc="$(tc-getCXX)"
38

  
39
	docs_compile
27 40
}
28 41

  
29 42
src_install() {
30
	dobin bin/*
31

  
32
	exeinto /usr/libexec/${PN}
33
	doexe scripts/*.p*
34

  
35
	insinto /usr/libexec/${PN}
36
	doins scripts/*.conf
37

  
38
	insinto /usr/share/${PN}
39
	doins -r config
40

  
41
	echo "AUGUSTUS_CONFIG_PATH=\"/usr/share/${PN}/config\"" > 99${PN} || die
42
	doenvd 99${PN}
43

  
44
	dodoc -r README.TXT HISTORY.TXT docs/*.{pdf,txt}
45

  
46
	if use examples; then
47
		insinto /usr/share/${PN}/
48
		doins -r docs/tutorial examples
49
	fi
43
	einstalldocs
44
	# from upstream Makefile install:
45
	dodir "opt/${P}"
46
	cp -a config bin scripts "${ED}/opt/${P}" || die
47
	local file
48
	for file in bin/*; do
49
		dosym "../${P}/${file}" "/opt/${file}"
50
	done
50 51
}
Thank you!