/[gentoo-x86]/gnome-base/librsvg/librsvg-2.34.2.ebuild
Gentoo

Contents of /gnome-base/librsvg/librsvg-2.34.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Nov 21 01:12:36 2011 UTC (6 years, 8 months ago) by tetromino
Branch: MAIN
Changes since 1.1: +4 -2 lines
Add gobject-introspection to build-time dependenciess, needed for eatoreconf (bug #391173, thanks to Duncan <1i5t5.duncan@cox.net> for reporting).

(Portage version: 2.2.0_alpha76/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/gnome-base/librsvg/librsvg-2.34.2.ebuild,v 1.1 2011/11/20 16:06:18 pacho Exp $
4
5 EAPI="4"
6 GNOME2_LA_PUNT="yes"
7 GCONF_DEBUG="no"
8
9 inherit gnome2 multilib eutils autotools
10
11 DESCRIPTION="Scalable Vector Graphics (SVG) rendering library"
12 HOMEPAGE="http://librsvg.sourceforge.net/"
13
14 LICENSE="LGPL-2"
15 SLOT="2"
16 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
17 IUSE="doc +gtk gtk3 +introspection tools"
18
19 RDEPEND=">=media-libs/fontconfig-1.0.1
20 >=media-libs/freetype-2
21 >=dev-libs/glib-2.24:2
22 >=x11-libs/cairo-1.2
23 >=x11-libs/pango-1.10
24 >=dev-libs/libxml2-2.4.7:2
25 >=dev-libs/libcroco-0.6.1
26 || ( x11-libs/gdk-pixbuf:2
27 x11-libs/gtk+:2 )
28 gtk? ( >=x11-libs/gtk+-2.16:2 )
29 gtk3? ( >=x11-libs/gtk+-2.90.0:3 )
30 introspection? ( >=dev-libs/gobject-introspection-0.10.8 )"
31 DEPEND="${RDEPEND}
32 >=dev-util/pkgconfig-0.12
33 doc? ( >=dev-util/gtk-doc-1.13 )
34
35 >=dev-libs/gobject-introspection-0.6.7
36 >=dev-util/gtk-doc-am-1.13"
37 # >=dev-util/gtk-doc-am-1.13 and gobject-introspection needed by eautoreconf
38
39 pkg_setup() {
40 # croco is forced on to respect SVG specification
41 G2CONF="${G2CONF}
42 --disable-static
43 $(use_enable tools)
44 $(use_enable gtk gtk-theme)
45 $(use_enable introspection)
46 --with-croco
47 --enable-pixbuf-loader"
48 use gtk && ! use gtk3 && G2CONF+=" --with-gtk=2.0"
49 use gtk && use gtk3 && G2CONF+=" --with-gtk=both"
50 ! use gtk && use gtk3 && G2CONF+=" --with-gtk=3.0 --enable-gtk-theme"
51
52 DOCS="AUTHORS ChangeLog README NEWS TODO"
53 }
54
55 src_prepare() {
56 # Fix automagic gtk+ dependency, bug #371290
57 epatch "${FILESDIR}/${PN}-2.34.0-automagic-gtk.patch"
58 eautoreconf
59
60 gnome2_src_prepare
61 }
62
63 pkg_postinst() {
64 # causes segfault if set, see bug 375615
65 unset __GL_NO_DSO_FINALIZER
66
67 tmp_file=$(mktemp --suffix=gdk_pixbuf_ebuild)
68 # be atomic!
69 gdk-pixbuf-query-loaders > "${tmp_file}"
70 if [ "${?}" = "0" ]; then
71 cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
72 else
73 ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
74 fi
75 rm "${tmp_file}"
76 }
77
78 pkg_postrm() {
79 # causes segfault if set, see bug 375615
80 unset __GL_NO_DSO_FINALIZER
81
82 tmp_file=$(mktemp --suffix=gdk_pixbuf_ebuild)
83 # be atomic!
84 gdk-pixbuf-query-loaders > "${tmp_file}"
85 if [ "${?}" = "0" ]; then
86 cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
87 else
88 ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
89 fi
90 rm "${tmp_file}"
91 }

  ViewVC Help
Powered by ViewVC 1.1.20