source: trunk/dports/php/php5-zorba/Portfile

Last change on this file was 94610, checked in by ryandesign@…, 5 years ago

take over unmaintained PHP extensions (with openmaintainer)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 94610 2012-06-25 03:31:00Z ryandesign@macports.org $
2
3PortSystem      1.0
4PortGroup       php5extension 1.0
5
6php5extension.setup zorba 0.9.9 pecl
7revision        1
8php5extension.extensions zorba_api
9license         PHP
10categories      php devel
11platforms       darwin
12maintainers     ryandesign openmaintainer
13description     PHP support for XQuery
14
15long_description \
16    This extension is a wrapper of Zorba library to allow PHP developers to \
17    use XQuery.
18
19homepage        http://www.zorba-xquery.com/
20
21checksums       md5     68435be7b5be3c7006d524d14f3f7801 \
22                sha1    6df7b12072359878052253f8ccc783fa72d751fc \
23                rmd160  2dd8ebb5f312e4bf431a2e1bbc342ddfa3f9c518
24
25depends_lib-append \
26    port:zorba
27
28configure.args-append \
29    --with-zorba_api=${prefix}
30
31configure.cppflags-append \
32    -I${prefix}/include/zorba
33
34use_parallel_build yes
35
36post-patch {
37    # Library files zorba not found
38    # configure: error: Is the zorba_api distribution installed properly?
39    reinplace /LIBNAMES/s/zorba/zorba_simplestore/ ${worksrcpath}/config.m4
40
41    # Libraries extension is ".dylib" on Darwin, not ".so"
42    reinplace {s/\.so/\.dylib/} ${worksrcpath}/config.m4
43
44    # Header "zorba/zorba.h" is in "${prefix}/include/zorba"
45    reinplace {s:/include:/include/zorba:} ${worksrcpath}/config.m4
46}
47
48post-destroot {
49    set docdir ${prefix}/share/doc/${name}
50    xinstall -d ${destroot}${docdir}
51    xinstall -m 644 -W ${worksrcpath} CREDITS ${destroot}${docdir}
52}
53
54livecheck.regex {(\d+(?:\.\d+)*)</a></th>}
Note: See TracBrowser for help on using the repository browser.