Ticket #35339: Portfile

File Portfile, 2.4 KB (added by cezar.andrei@…, 12 years ago)

New Portfile for zorba 2.5

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.5.0
9set branch      [join [lrange [split ${version} .] 0 1] .]
10license         Apache-2
11categories      textproc devel
12platforms       darwin
13maintainers     nomaintainer
14description     The XQuery Processor
15
16long_description \
17    Zorba is a general purpose XQuery processor implementing in C++ the W3C \
18    family of specifications. It is not an XML database. The query processor \
19    has been designed to be embeddable in a variety of environments such as \
20    other programming languages extended with XML processing capabilities, \
21    browsers, database servers, XML message dispatchers, or smartphones. Its \
22    architecture employes a modular design, which allows customizing the Zorba \
23    query processor to the environments needs. In particular the architecture \
24    of the query processor allows a pluggable XML store (e.g. main memory, DOM \
25    stores, persistent disk-based large stores, S3 stores).
26
27homepage        http://www.zorba-xquery.com/
28master_sites    https://launchpad.net/zorba/trunk/${branch}/+download
29distfiles       ${distname}.gz
30
31checksums       rmd160  473f9a76e1b9cd33e72a326a7c3c43a43de148a1 \
32                sha256  3b6abfe7c393e472a5abe3e3fa0c95261a94a4dfb317ad29a632d1a374baf8ba
33
34# In-source-builds are not allowed
35configure.dir   ${worksrcpath}/build
36configure.compiler  macports-clang-3.1
37
38build.dir       ${configure.dir}
39
40post-extract {
41    xinstall -d ${build.dir}
42}
43
44patchfiles      patch-docdir.diff \
45                patch-src-types-schema-SchemaValidatorFilter.h.diff \
46                patch-test-rbkt-testdriver_mt.cpp.diff
47
48depends_build-append \
49    port:bison \
50    port:flex \
51    port:clang-3.1
52
53depends_lib \
54    port:boost \
55    port:curl \
56    port:icu \
57    port:libiconv \
58    port:libxml2 \
59    port:libxslt \
60    port:xercesc3 \
61    port:tidy
62
63configure.post_args ..
64configure.args-append \
65    -DCURL_FOUND=YES \
66    -DCURL_INCLUDE_DIR=${prefix}/include \
67    -DCURL_LIBRARY=${prefix}/lib/libcurl.dylib \
68    -DZORBA_SUPPRESS_SWIG=YES \
69    -DZORBA_XQUERYX=YES
70
71test.env DYLD_LIBRARY_PATH=${worksrcpath}/src
72test.run yes
73
74livecheck.type  regex
75livecheck.url   https://launchpad.net/zorba/+download
76livecheck.regex zorba-(\[0-9.\]+)${extract.suffix}