blob: 05313b2a09280465f1114f44d4f21d35bf5629bb (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=3
DESCRIPTION="A FASTA record indexing/retrievieng utility, a part of TIGR Gene Indices project tools"
HOMEPAGE="http://compbio.dfci.harvard.edu/tgi/software"
SRC_URI="ftp://occams.dfci.harvard.edu/pub/bio/tgi/software/cdbfasta/cdbfasta.tar.gz"
LICENSE="Artistic"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
S=${WORKDIR}/${PN}
src_unpack() {
unpack cdbfasta.tar.gz
}
src_compile() {
sed -i 's/CFLAGS[ ]*=/CFLAGS :=/; s/-D_REENTRANT/-D_REENTRANT \${CFLAGS}/; s/CFLAGS[ ]*:=[ ]*-O2$//' "${S}"/Makefile || die "Failed to patch Makefile"
sed -i 's/-march=i686//' "${S}"/Makefile || die
sed -i 's/-O2 //' "${S}"/Makefile || die
emake || die "emake failed"
}
src_install() {
dobin {cdbfasta,cdbyank} || die "Failed to install binaries"
newdoc README README.${PN} || die
}
|