Changeset 113587


Ignore:
Timestamp:
Nov 20, 2013, 3:57:07 AM (6 years ago)
Author:
ryandesign@…
Message:

unicode: abstract out common code; use python33, which fixes the error:

ValueError: unichr() arg not in range(0x10000) (narrow Python build)
The codepoint is too big.
Perhaps your python interpreter is not compiled with wide unicode characters.

File:
1 edited

Legend:

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

    r113586 r113587  
    2323build {}
    2424
     25set docdir ${prefix}/share/doc/${subport}
     26destroot {
     27    xinstall ${worksrcpath}/${subport} ${destroot}${prefix}/bin
     28    xinstall -m 644 ${worksrcpath}/${subport}.1 ${destroot}${prefix}/share/man/man1
     29    xinstall -d ${destroot}${docdir}
     30}
     31
    2532if {${name} eq ${subport}} {
     33    revision            1
     34
    2635    description         displays properties for a given Unicode character \
    2736                        or searches for a given character name
     
    2938    long_description    ${subport} is a command line utility that ${description}.
    3039
    31     destroot {
    32         xinstall ${worksrcpath}/unicode ${destroot}${prefix}/bin
    33         xinstall -m 644 ${worksrcpath}/unicode.1 ${destroot}${prefix}/share/man/man1
     40    depends_run         port:python33
    3441
    35         set docdir ${prefix}/share/doc/${subport}
    36         xinstall -d ${destroot}${docdir}
     42    configure.python    ${prefix}/bin/python3.3
     43
     44    post-patch {
     45        reinplace "s|#!/usr/bin/python|#!${configure.python}|g" ${worksrcpath}/unicode
     46    }
     47
     48    post-destroot {
    3749        xinstall -m 644 ${worksrcpath}/README ${destroot}${docdir}
    3850    }
     
    4557
    4658subport paracode {
     59    revision            0
     60   
    4761    description         converts Unicode input to use different codepoints
    4862
     
    5670                        encoding and writing to standard output.
    5771
    58     destroot {
    59         xinstall ${worksrcpath}/paracode ${destroot}${prefix}/bin
    60         xinstall -m 644 ${worksrcpath}/paracode.1 ${destroot}${prefix}/share/man/man1
    61 
    62         set docdir ${prefix}/share/doc/${subport}
    63         xinstall -d ${destroot}${docdir}
    64         xinstall -m 644 ${worksrcpath}/README-paracode ${destroot}${docdir}
     72    post-destroot {
     73        xinstall -m 644 ${worksrcpath}/README-${subport} ${destroot}${docdir}
    6574    }
    6675}
Note: See TracChangeset for help on using the changeset viewer.