Ticket #46398: asciidoc.python.patch

File asciidoc.python.patch, 2.3 KB (added by larryv (Lawrence Velázquez), 9 years ago)
  • dports/textproc/asciidoc/Portfile

    diff --git a/dports/textproc/asciidoc/Portfile b/dports/textproc/asciidoc/Portfile
    index 394cdaf..2f266a1 100644
    a b PortSystem 1.0 
    55
    66name                asciidoc
    77version             8.6.9
    8 revision            1
     8revision            2
    99checksums           sha256  78db9d0567c8ab6570a6eff7ffdf84eadd91f2dfc0a92a2d0105d323cab4e1f0 \
    1010                    rmd160  f19936593e3bed2755d77d38dd78a4769f77c7fa
    1111
    supported_archs noarch 
    2828homepage            http://www.methods.co.nz/asciidoc/
    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
     36configure.python    ${prefix}/bin/python2.7
    3837
    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
     38destroot.target install docs vimdir=${prefix}/share/vim/vimfiles/
    4939
    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     }
     40pre-destroot {
     41    xinstall -d ${destroot}${prefix}/share/vim/vimfiles
    5542}
    5643
    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 {
     44post-destroot {
    6245    reinplace "s:#!/usr/bin/env python:#!${prefix}/bin/python2.7:" \
    6346        ${destroot}${prefix}/bin/asciidoc \
    6447        ${destroot}${prefix}/bin/a2x
    65     }
    66 }
    67 
    68 if {![variant_isset python25] && ![variant_isset python26]} {
    69     default_variants +python27
    70 }
    71 
    72 destroot.target install docs vimdir=${prefix}/share/vim/vimfiles/
    73 
    74 pre-destroot {
    75     xinstall -d ${destroot}${prefix}/share/vim/vimfiles
    7648}
    7749
    7850platform darwin {