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

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

New port: mecab-ipadic-neologd @ 20150315 - Neologism dictionary for MeCab

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 ae5886767977c5baa0d34017928d9cd752d0330d
8version             20150315
9set dic_version     20150313
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  07968c2d46b4ac2e065e5f6e08708641fb481d8c \
26                    sha256  1354ea3752ad2db58a7ef6878f9dae49d76e5f88516e032293858bb2743096ca
27
28depends_lib         port:mecab-base
29
30depends_build       port:mecab-ipadic-utf8 \
31                    port:libiconv \
32                    port:xz
33
34patchfiles          patch-make.sh.diff \
35                    patch-test.sh.diff
36
37post-patch {
38    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/libexec/test-mecab-ipadic-neologd.sh
39}
40
41use_configure       no
42
43build {
44    system -W ${worksrcpath} ./libexec/make-mecab-ipadic-neologd.sh
45    system -W ${worksrcpath} ./libexec/test-mecab-ipadic-neologd.sh
46}
47
48destroot.dir        ${worksrcpath}/build/mecab-ipadic-2.7.0-20070801-neologd-${dic_version}
49
50post-destroot {
51    move ${destroot}${prefix}/lib/mecab/dic/${name} \
52        ${destroot}${prefix}/lib/mecab/dic/neologd-utf8
53    # install additional documents
54    set docdir      ${prefix}/share/doc/${name}
55    xinstall -d ${destroot}${docdir}
56    xinstall -m 644 -W ${worksrcpath} \
57        COPYING README.ja.md README.md \
58        ${destroot}${docdir}
59    xinstall -m 644 ${destroot.dir}/COPYING ${destroot}${docdir}/COPYING-ipadic
60} 
Note: See TracBrowser for help on using the repository browser.