# -*- 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

PortSystem          1.0

name                ajp-wsgi
version             1.1
revision            1
categories          www
platforms           darwin
license             BSD
maintainers         nomaintainer

description         WSGI server/gateway implementing AJP
long_description    ajp-wsgi is a WSGI server/gateway that implements \
                    AJP 1.3 to communicate with a web server.  It is \
                    written in C and embeds a Python interpreter to \
                    run the actual application.  Since all of the \
                    low-level transport code is in C, ajp-wsgi is \
                    significantly faster than flup's pure-Python ajp \
                    server.
homepage            http://www.saddi.com/software/ajp-wsgi

depends_lib-append  port:python27

master_sites        ${homepage}/dist/
use_bzip2           yes
checksums           md5     406bc951520186d3b17cc0abae6e32f6 \
                    sha1    85e30d6f612f42485caa4ee406159661760de575 \
                    rmd160  7f7b7d80f3daff25bbdfcb988c381b0d1a24722a

configure.cmd       ${prefix}/bin/python2.7
configure.pre_args
configure.args      configure.py

destroot {
   xinstall -m 755 -d ${destroot}${prefix}/bin \
      ${destroot}${prefix}/share/doc/${name} \
      ${destroot}${prefix}/share/examples/${name}
   xinstall -m 755 -W ${worksrcpath} ${name} ${destroot}${prefix}/bin
   xinstall -m 644 -W ${worksrcpath} ChangeLog README \
      ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath} test.py \
      ${destroot}${prefix}/share/examples/${name}
}

livecheck.type      regex
livecheck.url       "${master_sites}?C=M;O=D"
livecheck.regex     "${name}-(\[0-9.\]+)${extract.suffix}"