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

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem      1.0
4name            mecab
5version         0.96
6categories      textproc japanese
7maintainers     gmail.com:rsky0711
8platforms       darwin
9description     MeCab is a yet another part-of-speech and morphological analyzer.
10long_description ${description}
11homepage        http://mecab.sourceforge.net/
12
13set dic_name    mecab-ipadic
14set dic_version 2.7.0-20070610
15set dictionary  ${dic_name}-${dic_version}
16set charset     euc-jp
17
18distfiles-append ${dictionary}${extract.suffix}
19
20master_sites    sourceforge:mecab
21checksums \
22        ${distname}${extract.suffix} \
23                md5    baf018d9eae158571613d6918392fc17 \
24                sha1   a9dc9b0dd25287ee81fd16dc09066c3640e2ed11 \
25                rmd160 8032ff1cea3ee8201d4f32d540e45b277e8846e8 \
26        ${dictionary}${extract.suffix} \
27                md5    948f283cfcafbd562317c79df147da68 \
28                sha1   a79897d494b0dea4bc08d1da36134d9098a9bb6b \
29                rmd160 d402f7b4eef1b169e1d49810987e79314a572d29
30
31depends_lib     port:libiconv
32
33patchfiles      patch-configure.diff
34
35configure.args  --mandir=${prefix}/share/man \
36                --with-libiconv-prefix=${prefix}
37
38post-extract {
39    # Makefile.in (dictionary)
40    reinplace "s|@MECAB_DICT_INDEX@|${destroot}${prefix}/libexec/mecab/mecab-dict-index|g" \
41        ${workpath}/${dictionary}/Makefile.in
42}
43
44post-destroot {
45    system "cd ${workpath}/${dictionary}; \
46        ./configure \
47            --with-mecab-config=${destroot}${prefix}/bin/mecab-config \
48            --with-charset=${charset} && \
49        DYLD_LIBRARY_PATH=\"${destroot}${prefix}/lib\" ${build.cmd} && \
50        ${destroot.cmd} install ${destroot.destdir}"
51}
52
53post-activate {
54    system "ranlib ${prefix}/lib/libmecab.a"
55}
56
57platform darwin 7 {
58    configure.env-append    MACOSX_DEPLOYMENT_TARGET=10.3
59}
60
61platform darwin 8 {
62    configure.env-append    MACOSX_DEPLOYMENT_TARGET=10.4
63}
64
65variant sjis conflicts utf8 utf8only description {Set default dictionary encoding to Shift_JIS (default is EUC-JP)} {
66    set charset shift_jis
67}
68
69variant utf8 conflicts sjis utf8only description {Set default dictionary encoding to UTF-8 (default is EUC-JP)} {
70    set charset utf-8
71}
72
73variant utf8only conflicts sjis utf8 description {Set default dictionary encoding to UTF-8 and build to UTF-8 only} {
74    set charset utf-8
75    configure.args-append   --enable-utf8-only
76}
Note: See TracBrowser for help on using the repository browser.