blob: 5141d4569de0eab666ecb4c5c2b34705025fff31 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/treeviewx/treeviewx-0.5.1.ebuild,v 1.6 2007/04/30 03:51:41 dirtyepic Exp $
inherit eutils wxwidgets
DESCRIPTION="A phylogenetic tree viewer"
HOMEPAGE="http://darwin.zoology.gla.ac.uk/~rpage/treeviewx/"
SRC_URI="http://darwin.zoology.gla.ac.uk/~rpage/${PN}/download/0.5/tv-${PV}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 x86"
SLOT="0"
IUSE=""
DEPEND="=x11-libs/wxGTK-2.6*"
S="${WORKDIR}/tv-${PV}"
pkg_setup() {
if ! built_with_use x11-libs/wxGTK X; then
echo
eerror "TreeViewX requires an SVG library which is part of the"
eerror "optional X support in the \"x11-libs/wxGTK\" package. To"
eerror "install TreeViewX on your system, first recompile"
eerror "\"x11-libs/wxGTK\" with the \"X\" USE flag enabled, then try"
eerror "to install TreeViewX again."
die "X support not enabled in \"x11-libs/wxGTK\""
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-wxt.patch
}
src_compile() {
WX_GTK_VER="2.6"
need-wxwidgets gtk2
econf || die "econf failed"
emake || die "emake failed"
}
src_install() {
make install DESTDIR="${D}" || die "make install failed"
}
|