source: trunk/dports/textproc/rnnlm/Portfile

Last change on this file was 117099, checked in by hum@…, 4 years ago

New port: rnnlm @0.4b - Recurrent Neural Network Language Modeling Toolkit.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 117099 2014-02-16 16:30:14Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                rnnlm
7version             0.4b
8categories          textproc
9maintainers         hum openmaintainer
10
11description         Recurrent Neural Network Language Modeling Toolkit
12
13long_description    Neural network based language models are nowdays among the \
14                    most successful techniques for statistical language modeling. \
15                    They can be easily applied in wide range of tasks, including \
16                    automatic speech recognition and machine translation, and \
17                    provide significant improvements over classic backoff n-gram \
18                    models.
19
20homepage            http://rnnlm.org
21platforms           darwin
22license             Permissive
23
24master_sites        https://googledrive.com/host/0ByxdPXuxLPS5RFM5dVNvWVhTd0U/
25extract.suffix      .tgz
26checksums           rmd160  09c895f331593c7fb4bcae6970e1e6c799782854 \
27                    sha256  bade7d3ca453c9edd171d72cefb8019d0c4ed365fa5c660629ff4cd08932cc23
28
29patchfiles          patch-rnnlmlib.cpp.diff
30
31use_configure       no
32variant universal   {}
33
34configure.optflags  -O2
35
36use_parallel_build  no
37build.args          CC="${configure.cxx}" \
38                    CFLAGS="${configure.cxxflags} [get_canonical_archflags cxx] -D WEIGHTTYPE=float -lm -Wall -funroll-loops -ffast-math"
39
40destroot {
41    xinstall -m 755 -W ${worksrcpath} \
42        rnnlm \
43        ${destroot}${prefix}/bin
44    set docdir ${prefix}/share/doc/${name}
45    xinstall -d ${destroot}${docdir}
46    xinstall -m 644 -W ${worksrcpath} \
47        CHANGE-Cantab.log CHANGE.log COPYRIGHT.txt FAQ.txt \
48        ${destroot}${docdir}
49}
50
51livecheck.type      regex
52livecheck.url       [lindex ${master_sites} 0]
53livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*\\w*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.