import ports/textproc/redland-bindings, reworked from a port by dlg, ok jasper

This commit is contained in:
sthen 2012-12-13 13:46:01 +00:00
parent 06edf25d89
commit a09b76c294
12 changed files with 204 additions and 0 deletions

View File

@ -0,0 +1,75 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/12/13 13:46:01 sthen Exp $
COMMENT-main= Redland librdf Perl Bindings
#COMMENT-lua= Redland librdf Lua Bindings
COMMENT-php= Redland librdf PHP Bindings
COMMENT-python= Redland librdf Python Bindings
COMMENT-ruby= Redland librdf Ruby Bindings
CATEGORIES= textproc
V= 1.0.14.1
DISTNAME= redland-bindings-$V
PKGNAME-main= p5-librdf-$V
#PKGNAME-lua= lua-librdf-$V
PKGNAME-php= php-librdf-$V
PKGNAME-python= py-librdf-$V
PKGNAME-ruby= ruby-librdf-$V
HOMEPAGE= http://librdf.org/bindings/
MASTER_SITES= http://download.librdf.org/source/
# LGPL 2.1, or Apache 2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += rdf
# -main is the Perl binding, XXX needs pthreads.
# -lua doesn't work yet.
MULTI_PACKAGES= -main -php -python -ruby
LIB_DEPENDS= textproc/redland
BUILD_DEPENDS= devel/swig
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --with-perl
USE_LIBTOOL= Yes
USE_GROFF= Yes
MODULES+= lang/python
CONFIGURE_ARGS+= --with-python
MODPY_RUNDEP= No
CONFIGURE_ENV+= PYTHON=${MODPY_BIN}
LIB_DEPENDS-python= ${LIB_DEPENDS} ${MODPY_LIB_DEPENDS}
RUN_DEPENDS-python= ${MODPY_RUN_DEPENDS}
WANTLIB-python= ${WANTLIB} ${MODPY_WANTLIB} raptor2 rasqal
# marked experimental and doesn't build cleanly yet.
#MODULES+= lang/lua
#CONFIGURE_ARGS+= --with-lua
#MODLUA_RUNDEP= No
#CONFIGURE_ENV+= LUA=${MODLUA_DEP}
#LIB_DEPENDS-lua= ${LIB_DEPENDS} ${MODLUA_LIB_DEPENDS}
#RUN_DEPENDS-lua= ${MODLUA_RUN_DEPENDS}
#WANTLIB-lua= ${WANTLIB} ${MODLUA_WANTLIB}
MODULES+= lang/php
CONFIGURE_ARGS+= --with-php
MODPHP_RUNDEP= No
CONFIGURE_ENV+= PHP=${MODPHP_BIN} \
PHP_CONFIG=${MODPHP_PHP_CONFIG}
LIB_DEPENDS-php= ${LIB_DEPENDS} ${MODPHP_LIB_DEPENDS}
RUN_DEPENDS-php= ${MODPHP_RUN_DEPENDS}
MODULES+= lang/ruby
CONFIGURE_ARGS+= --with-ruby
MODRUBY_RUNDEP= No
CONFIGURE_ENV+= RUBY=${RUBY}
LIB_DEPENDS-ruby= ${LIB_DEPENDS} ${MODRUBY_LIB_DEPENDS}
RUN_DEPENDS-ruby= ${MODRUBY_RUN_DEPENDS}
WANTLIB-ruby= ${WANTLIB} ${MODRUBY_WANTLIB}
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (redland-bindings-1.0.14.1.tar.gz) = KTJBNlMDFT19BjWnbi3Y0w==
RMD160 (redland-bindings-1.0.14.1.tar.gz) = 0tZ8nwxm4KIgw/3Uip9EH0eJCrs=
SHA1 (redland-bindings-1.0.14.1.tar.gz) = t+E3SYwZC6SUCae5H705Yrfry+8=
SHA256 (redland-bindings-1.0.14.1.tar.gz) = qMw2X8zyksVtUzQeyuV/6HJ+UALgSMol9iUbXlla7EA=
SIZE (redland-bindings-1.0.14.1.tar.gz) = 792557

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-configure,v 1.1.1.1 2012/12/13 13:46:01 sthen Exp $
--- configure.orig Mon Nov 14 09:30:48 2011
+++ configure Wed Oct 31 20:15:46 2012
@@ -12331,7 +12331,7 @@ if test "X$with_php" != Xno ; then
with_php=yes
fi
-PHP_VERSION=`php-config --version 2>/dev/null`
+PHP_VERSION=`$PHP_CONFIG --version 2>/dev/null`
if test "X$PHP_VERSION" != X; then
languages_available="$languages_available php($PHP_VERSION)"
if test $with_php = yes; then

