summaryrefslogtreecommitdiff
path: root/extra/raptor
diff options
context:
space:
mode:
Diffstat (limited to 'extra/raptor')
-rw-r--r--extra/raptor/PKGBUILD19
-rw-r--r--extra/raptor/fix-soprano-bug.patch20
2 files changed, 34 insertions, 5 deletions
diff --git a/extra/raptor/PKGBUILD b/extra/raptor/PKGBUILD
index 684da1bf2..58b3a41d0 100644
--- a/extra/raptor/PKGBUILD
+++ b/extra/raptor/PKGBUILD
@@ -1,22 +1,31 @@
-# $Id: PKGBUILD 126317 2011-06-04 16:06:41Z andyrtr $
+# $Id: PKGBUILD 130397 2011-07-06 11:19:50Z andrea $
# Maintainer: Andreas Radke <andyrtr at archlinux.org>
# Contributor: eric <eric@archlinux.org>
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
pkgname=raptor
pkgver=2.0.3
-pkgrel=1
+pkgrel=2
pkgdesc="A C library that parses RDF/XML/N-Triples into RDF triples"
arch=('i686' 'x86_64')
url="http://librdf.org/raptor"
-depends=('libxml2>=2.7.8' 'curl>=7.21.2' 'zlib>=1.2.5' 'libxslt>=1.1.26')
+depends=('libxml2>=2.7.8' 'curl>=7.21.7' 'zlib>=1.2.5' 'libxslt>=1.1.26')
license=('LGPL')
options=('!libtool')
-source=(http://librdf.org/dist/source/raptor2-$pkgver.tar.gz)
-md5sums=('46eff4b20f8752d1146a3e0c8b2168dd')
+source=("http://librdf.org/dist/source/raptor2-$pkgver.tar.gz"
+ 'fix-soprano-bug.patch')
+md5sums=('46eff4b20f8752d1146a3e0c8b2168dd'
+ 'fd63150d1e9f83bb59af0d86c373c8fa')
build() {
cd ${srcdir}/raptor2-${pkgver}
+
+ # see http://bugs.librdf.org/mantis/view.php?id=451
+ patch -p1 -i "${srcdir}"/fix-soprano-bug.patch
+
+ # fix build with curl >= 7.21.2
+ sed -i '/#include <curl\/types.h>/d' src/raptor_internal.h
+
./configure --prefix=/usr --disable-static
make
}
diff --git a/extra/raptor/fix-soprano-bug.patch b/extra/raptor/fix-soprano-bug.patch
new file mode 100644
index 000000000..ec7f087e0
--- /dev/null
+++ b/extra/raptor/fix-soprano-bug.patch
@@ -0,0 +1,20 @@
+diff --git a/src/turtle_lexer.l b/src/turtle_lexer.l
+index c2f249b..f133747 100644
+--- a/src/turtle_lexer.l
++++ b/src/turtle_lexer.l
+@@ -381,9 +381,13 @@ EXPONENT [eE][+-]?[0-9]+
+ while(1) {
+ int c = yytext[yyleng - 1];
+ if(c == '{' || c == ' ' || c=='\t' || c == '\v' || c == '\n' ||
+- c == ':' || c == '-') {
++ c == '=' ) {
+ yyleng--;
+- } else
++ }
++ else if ( yyleng >= 2 && ( c == '-' && yytext[yyleng - 2] == ':' ) ) {
++ yyleng -= 2;
++ }
++ else
+ break;
+ }
+ yytext[yyleng] = '\0';