aboutsummaryrefslogtreecommitdiff
blob: 3673a3225424555fa9a7d386cd6903711653a259 (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-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/bowtie/bowtie-0.10.1.ebuild,v 1.3 2009/09/22 11:43:28 maekke Exp $

EAPI=5

inherit toolchain-funcs

ERPIN_BATCH_V=1.4

DESCRIPTION="Easy RNA Profile IdentificatioN, an RNA motif search program"
HOMEPAGE="http://tagc.univ-mrs.fr/erpin/"
SRC_URI="
	http://rna.igmors.u-psud.fr/download/Erpin/erpin${PV}.serv.tar.gz
	http://rna.igmors.u-psud.fr/download/Erpin/ErpinBatch.${ERPIN_BATCH_V}.tar.gz"

LICENSE="all-rights-reserved"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~x86"

DEPEND="!sys-cluster/maui" # file collision
RDEPEND=""

S="${WORKDIR}"

src_prepare() {
	rm -f erpin${PV}.serv/{bin,lib}/* || die
	rm -f ErpinBatch.${ERPIN_BATCH_V}/erpin* || die
	find -name '*.mk' | xargs sed -i \
		-e 's/strip $@/echo skipping strip $@/' \
		-e '/CFLAGS =/ d' \
		-e "s/CC = .*/CC = $(tc-getCC)/" \
		-e "s: -o : ${LDFLAGS} -o :g" \
		-e "s:ar :$(tc-getAR) :g" || die
	sed -i 's/cc -O2/$(tc-getCC) ${CFLAGS}/' erpin${PV}.serv/sum/sum.mk || die
}

src_compile() {
	emake -C erpin${PV}.serv -f erpin.mk
}

src_install() {
	dobin erpin${PV}.serv/bin/*
	insinto /usr/share/${PN}
	doins -r erpin${PV}.serv/scripts ErpinBatch.${ERPIN_BATCH_V}
	exeinto /usr/share/${PN}
	newexe "${FILESDIR}/erpincommand-${PV}.pl" erpincommand
	dodoc erpin${PV}.serv/doc/doc*.pdf
}