diff options
Diffstat (limited to 'gnome-base/librsvg/librsvg-2.31.0.ebuild')
-rw-r--r-- | gnome-base/librsvg/librsvg-2.31.0.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/gnome-base/librsvg/librsvg-2.31.0.ebuild b/gnome-base/librsvg/librsvg-2.31.0.ebuild new file mode 100644 index 0000000..0215bd0 --- /dev/null +++ b/gnome-base/librsvg/librsvg-2.31.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/gnome-base/librsvg/librsvg-2.26.3.ebuild,v 1.3 2010/05/24 23:07:59 abcd Exp $ + +EAPI="3" +GCONF_DEBUG="no" + +inherit gnome2 multilib + +DESCRIPTION="Scalable Vector Graphics (SVG) rendering library" +HOMEPAGE="http://librsvg.sourceforge.net/" + +LICENSE="LGPL-2" +SLOT="2" +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" +IUSE="doc tools" + +# Forcing both gtk+2 and gtk+3 until automagic deps can be fixed +RDEPEND=">=media-libs/fontconfig-1.0.1 + >=media-libs/freetype-2 + >=x11-libs/gtk+-2.16:2 + >=x11-libs/gtk+-2.90:3 + >=dev-libs/glib-2.24 + >=x11-libs/cairo-1.2 + >=x11-libs/pango-1.10 + >=dev-libs/libxml2-2.4.7 + >=dev-libs/libcroco-0.6.1" +DEPEND="${RDEPEND} + >=dev-util/pkgconfig-0.12 + doc? ( >=dev-util/gtk-doc-1 )" +# >=dev-util/gtk-doc-am-1.13 needed by eautoreconf, feel free to drop it when not run it + +DOCS="AUTHORS ChangeLog README NEWS TODO" + +pkg_setup() { + # croco is forced on to respect SVG specification + G2CONF="${G2CONF} + --disable-static + $(use_enable tools) + --with-croco + --enable-pixbuf-loader + --enable-gtk-theme" +} + +pkg_postinst() { + gdk-pixbuf-query-loaders > "${EROOT}/usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache" +} + +pkg_postrm() { + gdk-pixbuf-query-loaders > "${EROOT}/usr/$(get_libdir)/gdk-pixbuf-2.0/2.10.0/loaders.cache" +} |