source: trunk/dports/textproc/expgram/Portfile @ 117864

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

expgram: update to 0.2.1.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 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 117864 2014-03-15 12:19:26Z hum@macports.org $
3
4PortSystem          1.0
5
6name                expgram
7version             0.2.1
8categories          textproc
9maintainers         hum openmaintainer
10
11description         an ngram toolkit with succinct storage
12long_description    ${description}
13
14homepage            http://www2.nict.go.jp/univ-com/multi_trans/expgram
15platforms           darwin
16license             LGPL-3+
17
18master_sites        ${homepage}
19checksums           rmd160  1d66e9c18ca8892366c57b9755a3b899a5ab3223 \
20                    sha256  982e8df505fb410db7bace7e1aebc03fe5a8132538973e1382c922edbec906f6
21
22depends_lib         port:boost \
23                    port:openmpi-default
24
25depends_build       port:py27-docutils \
26                    port:py27-pygments
27
28configure.optflags  -O3
29
30post-build {
31    system -W ${worksrcpath}/doc "${build.cmd} index.html"
32}
33
34post-destroot {
35    # install additional documents.
36    set docdir ${prefix}/share/doc/${name}
37    xinstall -d ${destroot}${docdir}
38    xinstall -m 644 -W ${worksrcpath} \
39        COPYING.GPL COPYING.LGPL FAQ LICENSE NEWS.rst README.rst TODO.rst \
40        doc/index.html \
41        ${destroot}${docdir}
42    # install sample scripts.
43    set exdir ${prefix}/share/examples/${name}
44    xinstall -d ${destroot}${exdir}
45    foreach sh {web1t-en.sh web1t-ja.sh web1t-zh.sh} {
46        xinstall -m 644 ${worksrcpath}/sample/${sh} ${destroot}${exdir}
47        reinplace "s|expgram-directory|${prefix}/bin|" ${destroot}${exdir}/${sh}
48    }
49}
50
51livecheck.type      regex
52livecheck.url       [lindex ${master_sites} 0]
53livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.