aboutsummaryrefslogtreecommitdiff
blob: 447020bb7ac88ce1bab1b5009909bc035558da32 (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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/colordiff/colordiff-1.0.5-r2.ebuild,v 1.7 2005/08/17 18:08:02 grobian Exp $

inherit eutils

MY_P="${PN}V${PV}"
DESCRIPTION="Fast multiple sequence alignments using partial-order graphs"
HOMEPAGE="http://www.bioinformatics.ucla.edu/poa/"
SRC_URI="http://www.bioinformatics.ucla.edu/poa/${MY_P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"

src_unpack() {
	unpack ${A}
	epatch ${FILESDIR}/respect-cflags.patch
}

src_compile() {
	emake \
		OPT_CFLAGS="${CFLAGS}" \
		poa \
		|| die "make failed"
}

src_install() {
	exeinto /usr/bin
	doexe ${S}/poa ${S}/make_pscores.pl
	dolib.a ${S}/liblpo.a
	dodoc ${S}/README ${S}/multidom.*
	insinto /usr/share/poa
	doins ${S}/*.mat	
}

pkg_postinst() {
	einfo "poa requires a score matrix as the first argument."
	einfo "This package installs two examples to ${ROOT}usr/share/poa/."
}