source: trunk/dports/textproc/chasen-naist-jdic-utf8/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: 2.2 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
7set encoding        utf8
8set nkf_encoding    w
9name                chasen-${dicname}-${encoding}
10version             0.4.3
11categories          textproc japanese
12maintainers         hum openmaintainer
13homepage            http://sourceforge.jp/projects/${dicname}/
14description         NAIST Japanese dictionary of UTF-8 encoding for ChaSen
15long_description    ${description}
16platforms           darwin
17license             BSD
18
19dist_subdir         chasen
20distname            ${dicname}-${version}
21
22master_sites        sourceforge_jp:${dicname}/31880
23
24checksums           rmd160  6d32e07e9fce6096a93603d148b6ee71a0a912c9 \
25                    sha256  f4b830877b51c770cb8491efb6e7bccf0c9011d3682351e5507eb864b0729bb1
26
27depends_build       port:nkf
28depends_lib         port:chasen-base
29
30if {[file exists ${prefix}/share/doc/chasen/chasen_dartsclone]} {
31    default_variants    +dartsclone
32}
33
34variant dartsclone description {Use darts-clone instead of darts} {}
35
36supported_archs     noarch
37configure.args      --with-chasenrc-path=${destroot}${prefix}/etc/chasen/chasenrc-${dicname}-${encoding}
38
39pre-configure {
40    if {[variant_isset dartsclone]} {
41        set dartslib "dartsclone"
42    } else {
43        set dartslib "darts"
44    }
45    if {![file exists ${prefix}/share/doc/chasen/chasen_${dartslib}]} {
46        return -code error "The variant you chose is not compatible with the ChaSen you've installed."
47    }
48}
49
50use_parallel_build  no
51
52post-patch {
53    reinplace "s|PACKAGE=${dicname}|PACKAGE=${dicname}-${encoding}|" ${worksrcpath}/configure
54    reinplace "s|/makemat|/makemat -i ${nkf_encoding}|"              ${worksrcpath}/Makefile.in
55    reinplace "s|/makeda|/makeda -i ${nkf_encoding}|"                ${worksrcpath}/Makefile.in
56    foreach f [glob ${worksrcpath}/*.cha ${worksrcpath}/*.dic ${worksrcpath}/chasenrc.in] {
57        move ${f} ${f}_
58        system "${prefix}/bin/nkf -E -${nkf_encoding} ${f}_ > ${f}"
59        delete ${f}_
60    }
61}
62
63pre-destroot {
64    file mkdir ${destroot}${prefix}/etc/chasen
65}
66
67livecheck.type      none
Note: See TracBrowser for help on using the repository browser.