From a7b5bf31b4f744e3cd1222104da620b4b62e103d Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sun, 16 Aug 2009 20:08:04 +0000 Subject: x11/rarian: new aport Documentation meta-data library, designed as a replacement for Scrollkeeper http://rarian.freedesktop.org/ --- x11/rarian/APKBUILD | 28 ++++++++++++++++++++++++++++ x11/rarian/user-segfault.patch | 14 ++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 x11/rarian/APKBUILD create mode 100644 x11/rarian/user-segfault.patch (limited to 'x11/rarian') diff --git a/x11/rarian/APKBUILD b/x11/rarian/APKBUILD new file mode 100644 index 000000000..bf3caf140 --- /dev/null +++ b/x11/rarian/APKBUILD @@ -0,0 +1,28 @@ +# Maintainer: Natanael Copa +pkgname=rarian +pkgver=0.8.1 +pkgrel=0 +pkgdesc="Documentation meta-data library, designed as a replacement for Scrollkeeper." +url="http://rarian.freedesktop.org/" +license="GPL" +subpackages="$pkgname-dev" +depends= +makedepends="libxslt-dev" +source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/0.8/$pkgname-$pkgver.tar.bz2 + user-segfault.patch" + +build () +{ + cd "$srcdir"/$pkgname-$pkgver + patch -p0 -i "$srcdir"/user-segfault.patch || return 1 + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --enable-scrollkeeper-compat \ + --disable-static || return 1 + make || return 1 + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="75091185e13da67a0ff4279de1757b94 rarian-0.8.1.tar.bz2 +457e9827197009cfa360911fe49a5ad7 user-segfault.patch" diff --git a/x11/rarian/user-segfault.patch b/x11/rarian/user-segfault.patch new file mode 100644 index 000000000..3311cecdd --- /dev/null +++ b/x11/rarian/user-segfault.patch @@ -0,0 +1,14 @@ +--- util/rarian-sk-get-cl.cpp~ 2008-07-28 19:23:28.000000000 +0200 ++++ util/rarian-sk-get-cl.cpp 2008-07-28 19:23:28.000000000 +0200 +@@ -160,6 +160,11 @@ + { + char *filename = NULL; + char *user = getenv ("USERNAME"); ++ ++ if (user == NULL) { ++ user = getenv ("USER"); ++ } ++ + char *basepath = NULL; + int i=0; + int last = 0; -- cgit v1.2.3