source: trunk/dports/textproc/unicode/Portfile

Last change on this file was 149551, checked in by ryandesign@…, 15 months ago

unicode: update to 2.4

  • 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 149551 2016-06-26 07:05:58Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                unicode
7version             2.4
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  146bb7f7c949a5057b4b48ebdc936a294e50bfbe \
19                    sha256  8f73042329cc252854d351e281bd0183e51186a70936eb72957aaaa96857015c
20
21worksrcdir          ${name}
22
23depends_run         port:python34
24
25configure.python    ${prefix}/bin/python3.4
26
27use_configure       no
28
29build {
30    reinplace -E "s|#!/usr/bin/python3?|#!${configure.python}|g" ${worksrcpath}/${subport}
31}
32
33set docdir ${prefix}/share/doc/${subport}
34destroot {
35    xinstall ${worksrcpath}/${subport} ${destroot}${prefix}/bin
36    xinstall -m 644 ${worksrcpath}/${subport}.1 ${destroot}${prefix}/share/man/man1
37    xinstall -d ${destroot}${docdir}
38    xinstall -m 644 ${worksrcpath}/${readmefile} ${destroot}${docdir}/README
39}
40
41if {${name} eq ${subport}} {
42    revision            0
43
44    description         displays properties for a given Unicode character \
45                        or searches for a given character name
46
47    long_description    ${subport} is a command line utility that ${description}.
48
49    set readmefile      README
50
51    livecheck.type  regex
52    livecheck.regex ${name}_(\[0-9.\]+)${extract.suffix}
53} else {
54    livecheck.type  none
55}
56
57subport paracode {
58    revision            0
59
60    description         converts UTF-8 input to use different codepoints
61
62    long_description    ${subport} exploits the full power of the Unicode \
63                        standard to convert text into a visually similar \
64                        stream of glyphs, while using completely different \
65                        codepoints. It is an excellent didactic tool \
66                        demonstrating the principles and advanced use of the \
67                        Unicode standard. ${subport} is a command line tool \
68                        working as a filter, reading standard input in UTF-8 \
69                        encoding and writing to standard output.
70
71    set readmefile      README-${subport}
72}
Note: See TracBrowser for help on using the repository browser.