Ignore:
Timestamp:
Oct 27, 2015, 3:29:52 AM (4 years ago)
Author:
ryandesign@…
Message:

unicode: update to 2; use python34

File:
1 edited

Legend:

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

    r134388 r141730  
    55
    66name                unicode
    7 version             1
     7version             2
    88categories          textproc
    99platforms           darwin
     
    1616distfiles           ${name}_${version}${extract.suffix}
    1717
    18 checksums           rmd160  87f26d3eda07ac7446d33749c742f0167bdfe4d4 \
    19                     sha256  d354eaba78f31f419ead9493ca97b8664264ce5975e9836fe7abab5371921b5e
     18checksums           rmd160  e05c0311af7d41ddda9a12df919f6d115c2948cd \
     19                    sha256  e9c8bbabacc4c1c33a7086252cd9e8a84ec36cfaa29ae71c0ee3b42fd984b618
    2020
    2121worksrcdir          ${name}
    2222
     23depends_run         port:python34
     24
     25configure.python    ${prefix}/bin/python3.4
     26
    2327use_configure       no
    2428
    25 build {}
     29build {
     30    reinplace -E "s|#!/usr/bin/python3?|#!${configure.python}|g" ${worksrcpath}/${subport}
     31}
    2632
    2733set docdir ${prefix}/share/doc/${subport}
     
    3036    xinstall -m 644 ${worksrcpath}/${subport}.1 ${destroot}${prefix}/share/man/man1
    3137    xinstall -d ${destroot}${docdir}
     38    xinstall -m 644 ${worksrcpath}/${readmefile} ${destroot}${docdir}/README
    3239}
    3340
     
    4047    long_description    ${subport} is a command line utility that ${description}.
    4148
    42     depends_run         port:python33
    43 
    44     configure.python    ${prefix}/bin/python3.3
    45 
    46     post-patch {
    47         reinplace "s|#!/usr/bin/python|#!${configure.python}|g" ${worksrcpath}/unicode
    48     }
    49 
    50     post-destroot {
    51         xinstall -m 644 ${worksrcpath}/README ${destroot}${docdir}
    52     }
     49    set readmefile      README
    5350
    5451    livecheck.type  regex
     
    7269                        encoding and writing to standard output.
    7370
    74     post-destroot {
    75         xinstall -m 644 ${worksrcpath}/README-${subport} ${destroot}${docdir}
    76     }
     71    set readmefile      README-${subport}
    7772}
Note: See TracChangeset for help on using the changeset viewer.