Ticket #29241: Portfile

File Portfile, 1.7 KB (added by humem (humem), 13 years ago)
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$
3
4PortSystem          1.0
5
6name                knp
7version             3.01
8categories          textproc japanese
9platforms           darwin
10maintainers         nomaintainer
11license             BSD
12
13description         KN parser (Kurohashi-Nagao parser) which detects dependency of Japanese sentences.
14long_description    ${description}
15
16homepage            http://nlp.kuee.kyoto-u.ac.jp/nl-resource/${name}.html
17master_sites        http://nlp.kuee.kyoto-u.ac.jp/nl-resource/${name}/
18checksums           sha1    9650490cf38bfaacc15a6d81b1b47c9043df8c90 \
19                    rmd160  645882f1638b033f626cb9f77e4ab2af56c98d7e
20
21patchfiles          patch-system.diff \
22                    patch-dict.diff
23
24depends_lib         port:juman \
25                    port:tinycdb \
26                    port:tinysvm \
27                    port:crfpp
28
29configure.args      --with-cdb \
30                    --with-svm \
31                    --with-crf \
32                    --with-juman-prefix=${prefix}
33
34# Note: compiling with Boehm GC library (--with-boehm-gc) makes the executable cause a segmentation fault.
35
36# To enable to use bunruidb,
37# purchase a lisence of Bunrui Goi Hyou and put the db file to the following path.
38set bgh_file        /tmp/bunruidb.txt
39
40variant bunruidb description {Use Bunrui Goi Hyou located at /tmp/bunruidb.txt } {
41    if {[file readable ${bgh_file}]} {
42        configure.args-append  --with-bgh-file=${bgh_file}
43    } else {
44        ui_error "Bunrui Goi Hyou is not available at ${bgh_file}"
45        return -code error
46    }
47}
48
49livecheck.type      regex
50livecheck.regex     ${name}-(\[0-9.\]+)\\.