aboutsummaryrefslogtreecommitdiff
blob: 39c6c52476b1e602835bc3c9be509633fdfccfc2 (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
51
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="FASTA is a DNA and Protein sequence alignment software package"
HOMEPAGE="http://fasta.bioch.virginia.edu/fasta_www2/fasta_down.shtml"
SRC_URI="http://faculty.virginia.edu/wrpearson/${PN}/${PN}3/${P}.tar.gz"

LICENSE="fasta"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="debug icc sse2"

DEPEND="icc? ( dev-lang/icc )"
RDEPEND=""

CC_ALT=
CFLAGS_ALT=
ALT=

if use debug ; then
	CFLAGS_ALT=-g -DDEBUG
fi

if use icc ; then
	CC_ALT=icc
	ALT="${ALT}_icc"
else
	CC_ALT=gcc
fi

if use sse2 ; then
	ALT="${ALT}_sse2"
	CFLAGS_ALT="${CFLAGS_ALT} -msse2"
	if ! use icc ; then
		CFLAGS_ALT="${CFLAGS_ALT} -ffast-math"
	fi
fi

src_compile() {
	einfo "Using $CC_ALT compiler"
	make -f Makefile.linux${ALT} CC="${CC_ALT} ${CFLAGS}" all
}

src_install() {
	dodir /usr/bin
	make -f Makefile.linux${ALT} CC="${CC_ALT} ${CFLAGS}" XDIR="${D}/usr/bin" install
	doman fasta3.1  fasta35.1  fastf3.1  fasts3.1  map_db.1  prss3.1  ps_lav.1 pvcomp.1
	dodoc COPYRIGHT FASTA_LIST README README.versions fasta20.doc
	dohtml changes_v34.html changes_v35.html search.html
}