blob: 3a471fa100a1137106ae6ed6a665073b398e7f89 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
ERPIN_BATCH_V=1.4
DESCRIPTION="Easy RNA Profile IdentificatioN, an RNA motif search program"
HOMEPAGE="http://rna.igmors.u-psud.fr"
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"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}"
PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
src_prepare() {
default
rm erpin${PV}.serv/{bin,lib}/* || die
rm 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
}
|