From af13268526a7de6856b3658432de303d984d394c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sun, 5 Feb 2012 10:55:51 +0000 Subject: testing/raptor2: new aport RDF parser toolkit for Redland http://www.librdf.org/raptor --- testing/raptor2/APKBUILD | 45 +++++++++++++++++++++++++++++++++++++++ testing/raptor2/raptor-curl.patch | 12 +++++++++++ 2 files changed, 57 insertions(+) create mode 100644 testing/raptor2/APKBUILD create mode 100644 testing/raptor2/raptor-curl.patch (limited to 'testing') diff --git a/testing/raptor2/APKBUILD b/testing/raptor2/APKBUILD new file mode 100644 index 000000000..0ce17bd92 --- /dev/null +++ b/testing/raptor2/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: William Pitcock +# Maintainer: Natanael Copa +pkgname=raptor2 +pkgver=2.0.6 +pkgrel=0 +pkgdesc="RDF parser toolkit for Redland" +url="http://www.librdf.org/raptor" +arch="all" +license="GPL" +depends= +depends_dev="curl-dev libxml2-dev libxslt-dev yajl-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://download.librdf.org/source/raptor2-$pkgver.tar.gz" + +_builddir="$srcdir"/raptor2-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm "$pkgdir"/usr/lib/*.la +} + +md5sums="1f07af81cbe3cf1bf0d1d250b18d9f93 raptor2-2.0.6.tar.gz" diff --git a/testing/raptor2/raptor-curl.patch b/testing/raptor2/raptor-curl.patch new file mode 100644 index 000000000..e47a496c4 --- /dev/null +++ b/testing/raptor2/raptor-curl.patch @@ -0,0 +1,12 @@ +diff --git a/src/raptor_internal.h b/src/raptor_internal.h +index f7944db..d9c2068 100644 +--- a/src/raptor_internal.h ++++ b/src/raptor_internal.h +@@ -852,7 +852,6 @@ int raptor_utf8_is_nfc(const unsigned char *input, size_t length); + + #ifdef RAPTOR_WWW_LIBCURL + #include +-#include + #include + #endif + -- cgit v1.2.3