summaryrefslogtreecommitdiff
blob: 5288fcbb1d136d50290612e54305eebfc25b6253 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/tree-puzzle/tree-puzzle-5.1.ebuild,v 1.4 2005/02/08 01:39:30 j4rg0n Exp $

DESCRIPTION="Maximum likelihood analysis for nucleotide, amino acid, and two-state data."
HOMEPAGE="http://www.tree-puzzle.de"
SRC_URI="http://www.tree-puzzle.de/${P}.tar.gz"

LICENSE="GPL-1"
SLOT="0"
KEYWORDS="x86 ~ppc ppc-macos"
IUSE=""

src_compile() {
	use ppc-macos && filter-flags -fast
	econf || die "Configuration failed."
	emake || die "Compilation failed."
}

src_install() {
	make DESTDIR=${D} install || die
	dodoc AUTHORS ChangeLog COPYING README

	# User manual
	dohtml doc/{*.html,*.gif}
	insinto /usr/share/doc/${PF}/pdf
	doins doc/*.pdf

	# Example data files
	insinto /usr/share/${PN}/data
	doins data/{*.3trees,*.a,*.b,*.phy,*.n}

	# Program logos
	insinto /usr/share/${PN}/graphics
	doins doc/{*.png,*.eps}
}