source: trunk/dports/textproc/chasen-naist-jdic/Portfile

Last change on this file was 137621, checked in by mf2k@…, 2 years ago

a2ps-j canna chasen chasen-base chasen-ipadic chasen-ipadic-sjis chasen-ipadic-utf8 chasen-naist-jdic chasen-naist-jdic-sjis chasen-naist-jdic-utf8 cocot darts dejavu-fonts disvf FDclone ghostscript ghostscript-fonts-hiragino gnushogi jnethack kakasi kinput2 lv makejvf nkf p5-nkf p5-text-chasen p5-text-kakasi pTeX smartmontools urw-fonts: Ports abandoned by takanori. (#47537)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 137621 2015-06-15 14:56:57Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6set dicname         naist-jdic
7name                chasen-${dicname}
8version             0.4.3
9categories          textproc japanese
10maintainers         hum openmaintainer
11homepage            http://sourceforge.jp/projects/${dicname}/
12description         NAIST Japanese dictionary of EUC-JP encoding for ChaSen
13long_description    ${description}
14platforms           darwin
15license             BSD
16
17dist_subdir         chasen
18distname            ${dicname}-${version}
19
20master_sites        sourceforge_jp:${dicname}/31880
21
22checksums           rmd160  6d32e07e9fce6096a93603d148b6ee71a0a912c9 \
23                    sha256  f4b830877b51c770cb8491efb6e7bccf0c9011d3682351e5507eb864b0729bb1
24
25depends_lib         port:chasen-base
26
27if {[file exists ${prefix}/share/doc/chasen/chasen_dartsclone]} {
28    default_variants    +dartsclone
29}
30
31variant dartsclone description {Use darts-clone instead of darts} {}
32
33supported_archs     noarch
34configure.args      --with-chasenrc-path=${destroot}${prefix}/etc/chasen/chasenrc-${dicname}
35
36pre-configure {
37    if {[variant_isset dartsclone]} {
38        set dartslib "dartsclone"
39    } else {
40        set dartslib "darts"
41    }
42    if {![file exists ${prefix}/share/doc/chasen/chasen_${dartslib}]} {
43        return -code error "The variant you chose is not compatible with the ChaSen you've installed."
44    }
45}
46
47use_parallel_build  no
48
49pre-destroot {
50    file mkdir ${destroot}${prefix}/etc/chasen
51}
52
53post-destroot {
54    file mkdir ${destroot}${prefix}/share/doc/chasen-${dicname}
55    xinstall -m 644 -W ${worksrcpath} \
56        AUTHORS COPYING ChangeLog NEWS README \
57        ${destroot}${prefix}/share/doc/chasen-${dicname}
58}
59
60livecheck.type      regex
61livecheck.url       http://sourceforge.jp/projects/${dicname}/releases
62livecheck.regex     >${dicname}-(\[0-9.a-z\-\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.