[62592] trunk/dports/textproc
nox at macports.org
nox at macports.org
Mon Jan 11 11:42:55 PST 2010
Revision: 62592
http://trac.macports.org/changeset/62592
Author: nox at macports.org
Date: 2010-01-11 11:42:53 -0800 (Mon, 11 Jan 2010)
Log Message:
-----------
Create new port zorba
Zorba is a general purpose XQuery processor implementing in C++ the W3C
family of specifications. It is not an XML database. The query processor
has been designed to be embeddable in a variety of environments such as
other programming languages extended with XML processing capabilities,
browsers, database servers, XML message dispatchers, or smartphones. Its
architecture employes a modular design, which allows customizing the
Zorba query processor to the environment?\226?\128?\153s needs. In particular the
architecture of the query processor allows a pluggable XML store (e.g.
main memory, DOM stores, persistent disk-based large stores, S3 stores).
Zorba runs on most platforms and is available under the Apache license
v2.
Added Paths:
-----------
trunk/dports/textproc/zorba/
trunk/dports/textproc/zorba/Portfile
Added: trunk/dports/textproc/zorba/Portfile
===================================================================
--- trunk/dports/textproc/zorba/Portfile (rev 0)
+++ trunk/dports/textproc/zorba/Portfile 2010-01-11 19:42:53 UTC (rev 62592)
@@ -0,0 +1,121 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup archcheck 1.0
+PortGroup cmake 1.0
+
+name zorba
+version 0.9.8
+license Apache-2
+categories textproc devel
+platforms darwin
+maintainers nox openmaintainer
+description The XQuery Processor
+
+long_description \
+ Zorba is a general purpose XQuery processor implementing in C++ the W3C \
+ family of specifications. It is not an XML database. The query processor \
+ has been designed to be embeddable in a variety of environments such as \
+ other programming languages extended with XML processing capabilities, \
+ browsers, database servers, XML message dispatchers, or smartphones. Its \
+ architecture employes a modular design, which allows customizing the Zorba \
+ query processor to the environment’s needs. In particular the architecture \
+ of the query processor allows a pluggable XML store (e.g. main memory, DOM \
+ stores, persistent disk-based large stores, S3 stores).
+
+homepage http://www.zorba-xquery.com/
+master_sites sourceforge
+
+checksums md5 0fef95ab0fec15c5e3f8f1a35e7f27c3 \
+ sha1 2cc40498e55ac495c056354391c70bf71f6c8cbc \
+ rmd160 31416d4d0d437128e7bcd0ef92ba4b6a186d805e
+
+# In-source-builds are not allowed
+worksrcdir ${distname}/build
+
+post-extract {
+ xinstall -d ${worksrcpath}
+}
+
+patch.dir ${worksrcpath}/..
+
+post-patch {
+ # Do not install dependencies' libraries
+ reinplace s/APPLE/FALSE/ ${patch.dir}/src/CMakeLists.txt
+
+ # Disable erroneous Apple-specific flags
+ reinplace {s/( *APPLE *)/(FALSE)/} ${patch.dir}/CMakeCompiler.txt
+
+ # Disable email functionality
+ reinplace /FIND_PACKAGE(CClient)/d ${patch.dir}/CMakeLists.txt
+
+ # error: extra qualification 'zorba::RCLock::'
+ reinplace s/RCLock::// ${patch.dir}/src/zorbatypes/rchandle.h
+
+ # error: xercesc/internal/XMLGrammarPoolImpl.hpp: No such file or directory
+ reinplace /XMLGrammarPoolImpl/s/internal/framework/ \
+ ${patch.dir}/src/types/schema/xercesIncludes.h
+
+ # XMLSize_t is different of unsigned int on x86_64
+ reinplace {s/const unsigned int length/const XMLSize_t length/} \
+ ${patch.dir}/src/types/schema/SchemaValidatorFilter.cpp \
+ ${patch.dir}/src/types/schema/SchemaValidatorFilter.h
+ reinplace {/attrCount/s/unsigned int/XMLSize_t/} \
+ ${patch.dir}/src/types/schema/SchemaValidatorFilter.h
+
+ # XMLScanner::loadGrammar's toCache argument is optional
+ reinplace {s/toCache/toCache = false/} \
+ ${patch.dir}/src/types/schema/SchemaValidatorFilter.h
+
+ # Install documentation in a unversioned directory
+ reinplace {s/zorba-[^/)]*/zorba/} \
+ ${patch.dir}/doc/c/examples/CMakeLists.txt \
+ ${patch.dir}/doc/CMakeLists.txt \
+ ${patch.dir}/doc/cxx/examples/CMakeLists.txt
+
+ # Disable SWIG bindings documentation
+ reinplace /FIND_PACKAGE(SWIG)/d \
+ ${patch.dir}/doc/CMakeLists.txt
+}
+
+depends_build-append \
+ port:bison \
+ port:flex
+
+depends_lib \
+ port:boost \
+ port:curl \
+ port:icu \
+ port:libiconv \
+ port:libxml2 \
+ port:libxslt \
+ port:xercesc3 \
+ port:tidy
+
+archcheck.files \
+ lib/libboost_program_options-mt.dylib \
+ lib/libcurl.dylib \
+ lib/libiconv.dylib \
+ lib/libicuuc.dylib \
+ lib/libxml2.dylib \
+ lib/libxslt.dylib \
+ lib/libxerces-c.dylib \
+ lib/libtidy.dylib \
+ lib/libz.dylib
+
+configure.post_args ..
+configure.args-append \
+ -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib \
+ -DCURL_FOUND=YES \
+ -DCURL_INCLUDE_DIR=${prefix}/include \
+ -DCURL_LIBRARY=${prefix}/lib/libcurl.dylib \
+ -DZORBA_USE_SWIG=NO \
+ -DZORBA_XQUERYX=YES
+
+build.args ..
+use_parallel_build yes
+
+test.env DYLD_FALLBACK_LIBRARY_PATH=${worksrcpath}/src
+test.run yes
+
+destroot.args ..
Property changes on: trunk/dports/textproc/zorba/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100111/40b02a9b/attachment.html>
More information about the macports-changes
mailing list