OSDN Git Service

cmigemo: SKK-JISYO.ML
authorKazuki Sakamoto <sakamoto@splhack.org>
Fri, 24 Apr 2009 13:15:43 +0000 (22:15 +0900)
committerKazuki Sakamoto <sakamoto@splhack.org>
Fri, 24 Apr 2009 13:15:43 +0000 (22:15 +0900)
textproc/cmigemo/Portfile

index d229a82..f9754f2 100644 (file)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 name                   cmigemo
 version                        1.3c
-revision               7
+revision               8
 categories             textproc
 depends_lib            bin:iconv:libiconv bin:nkf:nkf
 maintainers            nomaintainer
@@ -18,18 +18,17 @@ patchfiles          patch-config.mk.in.diff \
                                patch-romaji.c patch-mnode.c
 extract.suffix tar.bz2
 use_bzip2              yes
-set dicver             20041227
+set dictfile   SKK-JISYO.ML.gz
 distfiles              ${distname}${extract.suffix}:src \
-                               SKK-JISYO-${dicver}.L.gz:dic
+                               ${dictfile}:dic
 homepage               http://www.kaoriya.net/
 master_sites    http://www.kaoriya.net/dist/var:src \
-                               http://www.lapangan.net/pc/tarball:dic
+                               http://openlab.jp/skk/dic:dic
 checksums              ${distname}${extract.suffix} md5 \
                                        0b9d2feff4cfdc673cc1947fe54191ed \
-                               SKK-JISYO-${dicver}.L.gz md5 \
-                                       0016d039378e85e1489c7e8f9a5969c7
+                               ${dictfile} none
 extract.only   ${distname}${extract.suffix}
-post-extract   {file copy ${distpath}/SKK-JISYO-${dicver}.L.gz \
+post-extract   {file copy ${distpath}/${dictfile} \
                                          ${worksrcpath}/dict/SKK-JISYO.L.gz}
 build.env                      CC=cc
 build.target           osx osx-dict
@@ -60,6 +59,7 @@ destroot                      {
        xinstall -d -m 755 ${destroot}${prefix}/share/doc/migemo
        xinstall -m 644 ${worksrcpath}/doc/README_j.txt \
                        ${destroot}${prefix}/share/doc/migemo
+       if {![variant_isset utf8]} {
        # dict
        xinstall -d -m 755 ${destroot}${prefix}/share/migemo/euc-jp
        xinstall -d -m 755 ${destroot}${prefix}/share/migemo/cp932
@@ -69,6 +69,7 @@ destroot                      {
                xinstall -m 644 ${worksrcpath}/dict/euc-jp.d/${DIC} \
                        ${destroot}${prefix}/share/migemo/euc-jp
        }
+       }
        # tools
        xinstall -d -m 755 ${destroot}${prefix}/share/migemo/tools
        xinstall -m 644 ${worksrcpath}/tools/migemo.vim \