source: trunk/dports/textproc/unidic-mecab/Portfile

Last change on this file was 113837, checked in by hum@…, 4 years ago

unidic-mecab: update livecheck.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 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: Portfile 113837 2013-11-24 16:27:14Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                unidic-mecab
7version             2.1.2
8categories          textproc japanese
9maintainers         hum openmaintainer
10
11description         a dictionary for the Japanese morphological analyzer MeCab
12long_description    ${name} is ${description}.
13
14homepage            http://sourceforge.jp/projects/unidic/
15platforms           darwin
16license             {BSD GPL LGPL}
17
18distname            ${name}-${version}_bin
19dist_subdir         mecab
20#use_zip             yes
21extract.suffix      .zip
22
23master_sites        sourceforge_jp:unidic/58338/
24checksums           rmd160  93dbf8230a9d90663028dc140c58b866bf5990ee \
25                    sha256  666b549b56f47e5cf4cabe3ad9eced25a31df2f0b6e99ef73c54b5c2ce623354
26
27# skip decompressing error of unzip.
28extract {
29    catch {eval exec "unzip -q ${distpath}/${distfiles} -d ${workpath}"} result
30    ui_debug "unzip: $result"
31}
32
33supported_archs     noarch
34use_configure       no
35build {}
36
37destroot {
38    set dic_dir ${prefix}/lib/mecab/dic
39    xinstall -d ${destroot}${dic_dir}
40    copy ${worksrcpath} ${destroot}${dic_dir}/unidic-utf8
41}
42
43livecheck.type      regex
44livecheck.url       http://sourceforge.jp/projects/unidic/releases/
45livecheck.regex     ${name}-(\\d+\.\\d+\.\\d+)
Note: See TracBrowser for help on using the repository browser.