/[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.16 - (show annotations) (download)
Sat May 5 05:38:09 2012 UTC (2 years, 2 months ago) by jdhore
Branch: MAIN
Changes since 1.15: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 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.15 2012/04/24 04:04:11 tetromino Exp $
4
5 EAPI="4"
6 GNOME2_LA_PUNT="yes"
7 GCONF_DEBUG="no"
8 PYTHON_DEPEND="2"
9
10 inherit gnome2 multilib eutils autotools python
11
12 DESCRIPTION="Scalable Vector Graphics (SVG) rendering library"
13 HOMEPAGE="http://librsvg.sourceforge.net/"
14 SRC_URI="${SRC_URI} mirror://gentoo/introspection.m4.bz2"
15
16 LICENSE="LGPL-2"
17 SLOT="2"
18 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
19 IUSE="doc +gtk gtk3 +introspection tools"
20
21 RDEPEND=">=media-libs/fontconfig-1.0.1
22 >=media-libs/freetype-2
23 >=dev-libs/glib-2.24:2
24 >=x11-libs/cairo-1.2
25 >=x11-libs/pango-1.10
26 >=dev-libs/libxml2-2.4.7:2
27 >=dev-libs/libcroco-0.6.1
28 x11-libs/gdk-pixbuf:2[introspection?]
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 virtual/pkgconfig
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 python_set_active_version 2
55 python_pkg_setup
56 }
57
58 src_prepare() {
59 # Fix automagic gtk+ dependency, bug #371290
60 epatch "${FILESDIR}/${PN}-2.34.0-automagic-gtk.patch"
61
62 # bug #391215, https://bugzilla.gnome.org/show_bug.cgi?id=664684
63 epatch "${FILESDIR}/${PN}-2.34.2-gir-filename.patch"
64
65 # introspection.m4 needed for eautoreconf
66 mv "${WORKDIR}/introspection.m4" "${S}"/ || die
67
68 AT_M4DIR="." eautoreconf
69
70 python_convert_shebangs -r 2 .
71
72 gnome2_src_prepare
73 }
74
75 pkg_postinst() {
76 # causes segfault if set, see bug 375615
77 unset __GL_NO_DSO_FINALIZER
78
79 tmp_file=$(mktemp -t tmp.XXXXXXXXXXlibrsvg_ebuild)
80 # be atomic!
81 gdk-pixbuf-query-loaders > "${tmp_file}"
82 if [ "${?}" = "0" ]; then
83 cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
84 else
85 ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
86 fi
87 rm "${tmp_file}"
88 }
89
90 pkg_postrm() {
91 # causes segfault if set, see bug 375615
92 unset __GL_NO_DSO_FINALIZER
93
94 tmp_file=$(mktemp -t tmp.XXXXXXXXXXlibrsvg_ebuild)
95 # be atomic!
96 gdk-pixbuf-query-loaders > "${tmp_file}"
97 if [ "${?}" = "0" ]; then
98 cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
99 else
100 ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
101 fi
102 rm "${tmp_file}"
103 }

  ViewVC Help
Powered by ViewVC 1.1.20