blob: b88863a45bf765fea4d6cf3902ec43f006024cc0 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
DESCRIPTION="Parallel multi-FASTA file processing tool"
HOMEPAGE="http://compbio.dfci.harvard.edu/tgi/software/"
SRC_URI="
ftp://occams.dfci.harvard.edu/pub/bio/tgi/software/tgicl/${PN}.tar.gz
ftp://occams.dfci.harvard.edu/pub/bio/tgi/software/tgicl/cdbfasta.tar.gz"
LICENSE="Artistic"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
#DEPEND="sys-cluster/pvm"
#RDEPEND="${DEPEND}"
S=${WORKDIR}
src_prepare() {
# we need gclib from cdbfasta.tar.gz bundle which has fewer files than tgi_cpp_library.tar.gz wbut has e.g. GStr.h
sed \
-e 's/CFLAGS[ ]*=/CFLAGS :=/; s/-D_REENTRANT/-D_REENTRANT \${CFLAGS}/; s/CFLAGS[ ]*:=[ ]*-O2$//' \
-i "${S}"/Makefile || die "Failed to run sed"
sed \
-e 's#GCLDIR := ../gclib#GCLDIR := ../cdbfasta/gclib#' \
-i "${S}"/Makefile || die
sed \
-e "s#-I-#-iquote#" \
-i "${S}"/Makefile || die
ln -s ../cdbfasta/gcl . || die "Cannot make a softlink"
}
src_compile() {
default
}
src_install() {
dobin ${PN}
newdoc README README.${PN}
}
|