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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name knp |
---|
7 | version 3.01 |
---|
8 | categories textproc japanese |
---|
9 | platforms darwin |
---|
10 | maintainers nomaintainer |
---|
11 | license BSD |
---|
12 | |
---|
13 | description KN parser (Kurohashi-Nagao parser) which detects dependency of Japanese sentences. |
---|
14 | long_description ${description} |
---|
15 | |
---|
16 | homepage http://nlp.kuee.kyoto-u.ac.jp/nl-resource/${name}.html |
---|
17 | master_sites http://nlp.kuee.kyoto-u.ac.jp/nl-resource/${name}/ |
---|
18 | checksums sha1 9650490cf38bfaacc15a6d81b1b47c9043df8c90 \ |
---|
19 | rmd160 645882f1638b033f626cb9f77e4ab2af56c98d7e |
---|
20 | |
---|
21 | patchfiles patch-system.diff \ |
---|
22 | patch-dict.diff |
---|
23 | |
---|
24 | depends_lib port:juman \ |
---|
25 | port:tinycdb \ |
---|
26 | port:tinysvm \ |
---|
27 | port:crfpp |
---|
28 | |
---|
29 | configure.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. |
---|
38 | set bgh_file /tmp/bunruidb.txt |
---|
39 | |
---|
40 | variant 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 | |
---|
49 | livecheck.type regex |
---|
50 | livecheck.regex ${name}-(\[0-9.\]+)\\. |
---|