# $Id: Portfile 69230 2010-06-29 05:57:42Z blb@macports.org $ PortSystem 1.0 name ajp-wsgi version 1.0 revision 1 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 configure.args configure.py configure.pre_args 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 python24 conflicts python25 python26 description {Use with Python 2.4} { depends_lib-append port:python24 configure.cmd ${prefix}/bin/python2.4 } variant python25 conflicts python24 python26 description {Use with Python 2.5} { depends_lib-append port:python25 configure.cmd ${prefix}/bin/python2.5 } variant python26 conflicts python24 python25 description {Use with Python 2.6} { depends_lib-append port:python26 configure.cmd ${prefix}/bin/python2.6 } if {![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26]} { default_variants +python26 } platform macosx { if {[variant_isset python25]} { # work around funky LINKFORSHARED with python25 patchfiles-append patch-Makefile.in.py25mac.diff post-patch { reinplace "s|@@@FRAMEWORKS_DIR@@@|${frameworks_dir}|g" \ ${worksrcpath}/Makefile.in } } } livecheck.type regex livecheck.url "${master_sites}?C=M;O=D" livecheck.regex "${name}-(\[0-9.\]+)${extract.suffix}"