summaryrefslogtreecommitdiff
blob: 39856899f95af40e7e4ca0944959f34e9a716306 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/ariadne/ariadne-1.3-r1.ebuild,v 1.2 2005/05/13 03:08:56 ribosome Exp $

inherit toolchain-funcs

DESCRIPTION="Protein sequences and profiles comparison"
LICENSE="as-is"
HOMEPAGE="http://www.well.ox.ac.uk/ariadne/"
SRC_URI="http://www.well.ox.ac.uk/ariadne/ariadne-1.3.tar.Z"

SLOT="0"
IUSE=""
KEYWORDS="x86"

DEPEND="virtual/libc
	>=sci-biology/ncbi-tools-20041020-r1"

S=${WORKDIR}/SRC-${PV}

src_unpack(){
	unpack ${A}
	cd ${S}
	sed -e "s/CC = gcc/CC = $(tc-getCC)/" \
		-e "s/OPTIMISE = -O2/OPTIMISE = ${CFLAGS}/" \
		-i Makefile || die
	sed -e "s/blosum62/BLOSUM62/" -i prospero.c || die
}

src_compile() {
	emake || die
}

src_install() {
	dobin Linux/{ariadne,prospero}
	dolib Linux/libseq.a
	insinto /usr/include/${PN}
	doins Include/*.h
	dodoc README
}