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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Oct 14 23:13:24 2012 UTC (18 months, 1 week ago) by mattst88
Branch: MAIN
Changes since 1.3: +2 -2 lines
Stable on alpha, bug 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.3.ebuild,v 1.3 2012/09/12 20:47:55 tetromino Exp $
4
5 EAPI="4"
6 GNOME2_LA_PUNT="yes"
7 GCONF_DEBUG="no"
8 VALA_MIN_API_VERSION="0.18"
9 VALA_USE_DEPEND="vapigen"
10
11 inherit autotools eutils gnome2 multilib vala
12
13 DESCRIPTION="Scalable Vector Graphics (SVG) rendering library"
14 HOMEPAGE="http://librsvg.sourceforge.net/"
15
16 LICENSE="LGPL-2"
17 SLOT="2"
18 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"
19 IUSE="doc +gtk +introspection tools vala"
20 REQUIRED_USE="vala? ( introspection )"
21
22 RDEPEND=">=dev-libs/glib-2.24:2
23 >=x11-libs/cairo-1.2
24 >=x11-libs/pango-1.16
25 >=dev-libs/libxml2-2.7:2
26 >=dev-libs/libcroco-0.6.1
27 x11-libs/gdk-pixbuf:2[introspection?]
28 gtk? (
29 >=x11-libs/gtk+-2.16:2
30 tools? ( >=x11-libs/gtk+-3:3 ) )
31 introspection? ( >=dev-libs/gobject-introspection-0.10.8 )"
32 DEPEND="${RDEPEND}
33 virtual/pkgconfig
34 dev-libs/gobject-introspection-common
35 dev-libs/vala-common
36 >=dev-util/gtk-doc-am-1.13
37
38 doc? ( >=dev-util/gtk-doc-1.13 )
39 vala? ( $(vala_depend) )"
40 # >=gtk-doc-am-1.13, gobject-introspection-common, vala-common needed by eautoreconf
41
42 pkg_setup() {
43 G2CONF="${G2CONF}
44 --disable-static
45 $(use_enable tools)
46 $(use_enable gtk gtk-theme)
47 $(use_enable introspection)
48 $(use_enable vala)
49 --enable-pixbuf-loader"
50 if use gtk && use tools; then
51 G2CONF="${G2CONF} --enable-rsvg-view"
52 else
53 G2CONF="${G2CONF} --disable-rsvg-view"
54 fi
55 # -Bsymbolic is not supported by the Darwin toolchain
56 [[ ${CHOST} == *-darwin* ]] && G2CONF="${G2CONF} --disable-Bsymbolic"
57
58 DOCS="AUTHORS ChangeLog README NEWS TODO"
59 }
60
61 src_prepare() {
62 # Make rsvg-view non-automagic
63 epatch "${FILESDIR}/${PN}-2.36.0-rsvg-view-automagic.patch"
64 use vala && vala_src_prepare
65
66 eautoreconf
67 gnome2_src_prepare
68 }
69
70 src_compile() {
71 # causes segfault if set, see bug #411765
72 unset __GL_NO_DSO_FINALIZER
73 gnome2_src_compile
74 }
75
76 pkg_postinst() {
77 # causes segfault if set, see bug 375615
78 unset __GL_NO_DSO_FINALIZER
79
80 tmp_file=$(mktemp -t tmp.XXXXXXXXXXlibrsvg_ebuild)
81 # be atomic!
82 gdk-pixbuf-query-loaders > "${tmp_file}"
83 if [ "${?}" = "0" ]; then
84 cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
85 else
86 ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
87 fi
88 rm "${tmp_file}"
89 }
90
91 pkg_postrm() {
92 # causes segfault if set, see bug 375615
93 unset __GL_NO_DSO_FINALIZER
94
95 tmp_file=$(mktemp -t tmp.XXXXXXXXXXlibrsvg_ebuild)
96 # be atomic!
97 gdk-pixbuf-query-loaders > "${tmp_file}"
98 if [ "${?}" = "0" ]; then
99 cat "${tmp_file}" > "${EROOT}usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache"
100 else
101 ewarn "Cannot update loaders.cache, gdk-pixbuf-query-loaders failed to run"
102 fi
103 rm "${tmp_file}"
104 }

  ViewVC Help
Powered by ViewVC 1.1.20