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

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

mecab-ipadic-neologd: update to 20150716

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