import textproc/rasqal, split from redland. ok landry@
- merged from openbsd-wip and dlg@ diffs. Rasqal is a C library that handles Resource Description Framework (RDF) query language syntaxes, query construction and execution of queries returning results as bindings, boolean, RDF graphs/triples or syntaxes. The supported query languages are SPARQL 1.0, RDQL, Draft SPARQL Query 1.1, Update 1.1 Syntax and Experimental SPARQL extensions (LAQRS). Rasqal can write binding query results in the SPARQL XML, SPARQL JSON, CSV, TSV, HTML, ASCII tables, RDF/XML and Turtle / N3 and read them in SPARQL XML, RDF/XML and Turtle / N3. Rasqal was designed to work closely with the Redland RDF library and the Raptor RDF Syntax Library but is entirely separate from both.
This commit is contained in:
parent
71048d91fe
commit
631e9a988c
48
textproc/rasqal/Makefile
Normal file
48
textproc/rasqal/Makefile
Normal file
@ -0,0 +1,48 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/11/12 13:36:55 sthen Exp $
|
||||
|
||||
COMMENT= RDF Query Library for Redland
|
||||
DISTNAME= rasqal-0.9.29
|
||||
CATEGORIES= textproc
|
||||
|
||||
SHARED_LIBS += rasqal 2.0 # 3.0
|
||||
|
||||
HOMEPAGE= http://librdf.org/rasqal/
|
||||
|
||||
MASTER_SITES= http://download.librdf.org/source/
|
||||
|
||||
# LGPL 2.1+, GPL 2+ or Apache 2+
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB += c crypto curl gcrypt gmp gpg-error idn m mpfr raptor2
|
||||
WANTLIB += ssl xml2 xslt yajl z
|
||||
|
||||
MODULES= devel/gettext
|
||||
|
||||
USE_LIBTOOL= Yes
|
||||
|
||||
BUILD_DEPENDS= textproc/raptor
|
||||
|
||||
LIB_DEPENDS= devel/mpfr \
|
||||
devel/libyajl \
|
||||
net/curl \
|
||||
security/libgcrypt \
|
||||
textproc/libxml \
|
||||
textproc/libxslt \
|
||||
textproc/raptor
|
||||
|
||||
CONFIGURE_STYLE= gnu autoconf
|
||||
AUTOCONF_VERSION= 2.69
|
||||
SEPARATE_BUILD= Yes
|
||||
|
||||
CONFIGURE_ARGS= --disable-gtk-doc \
|
||||
--with-digest-library=gcrypt \
|
||||
--with-mpfr=${LOCALBASE} \
|
||||
--with-random-approach=random
|
||||
|
||||
# Avoid problems when ${LOCALBASE}/uuid.h is installed too
|
||||
CONFIGURE_ARGS+= --with-uuid-library=internal
|
||||
|
||||
.include <bsd.port.mk>
|
2
textproc/rasqal/distinfo
Normal file
2
textproc/rasqal/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (rasqal-0.9.29.tar.gz) = iyGNxRt3uZ8zEDqSUSGKRDl0j3PuMPqO5UmrbRUOfFM=
|
||||
SIZE (rasqal-0.9.29.tar.gz) = 1550144
|
44
textproc/rasqal/patches/patch-configure_ac
Normal file
44
textproc/rasqal/patches/patch-configure_ac
Normal file
@ -0,0 +1,44 @@
|
||||
$OpenBSD: patch-configure_ac,v 1.1.1.1 2012/11/12 13:36:55 sthen Exp $
|
||||
--- configure.ac.orig Thu May 3 05:35:11 2012
|
||||
+++ configure.ac Fri Oct 12 16:06:31 2012
|
||||
@@ -590,29 +590,25 @@ if test "X$LIBGCRYPT_CONFIG" = "X"; then
|
||||
AC_CHECK_PROGS(LIBGCRYPT_CONFIG, libgcrypt-config)
|
||||
fi
|
||||
|
||||
-AC_CHECK_HEADERS(gcrypt.h)
|
||||
-
|
||||
-AC_MSG_CHECKING(for gcrypt)
|
||||
GCRYPT_VERSION=`$LIBGCRYPT_CONFIG --version 2>/dev/null`
|
||||
-if test "X$GCRYPT_VERSION" = X; then
|
||||
- have_digest_gcrypt=no
|
||||
-elif test "$ac_cv_header_gcrypt_h" = "yes"; then
|
||||
+if test "X$GCRYPT_VERSION" != X; then
|
||||
oCPPFLAGS="$CPPFLAGS"
|
||||
oLIBS="$LIBS"
|
||||
CPPFLAGS="$CPPFLAGS `$LIBGCRYPT_CONFIG --cflags`"
|
||||
LIBS="$LIBS `$LIBGCRYPT_CONFIG --libs`"
|
||||
-
|
||||
- AC_TRY_LINK([
|
||||
- #include <gcrypt.h>],
|
||||
- [ gcry_md_hd_t hash; gcry_md_open(hash, GCRY_MD_MD5, 0); ],
|
||||
- have_digest_gcrypt=yes,
|
||||
- have_digest_gcrypt=no)
|
||||
-
|
||||
+ AC_CHECK_HEADERS(gcrypt.h)
|
||||
+ if test "$ac_cv_header_gcrypt_h" = "yes"; then
|
||||
+ AC_TRY_LINK([
|
||||
+ #include <gcrypt.h>],
|
||||
+ [ gcry_md_hd_t hash; gcry_md_open(hash, GCRY_MD_MD5, 0); ],
|
||||
+ have_digest_gcrypt=yes,
|
||||
+ have_digest_gcrypt=no)
|
||||
+ fi
|
||||
CPPFLAGS="$LIBRDF_CPPFLAGS"
|
||||
LIBS="$oLIBS"
|
||||
-else
|
||||
- have_digest_gcrypt=no
|
||||
fi
|
||||
+
|
||||
+AC_MSG_CHECKING(for gcrypt)
|
||||
AC_MSG_RESULT($have_digest_gcrypt)
|
||||
|
||||
|
12
textproc/rasqal/pkg/DESCR
Normal file
12
textproc/rasqal/pkg/DESCR
Normal file
@ -0,0 +1,12 @@
|
||||
Rasqal is a C library that handles Resource Description Framework
|
||||
(RDF) query language syntaxes, query construction and execution of
|
||||
queries returning results as bindings, boolean, RDF graphs/triples
|
||||
or syntaxes. The supported query languages are SPARQL 1.0, RDQL,
|
||||
Draft SPARQL Query 1.1, Update 1.1 Syntax and Experimental SPARQL
|
||||
extensions (LAQRS). Rasqal can write binding query results in the
|
||||
SPARQL XML, SPARQL JSON, CSV, TSV, HTML, ASCII tables, RDF/XML and
|
||||
Turtle / N3 and read them in SPARQL XML, RDF/XML and Turtle / N3.
|
||||
|
||||
Rasqal was designed to work closely with the Redland RDF library
|
||||
and the Raptor RDF Syntax Library but is entirely separate from
|
||||
both.
|
14
textproc/rasqal/pkg/PLIST
Normal file
14
textproc/rasqal/pkg/PLIST
Normal file
@ -0,0 +1,14 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/11/12 13:36:55 sthen Exp $
|
||||
@conflict redland-<1.0.14
|
||||
bin/rasqal-config
|
||||
@bin bin/roqet
|
||||
include/rasqal/
|
||||
include/rasqal/rasqal.h
|
||||
lib/librasqal.a
|
||||
lib/librasqal.la
|
||||
@lib lib/librasqal.so.${LIBrasqal_VERSION}
|
||||
lib/pkgconfig/
|
||||
lib/pkgconfig/rasqal.pc
|
||||
@man man/man1/rasqal-config.1
|
||||
@man man/man1/roqet.1
|
||||
@man man/man3/librasqal.3
|
Loading…
Reference in New Issue
Block a user