Ignore:
Timestamp:
Jan 5, 2015, 12:49:05 AM (5 years ago)
Author:
larryv@…
Message:

asciidoc: Use Python 2.7 always (#46398)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/asciidoc/Portfile

    r117218 r131004  
    66name                asciidoc
    77version             8.6.9
    8 revision            1
     8revision            2
    99checksums           sha256  78db9d0567c8ab6570a6eff7ffdf84eadd91f2dfc0a92a2d0105d323cab4e1f0 \
    1010                    rmd160  f19936593e3bed2755d77d38dd78a4769f77c7fa
     
    2929master_sites        sourceforge
    3030
     31depends_lib         port:python27
    3132depends_run         port:docbook-xml-4.5 \
    3233                    port:fop \
    3334                    port:libxml2
    3435
    35 variant python25 conflicts python26 python27 description {Use python 2.5} {
    36     depends_lib-append        port:python25
    37     configure.python          ${prefix}/bin/python2.5
    38 
    39     post-destroot {
    40     reinplace "s:#!/usr/bin/env python:#!${prefix}/bin/python2.5:" \
    41         ${destroot}${prefix}/bin/asciidoc \
    42         ${destroot}${prefix}/bin/a2x
    43     }
    44 }
    45 
    46 variant python26 conflicts python25 python27 description {Use python 2.6} {
    47     depends_lib-append        port:python26
    48     configure.python          ${prefix}/bin/python2.6
    49 
    50     post-destroot {
    51     reinplace "s:#!/usr/bin/env python:#!${prefix}/bin/python2.6:" \
    52         ${destroot}${prefix}/bin/asciidoc \
    53         ${destroot}${prefix}/bin/a2x
    54     }
    55 }
    56 
    57 variant python27 conflicts python25 python26 description {Use python 2.7} {
    58     depends_lib-append        port:python27
    59     configure.python          ${prefix}/bin/python2.7
    60 
    61     post-destroot {
    62     reinplace "s:#!/usr/bin/env python:#!${prefix}/bin/python2.7:" \
    63         ${destroot}${prefix}/bin/asciidoc \
    64         ${destroot}${prefix}/bin/a2x
    65     }
    66 }
    67 
    68 if {![variant_isset python25] && ![variant_isset python26]} {
    69     default_variants +python27
    70 }
     36configure.python    ${prefix}/bin/python2.7
    7137
    7238destroot.target install docs vimdir=${prefix}/share/vim/vimfiles/
     
    7642}
    7743
     44post-destroot {
     45    reinplace "s:#!/usr/bin/env python:#!${prefix}/bin/python2.7:" \
     46        ${destroot}${prefix}/bin/asciidoc \
     47        ${destroot}${prefix}/bin/a2x
     48}
     49
    7850platform darwin {
    7951    # Avoid hidden dependency on gsed
Note: See TracChangeset for help on using the changeset viewer.