source: trunk/dports/textproc/irstlm/Portfile

Last change on this file was 110664, checked in by jeremyhu@…, 4 years ago

irstlm: Update blacklisting and set installs_libs no

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.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 110664 2013-09-03 04:13:19Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                irstlm
7version             5.80.03
8categories          textproc math
9maintainers         hum openmaintainer
10
11description         The IRST Language Modeling Toolkit
12long_description    ${description} features algorithms and data structures \
13                    suitable to estimate, store, and access very large LMs. Our \
14                    software has been integrated into a popular open source \
15                    Statistical Machine Translation decoder called Moses, and is \
16                    compatible with language models created with other tools, \
17                    such as the SRILM Tooolkit.
18
19homepage            http://hlt.fbk.eu/en/irstlm
20platforms           darwin
21license             LGPL
22
23master_sites        http://sourceforge.net/projects/irstlm/files/irstlm/irstlm-5.80/
24checksums           rmd160  08b9506e2dc388217e33070ebc1b06d7667d3d5c \
25                    sha256  500c64e90cae73c2f06ed34ad078423cc100f4e16e6dd98a9e466b17367d31e7
26extract.suffix      .tgz
27
28depends_lib         port:zlib
29
30depends_build       port:autoconf port:automake port:libtool
31
32# binaries and scripts are installed at ${libexec_dir}.
33set libexec_dir     ${prefix}/libexec/${name}
34
35# patch-scripts.diff: replace the value of the IRSTLM environmental variable with ${libexec_dir}.
36# patch-configure.in.diff: fix for automake 1.13 update; see #37549.
37patchfiles          patch-scripts.diff \
38                    patch-configure.in.diff
39
40post-patch {
41    foreach f {build-lm-qsub.sh build-lm.sh lm-stat.pl split-ngt.sh} {
42        reinplace "s|@libexec_dir@|${libexec_dir}|g" ${worksrcpath}/scripts/${f}
43    }
44}
45
46universal_variant   no
47
48installs_libs       no
49
50pre-configure {
51    system -W ${worksrcpath} "sh regenerate-makefiles.sh"
52}
53
54# install include files at ${prefix}/include/${name} to avoid conflicts with other builds.
55# e.g. mosesdecoder
56configure.args      --includedir=${prefix}/include/${name} \
57                    --bindir=${libexec_dir} \
58                    --enable-caching
59
60# error: variable length array of non-POD element type
61compiler.blacklist  *clang*
62
63post-destroot {
64    # fix permissions of the binaries and scripts.
65    foreach f [glob -directory ${destroot}${libexec_dir} -type f *] {
66        file attributes ${f} -permissions 0755
67    }
68    # install additional documents.
69    set doc_dir ${prefix}/share/doc/${name}
70    xinstall -d ${destroot}${doc_dir}
71    xinstall -m 644 -W ${worksrcpath} \
72        Copyright README RELEASE \
73        ${destroot}${doc_dir}
74}
75
76livecheck.type      regex
77livecheck.url       http://sourceforge.net/projects/irstlm/
78livecheck.regex     ${name}-(\[0-9.\]+)\\.
Note: See TracBrowser for help on using the repository browser.