Ignore:
Timestamp:
Jul 24, 2011, 7:02:25 AM (8 years ago)
Author:
perry@…
Message:

security/cfv now uses Python 2.7 (by default) or Python 3.2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/security/cfv/Portfile

    r67573 r81045  
    55name                cfv
    66version             1.18.3
     7revision            1
    78categories          security
    89maintainers         perry openmaintainer
     
    2122livecheck.url       ${homepage}
    2223
    23 depends_lib         port:python26
    24 
    2524master_sites        sourceforge
    2625
     
    2928patchfiles          patch-Makefile.diff patch-cfv.diff
    3029
    31 post-patch {
    32     reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/Makefile
    33     reinplace "s|@PYTHON@|${prefix}/bin/python2.6|" ${worksrcpath}/Makefile ${worksrcpath}/cfv
    34 }
    35 
    3630use_configure       no
    3731
    3832build               {}
     33
     34if {![variant_isset python27] && ![variant_isset python32]} {
     35    default_variants    +python27
     36}
     37
     38variant python27 conflicts python32 description {Use Python 2.7} {
     39    depends_lib port:python27
     40
     41    post-patch {
     42        reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/Makefile
     43        reinplace "s|@PYTHON@|${prefix}/bin/python2.7|" ${worksrcpath}/Makefile ${worksrcpath}/cfv
     44    }
     45}
     46
     47variant python32 conflicts python27 description {Use Python 3.2} {
     48    depends_lib port:python32
     49
     50    post-patch {
     51        reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/Makefile
     52        reinplace "s|@PYTHON@|${prefix}/bin/python3.2|" ${worksrcpath}/Makefile ${worksrcpath}/cfv
     53    }
     54}
Note: See TracChangeset for help on using the changeset viewer.