Ticket #35339: Portfile-zorba2.7

File Portfile-zorba2.7, 3.4 KB (added by cezar.andrei@…, 12 years ago)

Portfile for Zorba 2.7

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.7.0
9revision        3
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.7.0.tar.gz \
32            ${name}_modules-src-2.7.0.tar.gz
33
34checksums \
35        zorba-src-2.7.0.tar.gz \
36                    rmd160  7255a53311adc4e7c3f15ddee8c4025d7a04017a \
37                    sha256  68aba41afb2f24bc21963cef300164f8de700f52da56382502820a683cf191aa \
38                zorba_modules-src-2.7.0.tar.gz \
39                    rmd160  b5bef2f7465365b700ba8c2737038e2ce14384f5 \
40                    sha256  bf61f56cbbbb1542e46a210459b285edc6fc79fcf1f26e612affd82eb00f5669
41
42
43# In-source-builds are not allowed
44configure.dir   ${worksrcpath}/build
45
46build.dir       ${configure.dir}
47
48#use_parallel_build no
49
50post-extract {
51    xinstall -d ${build.dir}
52}
53
54patchfiles      patch-src-types-schema-SchemaValidatorFilter.h.diff
55                #patch-docdir.diff
56                #patch-test-rbkt-testdriver_mt.cpp.diff
57
58# flex and bison are not required, it's actually descuraged to use them
59#depends_build-append \
60#    port:bison \
61#    port:flex
62
63depends_lib \
64    port:boost \
65    port:curl \
66    port:icu \
67    port:libiconv \
68    port:libxml2 \
69    port:libxslt \
70    port:xercesc3 \
71    port:tidy \
72    port:fop \
73    port:geos \
74        port:libarchive
75       
76# External modules not installed:       
77#    port:ImageMagick   - image   skip this, creates too big .mpkg files
78#                       - schema-tools    xmlbeans port not available
79#                       - read-pdf        fontbox port not available
80#    port:cclient       - email           breaks zorba build
81
82# Dependencies for external modules
83#    port:cclient       - email   
84#    port:geos          - geo
85#    port:libarchive    - archive
86#    port:libxslt       - language/xslt
87#    port:fop           - xsl-fo
88
89
90configure.post_args ..
91configure.args-append \
92    -DCURL_FOUND=YES \
93    -DCURL_INCLUDE_DIR=${prefix}/include \
94    -DCURL_LIBRARY=${prefix}/lib/libcurl.dylib \
95    -DZORBA_SUPPRESS_SWIG=YES \
96    -DZORBA_XQUERYX=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}