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 cabocha |
---|
7 | version 0.53 |
---|
8 | categories textproc japanese |
---|
9 | platforms darwin |
---|
10 | maintainers nomaintainer |
---|
11 | license LGPL |
---|
12 | |
---|
13 | description Yet Another Japanese Dependency Structure Analyzer |
---|
14 | |
---|
15 | long_description CaboCha is a Jpanese dependency structure analyzer based on \ |
---|
16 | support vector machines. \ |
---|
17 | This version of CaboCha supports the EUC-JP encoding. |
---|
18 | |
---|
19 | homepage http://chasen.org/~taku/software/cabocha/ |
---|
20 | master_sites ${homepage}/src/ |
---|
21 | checksums sha1 6b8903aa6843887bb669d9d5baea8a0eae320d80 \ |
---|
22 | rmd160 39b637adc8b882542ecc3b6df34d8f6b99be3e38 |
---|
23 | |
---|
24 | patchfiles patch-src.diff |
---|
25 | |
---|
26 | depends_lib port:yamcha |
---|
27 | |
---|
28 | configure.args-append --disable-shared \ |
---|
29 | --disable-pke \ |
---|
30 | --mandir=${prefix}/share/man |
---|
31 | |
---|
32 | variant universal {} |
---|
33 | if {[variant_isset universal]} { |
---|
34 | set archflags ${configure.universal_cxxflags} |
---|
35 | } else { |
---|
36 | set archflags ${configure.cxx_archflags} |
---|
37 | } |
---|
38 | |
---|
39 | build.args CXX="${configure.cxx} ${archflags}" |
---|
40 | |
---|
41 | test.run yes |
---|
42 | test.target check |
---|
43 | |
---|
44 | variant chasen conflicts mecab description {Use ChaSen morphological analyzer} { |
---|
45 | depends_lib-append port:chasen |
---|
46 | configure.args-append --with-morphological-analyzer=chasen \ |
---|
47 | --enable-chasen-static |
---|
48 | } |
---|
49 | |
---|
50 | variant mecab conflicts chasen description {Use MeCab morphological analyzer instead of ChaSen} { |
---|
51 | depends_lib-append port:mecab |
---|
52 | configure.args-append --with-morphological-analyzer=mecab \ |
---|
53 | --enable-mecab-static |
---|
54 | } |
---|
55 | |
---|
56 | if {![variant_isset mecab]} { |
---|
57 | default_variants +chasen |
---|
58 | } |
---|
59 | |
---|
60 | livecheck.type regex |
---|
61 | livecheck.regex ${name}-(\[0-9.\]+)\\. |
---|