# $Id$ PortSystem 1.0 name ajp-wsgi version 1.0 categories www maintainers blb 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. platforms darwin homepage http://www.saddi.com/software/ajp-wsgi master_sites ${homepage}/dist/ use_bzip2 yes checksums md5 bce919cac8d964dfecfc4f407002d52b \ sha1 1c17de9dbd8057b0754850b261a798bfcd874cab \ rmd160 a18856043b83dcdcee4ab41f79de4ae13bc19022 depends_lib port:python24 configure { if {[variant_isset python25]} { system "cd ${worksrcpath} && ${prefix}/bin/python2.5 configure.py" } else { system "cd ${worksrcpath} && ${prefix}/bin/python configure.py" } } post-configure { reinplace "s|Python.framework/Versions/.../Python||" ${worksrcpath}/Makefile reinplace "s|LDFLAGS=.*$|LDFLAGS=-L${prefix}/lib|" ${worksrcpath}/Makefile } 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} } variant python25 { depends_lib-delete port:python24 depends_lib-append port:python25 } livecheck.check regex livecheck.url "${master_sites}?C=M;O=D" livecheck.regex "${name}-(\[0-9.\]+)${extract.suffix}"