1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name ajp-wsgi |
---|
5 | version 1.0 |
---|
6 | categories www |
---|
7 | maintainers blb@macports.org |
---|
8 | description WSGI server/gateway implementing AJP |
---|
9 | long_description \ |
---|
10 | ajp-wsgi is a WSGI server/gateway that implements AJP 1.3 to \ |
---|
11 | communicate with a web server. It is written in C and embeds a Python \ |
---|
12 | interpreter to run the actual application. Since all of the low-level \ |
---|
13 | transport code is in C, ajp-wsgi is significantly faster than flup's \ |
---|
14 | pure-Python ajp server. |
---|
15 | |
---|
16 | platforms darwin |
---|
17 | |
---|
18 | homepage http://www.saddi.com/software/ajp-wsgi |
---|
19 | master_sites ${homepage}/dist/ |
---|
20 | use_bzip2 yes |
---|
21 | |
---|
22 | checksums md5 bce919cac8d964dfecfc4f407002d52b \ |
---|
23 | sha1 1c17de9dbd8057b0754850b261a798bfcd874cab \ |
---|
24 | rmd160 a18856043b83dcdcee4ab41f79de4ae13bc19022 |
---|
25 | |
---|
26 | depends_lib port:python24 |
---|
27 | |
---|
28 | configure { |
---|
29 | cd ${worksrcpath} |
---|
30 | system "${prefix}/bin/python configure.py" |
---|
31 | } |
---|
32 | |
---|
33 | post-configure { |
---|
34 | reinplace "s|Python.framework/Versions/.../Python||" ${worksrcpath}/Makefile |
---|
35 | reinplace "s|LDFLAGS=.*$|LDFLAGS=-L${prefix}/lib|" ${worksrcpath}/Makefile |
---|
36 | } |
---|
37 | |
---|
38 | destroot { |
---|
39 | xinstall -m 755 -d ${destroot}${prefix}/bin \ |
---|
40 | ${destroot}${prefix}/share/doc/${name} \ |
---|
41 | ${destroot}${prefix}/share/examples/${name} |
---|
42 | xinstall -m 755 -W ${worksrcpath} ${name} ${destroot}${prefix}/bin |
---|
43 | xinstall -m 644 -W ${worksrcpath} ChangeLog README \ |
---|
44 | ${destroot}${prefix}/share/doc/${name} |
---|
45 | xinstall -m 644 -W ${worksrcpath} test.py \ |
---|
46 | ${destroot}${prefix}/share/examples/${name} |
---|
47 | } |
---|
48 | |
---|
49 | variant python25 { |
---|
50 | depends_lib-delete port:python24 |
---|
51 | depends_lib-append port:python25 |
---|
52 | } |
---|
53 | |
---|