/[gentoo-x86]/x11-libs/gtkdatabox/gtkdatabox-0.9.1.1.ebuild
Gentoo

Contents of /x11-libs/gtkdatabox/gtkdatabox-0.9.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Dec 16 18:42:07 2010 UTC (3 years, 6 months ago) by pacho
Branch: MAIN
Changes since 1.3: +12 -3 lines
Remove -D.*DISABLE_DEPRECATED cflags (bug #323923 by Konstantin Likhomanov and others) and install examples properly (bug #99318).

(Portage version: 2.1.9.25/cvs/Linux x86_64)

1 # Copyright 1999-2010 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 DESCRIPTION="Gtk+ Widgets for live display of large amounts of fluctuating numerical data"
8 HOMEPAGE="http://sourceforge.net/projects/gtkdatabox/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10
11 LICENSE="LGPL-2.1"
12 SLOT="0"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="doc examples +glade test"
15
16 RDEPEND="x11-libs/gtk+:2
17 glade? (
18 dev-util/glade:3
19 gnome-base/libglade
20 )
21 "
22
23 DEPEND=${RDEPEND}
24
25 src_prepare() {
26 # Remove -D.*DISABLE_DEPRECATED cflags
27 find . -iname 'Makefile.am' -exec \
28 sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + || die "sed 1 failed"
29 # Do Makefile.in after Makefile.am to avoid automake maintainer-mode
30 find . -iname 'Makefile.in' -exec \
31 sed -e '/-D[A-Z_]*DISABLE_DEPRECATED/d' -i {} + || die "sed 2 failed"
32 }
33
34 src_configure() {
35 econf \
36 --enable-libtool-lock \
37 --disable-dependency-tracking \
38 $(use_enable glade libglade) \
39 $(use_enable glade) \
40 $(use_enable doc gtk-doc) \
41 $(use_enable test gtktest)
42 }
43
44 src_install() {
45 emake DESTDIR="${D}" install || die "Installation Failed"
46
47 dodoc AUTHORS ChangeLog README TODO || die "dodoc failed"
48
49 if use examples; then
50 emake clean -C examples || die "Cleaning examples failed"
51 docinto examples
52 dodoc "${S}"/examples/* || die "Copy examples to doc failed."
53 fi
54 }

  ViewVC Help
Powered by ViewVC 1.1.20