source: trunk/dports/textproc/expgram/Portfile

Last change on this file was 118580, checked in by hum@…, 3 years ago

expgram: add patch for the dependency of openmpi-default.

  • 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 118580 2014-04-05 05:33:52Z ryandesign@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
28patchfiles          patch-configure.diff
29
30configure.optflags  -O3
31
32post-build {
33    system -W ${worksrcpath}/doc "${build.cmd} index.html"
34}
35
36post-destroot {
37    # install additional documents.
38    set docdir ${prefix}/share/doc/${name}
39    xinstall -d ${destroot}${docdir}
40    xinstall -m 644 -W ${worksrcpath} \
41        COPYING.GPL COPYING.LGPL FAQ LICENSE NEWS.rst README.rst TODO.rst \
42        doc/index.html \
43        ${destroot}${docdir}
44    # install sample scripts.
45    set exdir ${prefix}/share/examples/${name}
46    xinstall -d ${destroot}${exdir}
47    foreach sh {web1t-en.sh web1t-ja.sh web1t-zh.sh} {
48        xinstall -m 644 ${worksrcpath}/sample/${sh} ${destroot}${exdir}
49        reinplace "s|expgram-directory|${prefix}/bin|" ${destroot}${exdir}/${sh}
50    }
51}
52
53livecheck.type      regex
54livecheck.url       [lindex ${master_sites} 0]
55livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.