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

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

mecab-ipadic-neologd: update to 20150401

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 bbab651121324f2ec123020c9201b070218e239e
8version             20150401
9set dic_version     20150401
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  7a0ca7071ecb948701d6aa10d13c020664e85f48 \
26                    sha256  b173cf8a40d59a921c825583c60e35c196e583332667f849af10e6f69961b11e
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.