blob: 257bffd7f3e63258d00b52d4998f8ad65fc07df2 (
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
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/qrna/qrna-2.0.3c-r1.ebuild,v 1.1 2010/03/10 21:13:06 jlec Exp $
inherit eutils toolchain-funcs
DESCRIPTION="Prototype ncRNA genefinder"
HOMEPAGE="http://selab.janelia.org/software.html"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
RDEPEND="dev-lang/perl
sci-biology/hmmer"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-glibc-2.10.patch
epatch "${FILESDIR}"/${P}-ldflags.patch
sed -e "s/^CC.*/CC = $(tc-getCC)/" \
-e "s/CFLAGS = -O/CFLAGS = ${CFLAGS}/" \
-i src/Makefile squid/Makefile squid02/Makefile || die
rm -v squid*/*.a
}
src_compile() {
cd "${S}"/squid
emake || die
cd "${S}"/squid02
emake || die
cd "${S}"/src
emake || die
}
src_install () {
cd "${S}"/src
dobin cfgbuild eqrna eqrna_sample main rnamat_main || die
cd "${S}"
dobin scripts/* || die
newdoc 00README README || die
insinto /usr/share/doc/${PF}
doins documentation/* || die
insinto /usr/share/${PN}/data
doins lib/* || die
insinto /usr/share/${PN}/demos
doins Demos/* || die
# Sets the path to the QRNA data files.
doenvd "${FILESDIR}"/26qrna || die
}
|