/[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.3 - (show annotations) (download)
Mon Nov 21 22:26:35 2011 UTC (6 years, 10 months ago) by pacho
Branch: MAIN
Changes since 1.2: +7 -3 lines
Only pull in introspection.m4, not full gobject-introspection.

(Portage version: 2.1.10.36/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.2 2011/11/21 01:12:36 tetromino 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 SRC_URI="${SRC_URI} mirror://gentoo/introspection.m4.bz2"
14
15 LICENSE="LGPL-2"
16 SLOT="2"
17 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"
18 IUSE="doc +gtk gtk3 +introspection tools"
19
20 RDEPEND=">=media-libs/fontconfig-1.0.1
21 >=media-libs/freetype-2
22 >=dev-libs/glib-2.24:2
23 >=x11-libs/cairo-1.2
24 >=x11-libs/pango-1.10
25 >=dev-libs/libxml2-2.4.7:2
26 >=dev-libs/libcroco-0.6.1
27 || ( x11-libs/gdk-pixbuf:2
28 x11-libs/gtk+:2 )
29 gtk? ( >=x11-libs/gtk+-2.16:2 )
30 gtk3? ( >=x11-libs/gtk+-2.90.0:3 )
31 introspection? ( >=dev-libs/gobject-introspection-0.10.8 )"
32 DEPEND="${RDEPEND}
33 >=dev-util/pkgconfig-0.12
34 doc? ( >=dev-util/gtk-doc-1.13 )
35
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
59 # introspection.m4 needed for eautoreconf
60 mv "${WORKDIR}/introspection.m4" "${S}"/ || die
61
62 AT_M4DIR="." eautoreconf
63
64 gnome2_src_prepare
65 }
66
67 pkg_postinst() {
68 # causes segfault if set, see bug 375615
69 unset __GL_NO_DSO_FINALIZER
70
71 tmp_file=$(mktemp --suffix=gdk_pixbuf_ebuild)
72 # be atomic!
73 gdk-pixbuf-query-loaders > "${tmp_file}"
74 if [ "${?}" = "0" ]; then
75 cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
76 else
77 ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
78 fi
79 rm "${tmp_file}"
80 }
81
82 pkg_postrm() {
83 # causes segfault if set, see bug 375615
84 unset __GL_NO_DSO_FINALIZER
85
86 tmp_file=$(mktemp --suffix=gdk_pixbuf_ebuild)
87 # be atomic!
88 gdk-pixbuf-query-loaders > "${tmp_file}"
89 if [ "${?}" = "0" ]; then
90 cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
91 else
92 ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
93 fi
94 rm "${tmp_file}"
95 }

  ViewVC Help
Powered by ViewVC 1.1.20