diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-08-02 11:42:29 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-08-02 11:42:29 +0000 |
commit | 1cd34a581bec61a2e5ce22dbcc9232cc9ef366af (patch) | |
tree | 739e51036f7f8b53c1db062f17dd8160f781f7e7 /x11/librsvg | |
parent | ce704e2a1229d9bfbdd1eae16c10284c2d3118fa (diff) | |
download | aports-1cd34a581bec61a2e5ce22dbcc9232cc9ef366af.tar.bz2 aports-1cd34a581bec61a2e5ce22dbcc9232cc9ef366af.tar.xz |
x11/librsvg: new aport
SAX-based renderer for SVG files into a GdkPixbuf
http://librsvg.sourceforge.net/
Diffstat (limited to 'x11/librsvg')
-rw-r--r-- | x11/librsvg/APKBUILD | 34 | ||||
l--------- | x11/librsvg/librsvg.post-deinstall | 1 | ||||
-rw-r--r-- | x11/librsvg/librsvg.post-install | 7 | ||||
l--------- | x11/librsvg/librsvg.post-upgrade | 1 |
4 files changed, 43 insertions, 0 deletions
diff --git a/x11/librsvg/APKBUILD b/x11/librsvg/APKBUILD new file mode 100644 index 0000000000..ba930bf6db --- /dev/null +++ b/x11/librsvg/APKBUILD @@ -0,0 +1,34 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=librsvg +pkgver=2.26.0 +pkgrel=0 +pkgdesc="SAX-based renderer for SVG files into a GdkPixbuf" +url="http://librsvg.sourceforge.net/" +license="LGPL" +subpackages="$pkgname-dev $pkgname-doc" +depends= +makedepends="gtk+-dev libcroco-dev libgsf-dev bzip2-dev" +install="librsvg.post-install librsvg.post-upgrade librsvg.post-deinstall" +source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/2.26/$pkgname-$pkgver.tar.bz2 + $install" + +depends_dev="glib-dev gtk+-dev cairo-dev libcroco-dev libgsf-dev" + +build () +{ + cd "$srcdir"/$pkgname-$pkgver + ./configure --prefix=/usr \ + --libexecdir=/usr/lib/$pkgname \ + --with-croco \ + --disable-static \ + --disable-mozilla-plugin \ + --with-svgz || return 1 + make || return 1 + make DESTDIR=""$pkgdir"" install || return 1 + rm -rf "$pkgdir"/usr/lib/mozilla +} + +md5sums="65dbd726a514fe8b797d26254b8efc1e librsvg-2.26.0.tar.bz2 +323a187b3a9bc1c506543c03a6f533ce librsvg.post-install +323a187b3a9bc1c506543c03a6f533ce librsvg.post-upgrade +323a187b3a9bc1c506543c03a6f533ce librsvg.post-deinstall" diff --git a/x11/librsvg/librsvg.post-deinstall b/x11/librsvg/librsvg.post-deinstall new file mode 120000 index 0000000000..4729c2e260 --- /dev/null +++ b/x11/librsvg/librsvg.post-deinstall @@ -0,0 +1 @@ +librsvg.post-install
\ No newline at end of file diff --git a/x11/librsvg/librsvg.post-install b/x11/librsvg/librsvg.post-install new file mode 100644 index 0000000000..de5ca6c6c0 --- /dev/null +++ b/x11/librsvg/librsvg.post-install @@ -0,0 +1,7 @@ +#!/bin/sh + +#We need to update the pixbuf loaders to let GTK support SVG images +gtk-query-immodules-2.0 > etc/gtk-2.0/gtk.immodules +gdk-pixbuf-query-loaders > etc/gtk-2.0/gdk-pixbuf.loaders + +exit 0 diff --git a/x11/librsvg/librsvg.post-upgrade b/x11/librsvg/librsvg.post-upgrade new file mode 120000 index 0000000000..4729c2e260 --- /dev/null +++ b/x11/librsvg/librsvg.post-upgrade @@ -0,0 +1 @@ +librsvg.post-install
\ No newline at end of file |