source: trunk/dports/textproc/mecab/Portfile @ 102050

Last change on this file since 102050 was 102050, checked in by hum@…, 7 years ago

mecab,mecab-{base|java|sjis|utf8},{p5|py|rb|rb19}-mecab: update to 0.995.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 102050 2013-01-26 12:43:24Z hum@macports.org $
3
4PortSystem          1.0
5
6set encoding        eucjp
7name                mecab
8version             0.995
9categories          textproc japanese
10maintainers         hum gmail.com:rsky0711 openmaintainer
11
12description         yet another part-of-speech and morphological analyzer
13long_description    MeCab is ${description}. \
14                    This port depends on MeCab base analyzer and a Japanese \
15                    dictionary of ${encoding} encoding.
16
17homepage            http://mecab.sourceforge.net/
18platforms           darwin
19license             {GPL LGPL BSD}
20
21distfiles
22
23depends_lib         port:mecab-base
24
25conflicts           mecab-sjis mecab-utf8
26
27use_configure       no
28supported_archs     noarch
29
30build               {}
31
32set dicname         ipadic
33
34if {![variant_isset jumandic] && ![variant_isset naistjdic]} {
35    default_variants    +ipadic
36}
37
38variant ipadic conflicts jumandic naistjdic description {Use ipadic} {
39    set dicname         ipadic
40    depends_lib-append  port:mecab-${dicname}
41}
42
43variant jumandic conflicts ipadic naistjdic description {Use jumandic} {
44    set dicname         jumandic
45    depends_lib-append  port:mecab-${dicname}
46}
47
48variant naistjdic conflicts ipadic jumandic description {Use naist-jdic} {
49    set dicname         naist-jdic
50    depends_lib-append  port:mecab-${dicname}
51}
52
53variant sjis description {Deprecated, install mecab-sjis instead} {
54    ui_msg "Deprecated: please install 'mecab-sjis' instead of 'mecab +sjis'."
55    ui_msg "Note: upgrading mecab will be completed if mecab-sjis is successfully installed, although the process fails due to a conflict."
56    depends_lib         port:mecab-sjis
57}
58
59variant utf8 description {Deprecated, install mecab-utf8 instead} {
60    ui_msg "Deprecated: please install 'mecab-utf8' instead of 'mecab +utf8'."
61    ui_msg "Note: upgrading mecab will be completed if mecab-utf8 is successfully installed, although the process fails due to a conflict."
62    depends_lib         port:mecab-utf8
63}
64
65destroot {
66    set dest_dic ${destroot}${prefix}/lib/mecab/dic
67    file mkdir ${dest_dic}
68    ln -s ${dicname}-${encoding} ${dest_dic}/sysdic
69}
70
71livecheck.type      none
Note: See TracBrowser for help on using the repository browser.