/[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.5 - (hide annotations) (download)
Mon Nov 28 08:07:51 2011 UTC (6 years, 6 months ago) by tetromino
Branch: MAIN
Changes since 1.4: +2 -3 lines
Depend on gdk-pixbuf[introspection?] (bug #392233, thanks to krassboter@googlemail.com for reporting). Remove obsolete ||-dependency (gtk+-2.20 is long gone from portage).

(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)

1 pacho 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 tetromino 1.5 # $Header: /var/cvsroot/gentoo-x86/gnome-base/librsvg/librsvg-2.34.2.ebuild,v 1.4 2011/11/23 23:06:13 tetromino Exp $
4 pacho 1.1
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 pacho 1.3 SRC_URI="${SRC_URI} mirror://gentoo/introspection.m4.bz2"
14 pacho 1.1
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 tetromino 1.5 x11-libs/gdk-pixbuf:2[introspection?]
28 pacho 1.1 gtk? ( >=x11-libs/gtk+-2.16:2 )
29     gtk3? ( >=x11-libs/gtk+-2.90.0:3 )
30     introspection? ( >=dev-libs/gobject-introspection-0.10.8 )"
31     DEPEND="${RDEPEND}
32     >=dev-util/pkgconfig-0.12
33     doc? ( >=dev-util/gtk-doc-1.13 )
34 tetromino 1.2
35 pacho 1.1 >=dev-util/gtk-doc-am-1.13"
36 tetromino 1.2 # >=dev-util/gtk-doc-am-1.13 and gobject-introspection needed by eautoreconf
37 pacho 1.1
38     pkg_setup() {
39     # croco is forced on to respect SVG specification
40     G2CONF="${G2CONF}
41     --disable-static
42     $(use_enable tools)
43     $(use_enable gtk gtk-theme)
44     $(use_enable introspection)
45     --with-croco
46     --enable-pixbuf-loader"
47     use gtk && ! use gtk3 && G2CONF+=" --with-gtk=2.0"
48     use gtk && use gtk3 && G2CONF+=" --with-gtk=both"
49     ! use gtk && use gtk3 && G2CONF+=" --with-gtk=3.0 --enable-gtk-theme"
50    
51     DOCS="AUTHORS ChangeLog README NEWS TODO"
52     }
53    
54     src_prepare() {
55     # Fix automagic gtk+ dependency, bug #371290
56     epatch "${FILESDIR}/${PN}-2.34.0-automagic-gtk.patch"
57 pacho 1.3
58 tetromino 1.4 # bug #391215, https://bugzilla.gnome.org/show_bug.cgi?id=664684
59     epatch "${FILESDIR}/${PN}-2.34.2-gir-filename.patch"
60    
61 pacho 1.3 # introspection.m4 needed for eautoreconf
62     mv "${WORKDIR}/introspection.m4" "${S}"/ || die
63    
64     AT_M4DIR="." eautoreconf
65 pacho 1.1
66     gnome2_src_prepare
67     }
68    
69     pkg_postinst() {
70     # causes segfault if set, see bug 375615
71     unset __GL_NO_DSO_FINALIZER
72    
73     tmp_file=$(mktemp --suffix=gdk_pixbuf_ebuild)
74     # be atomic!
75     gdk-pixbuf-query-loaders > "${tmp_file}"
76     if [ "${?}" = "0" ]; then
77     cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
78     else
79     ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
80     fi
81     rm "${tmp_file}"
82     }
83    
84     pkg_postrm() {
85     # causes segfault if set, see bug 375615
86     unset __GL_NO_DSO_FINALIZER
87    
88     tmp_file=$(mktemp --suffix=gdk_pixbuf_ebuild)
89     # be atomic!
90     gdk-pixbuf-query-loaders > "${tmp_file}"
91     if [ "${?}" = "0" ]; then
92     cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
93     else
94     ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
95     fi
96     rm "${tmp_file}"
97     }

  ViewVC Help
Powered by ViewVC 1.1.20