Ticket #11581: Portfile

File Portfile, 1.6 KB (added by blb@…, 17 years ago)

Portfile for ajp-wsgi 1.0

Line 
1# $Id: $
2
3PortSystem       1.0
4name             ajp-wsgi
5version          1.0
6categories       www
7maintainers      blb@macports.org
8description      WSGI server/gateway implementing AJP
9long_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
16platforms        darwin
17
18homepage         http://www.saddi.com/software/ajp-wsgi
19master_sites     ${homepage}/dist/
20use_bzip2        yes
21
22checksums        md5 bce919cac8d964dfecfc4f407002d52b \
23                 sha1 1c17de9dbd8057b0754850b261a798bfcd874cab \
24                 rmd160 a18856043b83dcdcee4ab41f79de4ae13bc19022
25
26depends_lib      port:python24
27
28configure {
29   cd ${worksrcpath}
30   system "${prefix}/bin/python configure.py"
31}
32
33post-configure {
34   reinplace "s|Python.framework/Versions/.../Python||" ${worksrcpath}/Makefile
35   reinplace "s|LDFLAGS=.*$|LDFLAGS=-L${prefix}/lib|" ${worksrcpath}/Makefile
36}
37
38destroot {
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
49variant python25 {
50   depends_lib-delete port:python24
51   depends_lib-append port:python25
52}
53