1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 GNOME_TARBALL_SUFFIX="bz2"
10 inherit eutils gnome2 libtool
12 DESCRIPTION="Canvas widget for GTK+ using the cairo 2D library for drawing"
13 HOMEPAGE="https://wiki.gnome.org/Projects/GooCanvas"
17 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
21 >=x11-libs/gtk+-2.12:2
22 >=dev-libs/glib-2.10:2
31 # https://bugzilla.gnome.org/show_bug.cgi?id=671766
32 epatch "${FILESDIR}"/${P}-gold.patch
34 # Fails to build with recent GTK+
35 sed -e "s/-D.*_DISABLE_DEPRECATED//g" \
36 -i src/Makefile.am src/Makefile.in demo/Makefile.am demo/Makefile.in \
39 sed -e 's/^\(SUBDIRS =.*\)demo\(.*\)$/\1\2/' \
40 -i Makefile.am Makefile.in || die "sed 2 failed"
46 gnome2_src_configure \
55 insinto /usr/share/doc/${P}/examples/
56 doins demo/*.c demo/flower.png demo/toroid.png