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

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

mecab-ipadic-neologd: update to 20150624

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 18cfedf2bed7bf648106b5332af771493e7e0c45
8version             20150624
9set dic_version     20150624
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  69533c605fb9c986f925a6aed872306a52b2c735 \
25                    sha256  0dd7fd5b19e2ce02cf7944060367bde171788b1029b3b38f67febd038226fc07
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.