aboutsummaryrefslogtreecommitdiff
blob: 06cc24366d8fa51004e9b0104ab2b115fef05744 (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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

DESCRIPTION="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=""

S=${WORKDIR}/${PN}

src_prepare() {
	sed \
		-e 's/CFLAGS[ ]*=/CFLAGS :=/; s/-D_REENTRANT/-D_REENTRANT \${CFLAGS}/; s/CFLAGS[ ]*:=[ ]*-O2$//' \
		-i "${S}"/Makefile || die "Failed to patch Makefile"
	sed -i 's/-march=i686//' "${S}"/Makefile || die
	sed -i 's/-O2 //' "${S}"/Makefile || die
}

src_install() {
	dobin {cdbfasta,cdbyank}
	newdoc README README.${PN}
}