You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-biology/augustus/augustus-2.5.5.ebuild

51 lines
1.1 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/augustus/augustus-2.5.5.ebuild,v 1.1 2011/06/23 14:58:14 jlec Exp $
EAPI=4
inherit eutils 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}"
src_prepare() {
epatch "${FILESDIR}"/${P}-sane-build.patch
tc-export CC CXX
}
src_compile() {
emake clean && emake
}
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
}