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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat May 5 05:38:09 2012 UTC (2 years, 7 months ago) by jdhore
Branch: MAIN
Changes since 1.3: +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.36.0.ebuild,v 1.3 2012/04/24 04:04:11 tetromino 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 ~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
51 DOCS="AUTHORS ChangeLog README NEWS TODO"
52 }
53
54 src_prepare() {
55 # Fix man page
56 mv rsvg.1 rsvg-convert.1 || die "mv failed"
57 epatch "${FILESDIR}/${P}-rsvg-convert.1.patch"
58
59 # Make rsvg-view non-automagic
60 epatch "${FILESDIR}/${P}-rsvg-view-automagic.patch"
61
62 eautoreconf
63 gnome2_src_prepare
64 }
65
66 src_compile() {
67 # causes segfault if set, see bug #411765
68 unset __GL_NO_DSO_FINALIZER
69 gnome2_src_compile
70 }
71
72 pkg_postinst() {
73 # causes segfault if set, see bug 375615
74 unset __GL_NO_DSO_FINALIZER
75
76 tmp_file=$(mktemp -t tmp.XXXXXXXXXXlibrsvg_ebuild)
77 # be atomic!
78 gdk-pixbuf-query-loaders > "${tmp_file}"
79 if [ "${?}" = "0" ]; then
80 cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
81 else
82 ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
83 fi
84 rm "${tmp_file}"
85 }
86
87 pkg_postrm() {
88 # causes segfault if set, see bug 375615
89 unset __GL_NO_DSO_FINALIZER
90
91 tmp_file=$(mktemp -t tmp.XXXXXXXXXXlibrsvg_ebuild)
92 # be atomic!
93 gdk-pixbuf-query-loaders > "${tmp_file}"
94 if [ "${?}" = "0" ]; then
95 cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
96 else
97 ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
98 fi
99 rm "${tmp_file}"
100 }

  ViewVC Help
Powered by ViewVC 1.1.20