View File

@ -0,0 +1,7 @@
Redland librdf is a library that provides a high-level interface
for the Resource Description Framework (RDF) allowing the RDF graph
to be parsed from XML, stored, queried and manipulated. Redland
implements each of the RDF concepts in its own class via an object
based API.
This package contains the Perl bindings for Redland.

View File

@ -0,0 +1,7 @@
Redland librdf is a library that provides a high-level interface
for the Resource Description Framework (RDF) allowing the RDF graph
to be parsed from XML, stored, queried and manipulated. Redland
implements each of the RDF concepts in its own class via an object
based API.
This package contains the PHP bindings for Redland.

View File

@ -0,0 +1,7 @@
Redland librdf is a library that provides a high-level interface
for the Resource Description Framework (RDF) allowing the RDF graph
to be parsed from XML, stored, queried and manipulated. Redland
implements each of the RDF concepts in its own class via an object
based API.
This package contains the Python bindings for Redland.

View File

@ -0,0 +1,7 @@
Redland librdf is a library that provides a high-level interface
for the Resource Description Framework (RDF) allowing the RDF graph
to be parsed from XML, stored, queried and manipulated. Redland
implements each of the RDF concepts in its own class via an object
based API.
This package contains the Ruby bindings for Redland.

View File

@ -0,0 +1,5 @@
The Redland::RDF Perl bindings require pthread functions, but the perl binary
on OpenBSD is not yet linked with pthreads. To use the Redland::RDF bindings
you will need to preload the thread library like this:
env LD_PRELOAD=/usr/lib/libpthread.so perl

View File

@ -0,0 +1,45 @@
@comment $OpenBSD: PLIST-main,v 1.1.1.1 2012/12/13 13:46:01 sthen Exp $
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/BlankNode.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/CORE.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/Iterator.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/LiteralNode.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/Model.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/Node.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/Parser.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/Query.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/QueryResults.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/RSS.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/Serializer.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/Statement.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/Storage.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/Stream.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/URI.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/URINode.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/RDF/Redland/XMLLiteralNode.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/RDF/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/RDF/Redland/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/RDF/Redland/CORE/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/RDF/Redland/CORE/CORE.bs
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/RDF/Redland/CORE/CORE.so
@man man/man3p/RDF::Redland.3p
@man man/man3p/RDF::Redland::BlankNode.3p
@man man/man3p/RDF::Redland::Iterator.3p
@man man/man3p/RDF::Redland::LiteralNode.3p
@man man/man3p/RDF::Redland::Model.3p
@man man/man3p/RDF::Redland::Node.3p
@man man/man3p/RDF::Redland::Parser.3p
@man man/man3p/RDF::Redland::Query.3p
@man man/man3p/RDF::Redland::QueryResults.3p
@man man/man3p/RDF::Redland::RSS.3p
@man man/man3p/RDF::Redland::Serializer.3p
@man man/man3p/RDF::Redland::Statement.3p
@man man/man3p/RDF::Redland::Storage.3p
@man man/man3p/RDF::Redland::Stream.3p
@man man/man3p/RDF::Redland::URI.3p
@man man/man3p/RDF::Redland::URINode.3p
@man man/man3p/RDF::Redland::XMLLiteralNode.3p

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST-php,v 1.1.1.1 2012/12/13 13:46:01 sthen Exp $
lib/php-${MODPHP_VERSION}/modules/redland.so

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST-python,v 1.1.1.1 2012/12/13 13:46:01 sthen Exp $
lib/python${MODPY_VERSION}/
lib/python${MODPY_VERSION}/site-packages/
lib/python${MODPY_VERSION}/site-packages/RDF.py
lib/python${MODPY_VERSION}/site-packages/Redland.so

View File

@ -0,0 +1,27 @@
@comment $OpenBSD: PLIST-ruby,v 1.1.1.1 2012/12/13 13:46:01 sthen Exp $
lib/ruby/
lib/ruby/${MODRUBY_LIBREV}/
lib/ruby/${MODRUBY_LIBREV}/${MODRUBY_ARCH}/redland.so
lib/ruby/${MODRUBY_LIBREV}/rdf/
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/
lib/ruby/${MODRUBY_LIBREV}/rdf/redland.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/constants.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/convert_owl.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/convertfoaf.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/dc.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/model.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/node.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/parser.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/query.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/queryresults.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/resource.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/schemas/
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/schemas/foaf.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/schemas/owl.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/schemas/rdfs.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/serializer.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/statement.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/store.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/stream.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/uri.rb
lib/ruby/${MODRUBY_LIBREV}/rdf/redland/util.rb