equal
deleted
inserted
replaced
1 # Copyright 1999-2009 Gentoo Foundation |
|
2 # Distributed under the terms of the GNU General Public License v2 |
|
3 # $Header: /var/cvsroot/gentoo-x86/x11-libs/gtkdatabox/gtkdatabox-0.9.1.1.ebuild,v 1.3 2009/09/18 16:46:53 tove Exp $ |
|
4 |
|
5 EAPI="2" |
|
6 |
|
7 inherit autotools |
|
8 |
|
9 DESCRIPTION="Gtk+ Widgets for live display of large amounts of fluctuating numerical data" |
|
10 HOMEPAGE="http://sourceforge.net/projects/gtkdatabox/" |
|
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
|
12 |
|
13 LICENSE="LGPL-2.1" |
|
14 SLOT="0" |
|
15 KEYWORDS="~amd64 ~x86" |
|
16 IUSE="doc examples +glade test" |
|
17 |
|
18 RDEPEND="x11-libs/gtk+:2 |
|
19 glade? ( |
|
20 dev-util/glade:3 |
|
21 gnome-base/libglade |
|
22 ) |
|
23 " |
|
24 |
|
25 DEPEND=${RDEPEND} |
|
26 |
|
27 src_prepare() { |
|
28 epatch "${FILESDIR}/${PN}-gtk-2.20.patch" || die "fail to patch..." |
|
29 eautoreconf |
|
30 } |
|
31 |
|
32 src_configure() { |
|
33 econf \ |
|
34 --enable-libtool-lock \ |
|
35 --disable-dependency-tracking \ |
|
36 $(use_enable glade libglade) \ |
|
37 $(use_enable glade) \ |
|
38 $(use_enable doc gtk-doc) \ |
|
39 $(use_enable test gtktest) |
|
40 } |
|
41 |
|
42 src_install() { |
|
43 emake DESTDIR="${D}" install || die "Installation Failed" |
|
44 |
|
45 dodoc AUTHORS ChangeLog README TODO || die "dodoc failed" |
|
46 |
|
47 if use examples; then |
|
48 emake clean -C examples || die "Cleaning examples failed" |
|
49 docinto examples |
|
50 dodoc "${S}/examples/*" || die "Copy examples to doc failed." |
|
51 fi |
|
52 } |
|