aboutsummaryrefslogtreecommitdiffstats
path: root/main/librsvg
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-01-25 16:43:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-01-25 16:43:57 +0000
commit9526ee659401dee7160f35cb62ded2779bcbbc99 (patch)
tree812ad73bde9c84dcc02a3acbc5db576369ca314a /main/librsvg
parent05e09c1126a898b6d0af491fef0401bf53e297f8 (diff)
downloadaports-9526ee659401dee7160f35cb62ded2779bcbbc99.tar.bz2
aports-9526ee659401dee7160f35cb62ded2779bcbbc99.tar.xz
merged x11 repository into main
ref #255
Diffstat (limited to 'main/librsvg')
-rw-r--r--main/librsvg/APKBUILD34
l---------main/librsvg/librsvg.post-deinstall1
-rw-r--r--main/librsvg/librsvg.post-install7
l---------main/librsvg/librsvg.post-upgrade1
4 files changed, 43 insertions, 0 deletions
diff --git a/main/librsvg/APKBUILD b/main/librsvg/APKBUILD
new file mode 100644
index 0000000000..ba930bf6db
--- /dev/null
+++ b/main/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/main/librsvg/librsvg.post-deinstall b/main/librsvg/librsvg.post-deinstall
new file mode 120000
index 0000000000..4729c2e260
--- /dev/null
+++ b/main/librsvg/librsvg.post-deinstall
@@ -0,0 +1 @@
+librsvg.post-install \ No newline at end of file
diff --git a/main/librsvg/librsvg.post-install b/main/librsvg/librsvg.post-install
new file mode 100644
index 0000000000..de5ca6c6c0
--- /dev/null
+++ b/main/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/main/librsvg/librsvg.post-upgrade b/main/librsvg/librsvg.post-upgrade
new file mode 120000
index 0000000000..4729c2e260
--- /dev/null
+++ b/main/librsvg/librsvg.post-upgrade
@@ -0,0 +1 @@
+librsvg.post-install \ No newline at end of file