/[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.9 - (hide annotations) (download)
Sat Jan 14 17:05:22 2012 UTC (6 years, 9 months ago) by maekke
Branch: MAIN
Changes since 1.8: +3 -3 lines
x86 stable, bug #393007

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 maekke 1.9 # Copyright 1999-2012 Gentoo Foundation
2 pacho 1.1 # Distributed under the terms of the GNU General Public License v2
3 maekke 1.9 # $Header: /var/cvsroot/gentoo-x86/gnome-base/librsvg/librsvg-2.34.2.ebuild,v 1.8 2011/12/29 17:42:26 pacho Exp $
4 pacho 1.1
5     EAPI="4"
6     GNOME2_LA_PUNT="yes"
7     GCONF_DEBUG="no"
8 pacho 1.6 PYTHON_DEPEND="2"
9 pacho 1.1
10 pacho 1.6 inherit gnome2 multilib eutils autotools python
11 pacho 1.1
12     DESCRIPTION="Scalable Vector Graphics (SVG) rendering library"
13     HOMEPAGE="http://librsvg.sourceforge.net/"
14 pacho 1.3 SRC_URI="${SRC_URI} mirror://gentoo/introspection.m4.bz2"
15 pacho 1.1
16     LICENSE="LGPL-2"
17     SLOT="2"
18 maekke 1.9 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"
19 pacho 1.1 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 tetromino 1.5 x11-libs/gdk-pixbuf:2[introspection?]
29 pacho 1.1 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     >=dev-util/pkgconfig-0.12
34     doc? ( >=dev-util/gtk-doc-1.13 )
35 tetromino 1.2
36 pacho 1.1 >=dev-util/gtk-doc-am-1.13"
37 tetromino 1.2 # >=dev-util/gtk-doc-am-1.13 and gobject-introspection needed by eautoreconf
38 pacho 1.1
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 pacho 1.6
54     python_set_active_version 2
55     python_pkg_setup
56 pacho 1.1 }
57    
58     src_prepare() {
59     # Fix automagic gtk+ dependency, bug #371290
60     epatch "${FILESDIR}/${PN}-2.34.0-automagic-gtk.patch"
61 pacho 1.3
62 tetromino 1.4 # bug #391215, https://bugzilla.gnome.org/show_bug.cgi?id=664684
63     epatch "${FILESDIR}/${PN}-2.34.2-gir-filename.patch"
64    
65 pacho 1.3 # introspection.m4 needed for eautoreconf
66     mv "${WORKDIR}/introspection.m4" "${S}"/ || die
67    
68     AT_M4DIR="." eautoreconf
69 pacho 1.1
70 pacho 1.6 python_convert_shebangs -r 2 .
71    
72 pacho 1.1 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 --suffix=gdk_pixbuf_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 --suffix=gdk_pixbuf_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