Ticket #35339: Portfile-zorba-2.8.0

File Portfile-zorba-2.8.0, 3.5 KB (added by cezar.andrei@…, 12 years ago)

Zorba 2.8 portfile

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 93567 2012-05-27 06:31:50Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       cmake 1.0
6
7name            zorba
8version         2.8.0
9revision        0
10set branch      [join [lrange [split ${version} .] 0 1] .]
11license         Apache-2
12categories      textproc devel
13platforms       darwin
14maintainers     nomaintainer
15description     The XQuery Processor
16
17long_description \
18    Zorba is a general purpose XQuery processor implementing in C++ the W3C \
19    family of specifications. It is not an XML database. The query processor \
20    has been designed to be embeddable in a variety of environments such as \
21    other programming languages extended with XML processing capabilities, \
22    browsers, database servers, XML message dispatchers, or smartphones. Its \
23    architecture employes a modular design, which allows customizing the Zorba \
24    query processor to the environments needs. In particular the architecture \
25    of the query processor allows a pluggable XML store (e.g. main memory, DOM \
26    stores, persistent disk-based large stores, S3 stores).
27
28homepage        http://www.zorba-xquery.com/
29#master_sites    https://launchpad.net/zorba/trunk/${branch}/+download
30master_sites    http://my.zorba-xquery.com/tmp/
31distfiles       ${name}-src-2.8.0.tar.gz \
32            ${name}_modules-src-2.8.0.tar.gz
33
34checksums \
35                zorba-src-2.8.0.tar.gz \
36                    rmd160  4252386ee65f004a64ccf3abfbecb15c1e25e143 \
37                    sha256  f0168e3fecd0a42dc2350790099f8b1cf02ba1395bbf4e6b367f5f04c41eb9aa \
38        zorba_modules-src-2.8.0.tar.gz \
39                    rmd160  bbf6fe10e7fdb111a49ba54260ba809a447cba50 \
40                    sha256  b4f8e8d193faa80133ef0a1ac26ffbbf6ff2660d8c8f7cb406d042b9a56625ad
41
42# In-source-builds are not allowed
43configure.dir   ${worksrcpath}/build
44
45build.dir       ${configure.dir}
46
47#use_parallel_build no
48
49post-extract {
50    xinstall -d ${build.dir}
51}
52
53patchfiles      patch-src-types-schema-SchemaValidatorFilter.h.diff
54                #patch-docdir.diff
55                #patch-test-rbkt-testdriver_mt.cpp.diff
56
57# flex and bison are not required, it's actually descuraged to use them
58#depends_build-append \
59#    port:bison \
60#    port:flex
61
62depends_lib \
63    port:boost \
64    port:curl \
65    port:icu \
66    port:libiconv \
67    port:libxml2 \
68    port:libxslt \
69    port:xercesc3 \
70    port:tidy \
71    port:fop \
72    port:geos \
73        port:libarchive
74       
75# External modules not installed:       
76#    port:ImageMagick   - image   skip this, creates too big .mpkg files
77#                       - schema-tools    xmlbeans port not available
78#                       - read-pdf        fontbox port not available
79#    port:cclient       - email           breaks zorba build
80
81# Dependencies for external modules
82#    port:cclient       - email   
83#    port:geos          - geo
84#    port:libarchive    - archive
85#    port:libxslt       - language/xslt
86#    port:fop           - xsl-fo
87
88
89configure.post_args ..
90configure.args-append \
91    -DCURL_FOUND=YES \
92    -DCURL_INCLUDE_DIR=${prefix}/include \
93    -DCURL_LIBRARY=${prefix}/lib/libcurl.dylib \
94    -DZORBA_SUPPRESS_SWIG=YES \
95    -DZORBA_XQUERYX=YES \
96        -DZORBA_SUPPRESS_LIBARCHIVE=YES
97
98test.env DYLD_LIBRARY_PATH=${worksrcpath}/src
99test.run yes
100
101livecheck.type  regex
102#livecheck.url   https://launchpad.net/zorba/+download
103livecheck.url   http://my.zorba-xquery.com/tmp/
104livecheck.regex zorba-(\[0-9.\]+)${extract.suffix}