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

Contents of /gnome-base/librsvg/librsvg-2.34.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sat May 5 05:38:09 2012 UTC (2 years, 7 months ago) by jdhore
Branch: MAIN
Changes since 1.10: +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.1-r1.ebuild,v 1.10 2012/04/24 04:04:11 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
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 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 DEPEND="${RDEPEND}
31 virtual/pkgconfig
32 doc? ( >=dev-util/gtk-doc-1.13 )
33 >=dev-util/gtk-doc-am-1.13"
34 # >=dev-util/gtk-doc-am-1.13 needed by eautoreconf
35
36 pkg_setup() {
37 # croco is forced on to respect SVG specification
38 G2CONF="${G2CONF}
39 --disable-static
40 $(use_enable tools)
41 $(use_enable gtk gtk-theme)
42 --with-croco
43 --enable-pixbuf-loader"
44 use gtk && ! use gtk3 && G2CONF+=" --with-gtk=2.0"
45 use gtk && use gtk3 && G2CONF+=" --with-gtk=both"
46 ! use gtk && use gtk3 && G2CONF+=" --with-gtk=3.0 --enable-gtk-theme"
47
48 DOCS="AUTHORS ChangeLog README NEWS TODO"
49 }
50
51 src_prepare() {
52 gnome2_src_prepare
53
54 # Fix automagic gtk+ dependency, bug #371290
55 epatch "${FILESDIR}/${PN}-2.34.0-automagic-gtk.patch"
56 eautoreconf
57 }
58
59 pkg_postinst() {
60 # causes segfault if set, see bug 375615
61 unset __GL_NO_DSO_FINALIZER
62
63 tmp_file=$(mktemp -t tmp.XXXXXXXXXXlibrsvg_ebuild)
64 # be atomic!
65 gdk-pixbuf-query-loaders > "${tmp_file}"
66 if [ "${?}" = "0" ]; then
67 cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
68 else
69 ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
70 fi
71 rm "${tmp_file}"
72 }
73
74 pkg_postrm() {
75 # causes segfault if set, see bug 375615
76 unset __GL_NO_DSO_FINALIZER
77
78 tmp_file=$(mktemp -t tmp.XXXXXXXXXXlibrsvg_ebuild)
79 # be atomic!
80 gdk-pixbuf-query-loaders > "${tmp_file}"
81 if [ "${?}" = "0" ]; then
82 cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
83 else
84 ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
85 fi
86 rm "${tmp_file}"
87 }

  ViewVC Help
Powered by ViewVC 1.1.20