diff options
author | edwin <edwin@FreeBSD.org> | 2004-12-23 15:49:35 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2004-12-23 15:49:35 +0800 |
commit | 40a73c939fada707bdc5dc9ba2549dbb1be00d64 (patch) | |
tree | 1278e00a9368efc4cdd148e3e643f65d6e54cdfe /textproc | |
parent | ad02d950a4b28c42c425ca6b656819e1b3f599f1 (diff) | |
download | freebsd-ports-gnome-40a73c939fada707bdc5dc9ba2549dbb1be00d64.tar.gz freebsd-ports-gnome-40a73c939fada707bdc5dc9ba2549dbb1be00d64.tar.zst freebsd-ports-gnome-40a73c939fada707bdc5dc9ba2549dbb1be00d64.zip |
New port: textproc/redland-bindings - Language bindings for the redland rdf library'
The Redland RDF parser package (textproc/redland) recently
forked into two packages -- one for the core library, and
another for the bindings for various languages. This port
is for the language bindings for redland.
The textproc/redland port may itself have to be updated/changed,
as redland-bindings requires librdf.la to build the Java
component (possibly Ruby or TCL too, unable to test), and
this is not installed by the textproc/redland port currently.
I will work on a new redland port soon.
The OPTIONS part of this port could probably be improved
by somebody with more knowledge on the subject than I (this
is my first attempt at writing a port), but I see that there
are fairly recent discussions on the mailing lists regarding
using OPTIONS together with WITH_ -> USE_
I will be actively using this software on FreeBSD for a
number of years to come, and will happily act as the port
maintainer.
PR: ports/70374
Submitted by: Russell Cloran <russell.ru.ac.za@rucus.ru.ac.za>
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/redland-bindings/Makefile | 122 | ||||
-rw-r--r-- | textproc/redland-bindings/distinfo | 2 | ||||
-rw-r--r-- | textproc/redland-bindings/files/patch-configure-java | 16 | ||||
-rw-r--r-- | textproc/redland-bindings/pkg-descr | 10 | ||||
-rw-r--r-- | textproc/redland-bindings/pkg-plist | 32 |
6 files changed, 183 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index 949e4dc9183a..f0579dbd785d 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -528,6 +528,7 @@ SUBDIR += rand SUBDIR += raptor SUBDIR += redland + SUBDIR += redland-bindings SUBDIR += replaceit SUBDIR += resume SUBDIR += resume-extensions diff --git a/textproc/redland-bindings/Makefile b/textproc/redland-bindings/Makefile new file mode 100644 index 000000000000..9a969c7f1954 --- /dev/null +++ b/textproc/redland-bindings/Makefile @@ -0,0 +1,122 @@ +# New ports collection makefile for: redland-bindings +# Date created: 2004-08-10 +# Whom: Russell Cloran <russell@rucus.ru.ac.za> +# +# $FreeBSD$ +# + +PORTNAME= redland-bindings +PORTVERSION= 0.9.18.1 +CATEGORIES= textproc +MASTER_SITES= http://librdf.org/dist/source/ + +MAINTAINER= russell@rucus.ru.ac.za +COMMENT= Language bindings for the Redland package + +#OPTIONS= JAVA "Add Java bindings" off \ +# PERL "Add Perl bindings" off \ +# PHP "Add PHP bindings" off \ +# PYTHON "Add Python bindings" off \ +# RUBY "Add Ruby bindings" off \ +# TCL "Add TCL bindings" off +LIB_DEPENDS= rdf.0:${PORTSDIR}/textproc/redland +.if defined(WITH_JAVA) +BUILD_DEPENDS= ${LOCALBASE}/lib/librdf.la:${PORTSDIR}/textproc/redland +.endif + +.if defined(WITH_JAVA) +USE_JAVA= yes +JAVA_VESION= 1.3+ +CONFIGURE_ARGS+= --with-java --with-jdk=${JAVA_HOME} +PLIST_SUB+= WITH_JAVA="" +.else +PLIST_SUB+= WITH_JAVA="@comment " +.endif +.if defined(WITH_PERL) +USE_PERL5= yes +CONFIGURE_ARGS+= --with-perl +PLIST_SUB+= WITH_PERL="" +MAN3= RDF::Redland.3 \ + RDF::Redland::Iterator.3 \ + RDF::Redland::Model.3 \ + RDF::Redland::Node.3 \ + RDF::Redland::Parser.3 \ + RDF::Redland::Query.3 \ + RDF::Redland::QueryResults.3 \ + RDF::Redland::RSS.3 \ + RDF::Redland::Serializer.3 \ + RDF::Redland::Statement.3 \ + RDF::Redland::Storage.3 \ + RDF::Redland::Stream.3 \ + RDF::Redland::URI.3 +.else +PLIST_SUB+= WITH_PERL="@comment " +.endif +.if defined(WITH_PHP) +USE_PHP= yes +USE_PHP_BUILD= yes +CONFIGURE_ARGS+= --with-php +PLIST_SUB+= WITH_PHP="" +.else +PLIST_SUB+= WITH_PHP="@comment " +.endif +.if defined(WITH_PYTHON) +USE_PYTHON= yes +CONFIGURE_ARGS+= --with-python +PLIST_SUB+= WITH_PYTHON="" +.else +PLIST_SUB+= WITH_PYTHON="@comment " +.endif +.if defined(WITH_RUBY) +USE_RUBY= yes +CONFIGURE_ARGS+= --with-ruby +PLIST_SUB+= WITH_RUBY="" +.else +PLIST_SUB+= WITH_RUBY="@comment " +.endif +.if defined(WITH_TCL) +.if defined(WITH_TCL83) +TCL_SHORT_V= 83 +TCL_LONG_V= 8.3 +.else +TCL_SHORT_V= 84 +TCL_LONG_V= 8.4 +.endif +PLIST_SUB+= WITH_TCL="" +PLIST_SUB+= TCL_DIR="lib/tcl/${TCL_LONG_V}" +CONFIGURE_ARGS+= --with-tcltk=${LOCALBASE}/bin/tclsh${TCL_LONG_V} +LIB_DEPENDS+= tcl${TCL_SHORT_V}:${PORTSDIR}/lang/tcl${TCL_SHORT_V} +.else +PLIST_SUB+= WITH_TCL="@comment " +.endif + +GNU_CONFIGURE= yes + +pre-everything:: + @${ECHO_MSG} "" + @${ECHO_MSG} "**********************************************" + @${ECHO_MSG} "The following make variables can be set to" + @${ECHO_MSG} "enable various languages" + @${ECHO_MSG} "" + @${ECHO_MSG} "WITH_JAVA - Java bindings" + @${ECHO_MSG} "WITH_PERL - Perl module" + @${ECHO_MSG} "WITH_PHP - PHP extension" + @${ECHO_MSG} "WITH_PYTHON - Python extension" + @${ECHO_MSG} "WITH_RUBY - Ruby bindings" + @${ECHO_MSG} "WITH_TCL - TCL bindings" + @${ECHO_MSG} "**********************************************" + @${ECHO_MSG} "" + +post-configure:: + @${TOUCH} ${WRKSRC}/java/core_wrap.c + @${TOUCH} ${WRKSRC}/java/org/librdf/redland/core.java + @${TOUCH} ${WRKSRC}/java/org/librdf/redland/core.java.in + @${TOUCH} ${WRKSRC}/perl/CORE_wrap.c + @${TOUCH} ${WRKSRC}/perl/lib/RDF/Redland/CORE.pm + @${TOUCH} ${WRKSRC}/perl/lib/RDF/Redland/CORE.pm + @${TOUCH} ${WRKSRC}/php/redland_wrap.c + @${TOUCH} ${WRKSRC}/python/Redland_wrap.c + @${TOUCH} ${WRKSRC}/ruby/redland_wrap.c + @${TOUCH} ${WRKSRC}/tcl/Redland_wrap.c + +.include <bsd.port.mk> diff --git a/textproc/redland-bindings/distinfo b/textproc/redland-bindings/distinfo new file mode 100644 index 000000000000..c8edd2b17000 --- /dev/null +++ b/textproc/redland-bindings/distinfo @@ -0,0 +1,2 @@ +MD5 (redland-bindings-0.9.18.1.tar.gz) = 19f99c04da51705e8b1db5c969151af3 +SIZE (redland-bindings-0.9.18.1.tar.gz) = 650845 diff --git a/textproc/redland-bindings/files/patch-configure-java b/textproc/redland-bindings/files/patch-configure-java new file mode 100644 index 000000000000..681530004722 --- /dev/null +++ b/textproc/redland-bindings/files/patch-configure-java @@ -0,0 +1,16 @@ +--- configure~ 2004-08-11 09:03:29.649228648 +0200 ++++ configure 2004-08-11 09:03:29.655227736 +0200 +@@ -20463,11 +20463,11 @@ + done + done + else +- jdkinc=$jdkdir/include ++ jdkinc=$jdk/include + fi + + if test "X$jdk" != X -a -r $jdkinc/jni.h; then +- inc2=`find $jdkinc -type d | grep -v "$jdkinc\$" | head -1` ++ inc2=`find $jdkinc -type d | grep -v "$jdkinc\$" | head -n 1` + JDK_INCLUDES="-I$jdkinc" + if test -r $inc2/jni_md.h; then + JDK_INCLUDES="$JDK_INCLUDES -I$inc2" diff --git a/textproc/redland-bindings/pkg-descr b/textproc/redland-bindings/pkg-descr new file mode 100644 index 000000000000..f5e6b0d3192d --- /dev/null +++ b/textproc/redland-bindings/pkg-descr @@ -0,0 +1,10 @@ +Redland is a library that provides a high-level interface for RDF +allowing +the model to be stored, queried and manipulated. This package provides +a +number of bindings for various languages for the Redland library. + +WWW: http://www.redland.opensource.ac.uk/bindings/ + +- Russell Cloran +russell@rucus.ru.ac.za diff --git a/textproc/redland-bindings/pkg-plist b/textproc/redland-bindings/pkg-plist new file mode 100644 index 000000000000..ccb62c6f1d76 --- /dev/null +++ b/textproc/redland-bindings/pkg-plist @@ -0,0 +1,32 @@ +@comment $FreeBSD$ +%%WITH_JAVA%%lib/java/librdf-java.a +@comment %%WITH_JAVA%%lib/java/librdf-java.la +%%WITH_JAVA%%lib/java/librdf-java.so +%%WITH_JAVA%%lib/java/librdf-java.so.0 +%%WITH_JAVA%%share/java/librdf-java.jar +%%WITH_JAVA%%@dirrm lib/java +%%WITH_JAVA%%@dirrm share/java +%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/RDF/Redland.pm +%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/RDF/Redland/CORE.pm +%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/RDF/Redland/Iterator.pm +%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/RDF/Redland/Model.pm +%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/RDF/Redland/Node.pm +%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/RDF/Redland/Parser.pm +%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/RDF/Redland/Query.pm +%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/RDF/Redland/QueryResults.pm +%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/RDF/Redland/RSS.pm +%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/RDF/Redland/Serializer.pm +%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/RDF/Redland/Statement.pm +%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/RDF/Redland/Storage.pm +%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/RDF/Redland/Stream.pm +%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/RDF/Redland/URI.pm +%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/RDF/Redland/CORE.bs +%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/RDF/Redland/CORE.so +%%WITH_PHP%%%%PHP_EXT_DIR%%/redland.so +%%WITH_PHP%%@dirrm %%PHP_EXT_DIR%% +%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/Redland.so +%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/RDF.py +%%WITH_PYTHON%%@dirrm %%PYTHON_SITELIBDIR%% +%%WITH_PYTHON%%@dirrm %%PYTHON_SITELIBDIR%% +%%WITH_RUBY%%%%RUBY_SITEARCHLIBDIR%%/redland.so +%%WITH_TCL%%%%TCL_DIR%%/Redland.so |