summaryrefslogtreecommitdiff
blob: 5ef423eac837fef9b316baae7e1f1da16f8f9c91 (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
49
50
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="1"

inherit autotools multilib user

DESCRIPTION="Large Graph Visualization System"
HOMEPAGE="http://tulip.labri.fr/"
SRC_URI="mirror://sourceforge/auber/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="stats tlprender"

RDEPEND="dev-libs/libxml2
	media-libs/freetype:2
	media-libs/glew
	dev-libs/qthelp:4
	dev-libs/qtgui:4
	dev-libs/qtopengl:4"
DEPEND="${RDEPEND}"

pkg_setup() {
	enewgroup tulip
}

src_unpack() {
	unpack ${A}
	cd "${S}"
	eautoreconf
}

src_compile() {
	econf	$(use_enable tlprender) \
		$(use_enable stats stat-gui) \
		"--with-qt-includes=/usr/include/qt4" \
		"--with-qt-libraries=/usr/$(get_libdir)/qt4" \
		"MOC=/usr/bin/moc"
	emake || die "make failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "Install failed"
	rm -r "${D}/usr/share/tulip"
	dodoc TODO README AUTHORS ChangeLog || die "dodoc failed"
}