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/trnascan-se/trnascan-se-1.23-r1.ebuild

49 lines
1.3 KiB

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/trnascan-se/trnascan-se-1.23-r1.ebuild,v 1.6 2009/08/05 18:45:47 ssuominen Exp $
inherit eutils toolchain-funcs
DESCRIPTION="tRNA detection in large-scale genome sequences"
HOMEPAGE="http://selab.wustl.edu/cgi-bin/selab.pl?mode=software#trnascan"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE=""
RDEPEND="dev-lang/perl"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-glibc-2.10.patch
sed -e "s%BINDIR = \$(HOME)/bin%BINDIR = /usr/bin%" \
-e "s%LIBDIR = \$(HOME)/lib/tRNAscan-SE%LIBDIR = /usr/lib/${PN}%" \
-e "s%MANDIR = \$(HOME)/man%MANDIR = /usr/share/man%" \
-e "s%CC = gcc%CC = $(tc-getCC)%" \
-e "s%CFLAGS = -O%CFLAGS = ${CFLAGS}%" \
-i Makefile || die
}
src_compile() {
emake || die
mv tRNAscan-SE.man tRNAscan-SE.man.1 || die
}
src_install() {
dobin covels-SE coves-SE eufindtRNA tRNAscan-SE trnascan-1.4 || die
doman tRNAscan-SE.man.1 || die
dodoc MANUAL README Release.history || die
insinto /usr/lib/${PN}/
doins *.cm gcode.* Dsignal TPCsignal || die
insinto /usr/share/doc/${PF}
doins Manual.ps || die
}
src_test() {
make testrun || die
}