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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sun Oct 28 15:53:14 2012 UTC (2 years, 1 month ago) by armin76
Branch: MAIN
Changes since 1.11: +2 -2 lines
alpha/ia64/sh/sparc stable wrt #427544

(Portage version: 2.1.11.9/cvs/Linux x86_64)

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.36.1.ebuild,v 1.11 2012/10/16 05:47:47 blueness Exp $
4
5 EAPI="4"
6 GNOME2_LA_PUNT="yes"
7 GCONF_DEBUG="no"
8
9 inherit autotools eutils gnome2 multilib
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 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
18 IUSE="doc +gtk +introspection tools"
19
20 RDEPEND=">=dev-libs/glib-2.24:2
21 >=x11-libs/cairo-1.2
22 >=x11-libs/pango-1.16
23 >=dev-libs/libxml2-2.7:2
24 >=dev-libs/libcroco-0.6.1
25 x11-libs/gdk-pixbuf:2[introspection?]
26 gtk? (
27 >=x11-libs/gtk+-2.16:2
28 tools? ( >=x11-libs/gtk+-3:3 ) )
29 introspection? ( >=dev-libs/gobject-introspection-0.10.8 )"
30 DEPEND="${RDEPEND}
31 virtual/pkgconfig
32 doc? ( >=dev-util/gtk-doc-1.13 )
33
34 dev-libs/gobject-introspection-common
35 >=dev-util/gtk-doc-am-1.13"
36 # >=gtk-doc-am-1.13 and gobject-introspection-common needed by eautoreconf
37
38 pkg_setup() {
39 G2CONF="${G2CONF}
40 --disable-static
41 $(use_enable tools)
42 $(use_enable gtk gtk-theme)
43 $(use_enable introspection)
44 --enable-pixbuf-loader"
45 if use gtk && use tools; then
46 G2CONF="${G2CONF} --enable-rsvg-view"
47 else
48 G2CONF="${G2CONF} --disable-rsvg-view"
49 fi
50 # -Bsymbolic is not supported by the Darwin toolchain
51 [[ ${CHOST} == *-darwin* ]] && G2CONF="${G2CONF} --disable-Bsymbolic"
52
53 DOCS="AUTHORS ChangeLog README NEWS TODO"
54 }
55
56 src_prepare() {
57 # Make rsvg-view non-automagic
58 epatch "${FILESDIR}/${PN}-2.36.0-rsvg-view-automagic.patch"
59
60 eautoreconf
61 gnome2_src_prepare
62 }
63
64 src_compile() {
65 # causes segfault if set, see bug #411765
66 unset __GL_NO_DSO_FINALIZER
67 gnome2_src_compile
68 }
69
70 pkg_postinst() {
71 # causes segfault if set, see bug 375615
72 unset __GL_NO_DSO_FINALIZER
73
74 tmp_file=$(mktemp -t tmp.XXXXXXXXXXlibrsvg_ebuild)
75 # be atomic!
76 gdk-pixbuf-query-loaders > "${tmp_file}"
77 if [ "${?}" = "0" ]; then
78 cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
79 else
80 ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
81 fi
82 rm "${tmp_file}"
83 }
84
85 pkg_postrm() {
86 # causes segfault if set, see bug 375615
87 unset __GL_NO_DSO_FINALIZER
88
89 tmp_file=$(mktemp -t tmp.XXXXXXXXXXlibrsvg_ebuild)
90 # be atomic!
91 gdk-pixbuf-query-loaders > "${tmp_file}"
92 if [ "${?}" = "0" ]; then
93 cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
94 else
95 ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
96 fi
97 rm "${tmp_file}"
98 }

  ViewVC Help
Powered by ViewVC 1.1.20