source: trunk/dports/textproc/mecab-ipadic-neologd/Portfile @ 134152

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

mecab-ipadic-neologd: update to 20150319

File size: 2.1 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$
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        neologd mecab-ipadic-neologd 8ca2352f5312ef65313e839a0b66b53db28dca42
8version             20150319
9set dic_version     20150319
10categories          textproc japanese
11license             Apache-2
12platforms           darwin
13supported_archs     noarch
14maintainers         hum openmaintainer
15
16description         Neologism dictionary for MeCab
17long_description    mecab-ipadic-neologd is customized system dictionary for \
18                    MeCab. This dictionary includes many neologisms (new word), \
19                    which are \extracted from many language resources on the Web. \
20                    When you analyze the Web documents, it's better to use this \
21                    system dictionary and default one (ipadic) together.
22
23dist_subdir         mecab
24
25checksums           rmd160  e9e65083f32d233dac6c7b68faf02365278a50c3 \
26                    sha256  26265a790a3d4a740d25767200256e55e8148e2ae47a759d803e0589dae8634c
27
28depends_lib         port:mecab-base
29
30depends_build       port:mecab-ipadic-utf8 \
31                    port:libiconv \
32                    port:xz
33
34patchfiles          patch-test.sh.diff
35
36post-patch {
37    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/libexec/test-mecab-ipadic-neologd.sh
38}
39
40use_configure       no
41
42build {
43    system -W ${worksrcpath} ./libexec/make-mecab-ipadic-neologd.sh
44    system -W ${worksrcpath} ./libexec/test-mecab-ipadic-neologd.sh
45}
46
47destroot.dir        ${worksrcpath}/build/mecab-ipadic-2.7.0-20070801-neologd-${dic_version}
48
49post-destroot {
50    move ${destroot}${prefix}/lib/mecab/dic/${name} \
51        ${destroot}${prefix}/lib/mecab/dic/neologd-utf8
52    # install additional documents
53    set docdir      ${prefix}/share/doc/${name}
54    xinstall -d ${destroot}${docdir}
55    xinstall -m 644 -W ${worksrcpath} \
56        ChangeLog COPYING README.ja.md README.md \
57        ${destroot}${docdir}
58    xinstall -m 644 ${destroot.dir}/COPYING ${destroot}${docdir}/COPYING-ipadic
59} 
Note: See TracBrowser for help on using the repository browser.