source: trunk/dports/textproc/unicode/Portfile @ 113587

Last change on this file since 113587 was 113587, checked in by ryandesign@…, 6 years ago

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.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 113587 2013-11-20 03:57:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                unicode
7version             0.9.7
8categories          textproc
9platforms           darwin
10maintainers         ryandesign openmaintainer
11license             GPL-3
12supported_archs     noarch
13
14homepage            http://kassiopeia.juls.savba.sk/~garabik/software/unicode/
15master_sites        ${homepage}
16distfiles           ${name}_${version}${extract.suffix}
17
18checksums           rmd160  b0df0e793a4fc7e43d6a350842bbce44157e2003 \
19                    sha256  6a428c8fed624249138454553c65ddd18515b6fbeeee1ff2c4f3a93b1e30ef30
20
21use_configure       no
22
23build {}
24
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
32if {${name} eq ${subport}} {
33    revision            1
34
35    description         displays properties for a given Unicode character \
36                        or searches for a given character name
37
38    long_description    ${subport} is a command line utility that ${description}.
39
40    depends_run         port:python33
41
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 {
49        xinstall -m 644 ${worksrcpath}/README ${destroot}${docdir}
50    }
51
52    livecheck.type  regex
53    livecheck.regex ${name}_(\[0-9.\]+)${extract.suffix}
54} else {
55    livecheck.type  none
56}
57
58subport paracode {
59    revision            0
60   
61    description         converts Unicode input to use different codepoints
62
63    long_description    ${subport} exploits the full power of the Unicode \
64                        standard to convert text into a visually similar \
65                        stream of glyphs, while using completely different \
66                        codepoints. It is an excellent didactic tool \
67                        demonstrating the principles and advanced use of the \
68                        Unicode standard. ${subport} is a command line tool \
69                        working as a filter, reading standard input in UTF-8 \
70                        encoding and writing to standard output.
71
72    post-destroot {
73        xinstall -m 644 ${worksrcpath}/README-${subport} ${destroot}${docdir}
74    }
75}
Note: See TracBrowser for help on using the repository browser.