source: trunk/dports/textproc/cicada/Portfile

Last change on this file was 135232, checked in by ryandesign@…, 2 years ago

icu: update to 55.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 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 135232 2015-04-20 00:15:39Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                cicada
7version             0.3.5
8revision            2
9categories          textproc
10maintainers         hum openmaintainer
11
12description         a hypergraph-based toolkit for statistical machine translation
13long_description    ${description}
14
15homepage            http://www2.nict.go.jp/univ-com/multi_trans/cicada
16platforms           darwin
17license             LGPL-3+
18
19master_sites        ${homepage}
20checksums           rmd160  43d8967a48004c4dcfadc1a7e621cebe53e35930 \
21                    sha256  dc3730ba21b53c25ebbcd2a1fb7dbd177abf8fd14d848ab108451efcbd9a4bc3
22
23depends_lib         port:expgram \
24                    port:boost \
25                    port:openmpi-default \
26                    port:icu
27
28depends_build       port:py27-docutils \
29                    port:py27-pygments
30
31patchfiles          patch-samples.diff \
32                    patch-configure.diff
33
34configure.optflags  -O3
35
36post-build {
37    system -W ${worksrcpath}/doc "${build.cmd} index.html"
38}
39
40post-destroot {
41    # install additional documents.
42    set docdir ${prefix}/share/doc/${name}
43    xinstall -d ${destroot}${docdir}
44    xinstall -m 644 -W ${worksrcpath} \
45        COPYING.GPL COPYING.LGPL FAQ LICENSE NEWS.rst README.rst TODO.rst \
46        doc/index.html \
47        ${destroot}${docdir}
48    foreach rst [glob ${worksrcpath}/doc/*.rst] {
49        xinstall -m 644 ${rst} ${destroot}${docdir}
50    }
51    # install sample data and scripts.
52    xinstall -d ${destroot}${prefix}/share/examples
53    set exdir ${prefix}/share/examples/${name}
54    copy ${worksrcpath}/samples ${destroot}${exdir}
55    foreach f {Makefile Makefile.am Makefile.in} {
56        delete ${destroot}${exdir}/${f}
57    }
58    foreach sh [glob ${destroot}${exdir}/*/*.sh ${destroot}${exdir}/*/*/*.sh ${destroot}${exdir}/*/*/*/*.sh] {
59        reinplace "s|@PREFIX@|${prefix}|g" ${sh}
60    }
61}
62
63# Note:
64# To run kftt sample scripts in ${prefix}/share/examples/${name}/kftt.30k,
65# please install the following ports: mecab, cabocha, stanford-parser.
66
67livecheck.type      regex
68livecheck.url       [lindex ${master_sites} 0]
69livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.