Ticket #29178: Portfile

File Portfile, 1.9 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                cabocha
7version             0.53
8categories          textproc japanese
9platforms           darwin
10maintainers         nomaintainer
11license             LGPL
12
13description         Yet Another Japanese Dependency Structure Analyzer
14
15long_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
19homepage            http://chasen.org/~taku/software/cabocha/
20master_sites        ${homepage}/src/
21checksums           sha1    6b8903aa6843887bb669d9d5baea8a0eae320d80 \
22                    rmd160  39b637adc8b882542ecc3b6df34d8f6b99be3e38
23
24patchfiles          patch-src.diff
25
26depends_lib         port:yamcha
27
28configure.args-append      --disable-shared \
29                           --disable-pke \
30                           --mandir=${prefix}/share/man
31
32variant universal {}
33if {[variant_isset universal]} {
34    set archflags ${configure.universal_cxxflags}
35} else {
36    set archflags ${configure.cxx_archflags}
37}
38
39build.args          CXX="${configure.cxx} ${archflags}"
40
41test.run            yes
42test.target         check
43
44variant 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
50variant 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
56if {![variant_isset mecab]} {
57    default_variants    +chasen
58}
59
60livecheck.type      regex
61livecheck.regex     ${name}-(\[0-9.\]+)\\.