Changeset 49416


Ignore:
Timestamp:
Apr 9, 2009, 6:00:23 AM (10 years ago)
Author:
blb@…
Message:

www/ajp-wsgi - use variants always to select which python version to use
(and default to 2.6 when not selected now that trac uses that version);
make sure it links properly with python25 when selected

Location:
trunk/dports/www/ajp-wsgi
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/www/ajp-wsgi/Portfile

    r41293 r49416  
    44name             ajp-wsgi
    55version          1.0
     6revision         1
    67categories       www
    78maintainers      blb
     
    2425                 rmd160 a18856043b83dcdcee4ab41f79de4ae13bc19022
    2526
    26 depends_lib      port:python24
    27 
    28 configure {
    29    if {[variant_isset python25]} {
    30        system "cd ${worksrcpath} && ${prefix}/bin/python2.5 configure.py"
    31    } else {
    32        system "cd ${worksrcpath} && ${prefix}/bin/python configure.py"
    33    }
    34 }
    35 
    36 post-configure {
    37    reinplace "s|Python.framework/Versions/.../Python||" ${worksrcpath}/Makefile
    38    reinplace "s|LDFLAGS=.*$|LDFLAGS=-L${prefix}/lib|" ${worksrcpath}/Makefile
    39 }
     27configure.args   configure.py
     28configure.pre_args
    4029
    4130destroot {
     
    5039}
    5140
    52 variant python25 {
    53    depends_lib-delete port:python24
    54    depends_lib-append port:python25
     41variant python24 conflicts python25 python26 description {Use with Python 2.4} {
     42   depends_lib-append   port:python24
     43   configure.cmd        ${prefix}/bin/python2.4
     44}
     45
     46variant python25 conflicts python24 python26 description {Use with Python 2.5} {
     47   depends_lib-append   port:python25
     48   configure.cmd        ${prefix}/bin/python2.5
     49}
     50
     51variant python26 conflicts python24 python25 description {Use with Python 2.6} {
     52   depends_lib-append   port:python26
     53   configure.cmd        ${prefix}/bin/python2.6
     54}
     55
     56if {![variant_isset python24] && ![variant_isset python25] && ![variant_isset python26]} {
     57   default_variants     +python26
     58}
     59
     60platform macosx {
     61   if {[variant_isset python25]} {
     62      # work around funky LINKFORSHARED with python25
     63      patchfiles-append   patch-Makefile.in.py25mac.diff
     64      post-patch {
     65         reinplace "s|@@@FRAMEWORKS_DIR@@@|${frameworks_dir}|g" \
     66            ${worksrcpath}/Makefile.in
     67      }
     68   }
    5569}
    5670
Note: See TracChangeset for help on using the changeset viewer.