summaryrefslogtreecommitdiff
blob: 4ac5b2993a0ec87dc649a3a9c31e496ad6e2e621 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/dialign-t/dialign-t-0.2.2.ebuild,v 1.4 2008/02/17 08:42:35 opfer Exp $

inherit multilib toolchain-funcs

MY_P="DIALIGN-T_${PV}"
DESCRIPTION="An improved algorithm for segment-based multiple sequence alignment"
HOMEPAGE="http://dialign-t.gobics.de/"
SRC_URI="http://dialign-t.gobics.de/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"

src_compile() {
	cd "${S}"/source
	emake clean
	emake \
		CPPFLAGS="${CFLAGS}" \
		|| die "make failed"
}

src_install() {
	DESTTREE="/usr" dobin "${S}"/source/dialign-t
	dohtml "${S}"/doc/html/*
	dodoc "${S}"/doc/user_guide*
	insinto /usr/$(get_libdir)/${PN}/conf
	doins "${S}"/conf/*
}

pkg_postinst() {
	ewarn "The configuration directory is"
	ewarn "${ROOT}usr/$(get_libdir)/${PN}/conf"
	ewarn "You will need to pass this to ${PN} on every run."
}