pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/migemo



Module Name:    pkgsrc
Committed By:   taca
Date:           Sun Jan 19 11:24:44 UTC 2025

Modified Files:
        pkgsrc/textproc/migemo: Makefile distinfo
        pkgsrc/textproc/migemo/patches: patch-aa patch-ab patch-genchars.sh
            patch-migemo patch-migemo-cache.rb patch-migemo-client
            patch-migemo-convert.rb patch-migemo-grep patch-migemo-index.rb
            patch-migemo-server patch-migemo.rb.in patch-tests_Makefile.am

Log Message:
textproc/migemo: overhaul the package

Make build propery this pacakge.

* Use older autoconf and automake in USE_TOOLS.
* Drop completely "-Ke" option of Ruby.
* Set Encoding.default_external to EUC-JP explictly.
* Specify script encoding with magic comment.
* Add comments in patch files.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/textproc/migemo/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/textproc/migemo/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/textproc/migemo/patches/patch-aa \
    pkgsrc/textproc/migemo/patches/patch-ab
cvs rdiff -u -r1.1 -r1.2 pkgsrc/textproc/migemo/patches/patch-genchars.sh \
    pkgsrc/textproc/migemo/patches/patch-migemo \
    pkgsrc/textproc/migemo/patches/patch-migemo-cache.rb \
    pkgsrc/textproc/migemo/patches/patch-migemo-client \
    pkgsrc/textproc/migemo/patches/patch-migemo-convert.rb \
    pkgsrc/textproc/migemo/patches/patch-migemo-grep \
    pkgsrc/textproc/migemo/patches/patch-migemo-index.rb \
    pkgsrc/textproc/migemo/patches/patch-migemo-server \
    pkgsrc/textproc/migemo/patches/patch-migemo.rb.in \
    pkgsrc/textproc/migemo/patches/patch-tests_Makefile.am

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/migemo/Makefile
diff -u pkgsrc/textproc/migemo/Makefile:1.10 pkgsrc/textproc/migemo/Makefile:1.11
--- pkgsrc/textproc/migemo/Makefile:1.10        Mon Nov  4 21:43:39 2019
+++ pkgsrc/textproc/migemo/Makefile     Sun Jan 19 11:24:43 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2019/11/04 21:43:39 rillig Exp $
+# $NetBSD: Makefile,v 1.11 2025/01/19 11:24:43 taca Exp $
 
 .include "../../textproc/migemo/Makefile.common"
 
@@ -12,10 +12,9 @@ LICENSE=     gnu-gpl-v2
 DEPENDS+=              ${RUBY_PKGPREFIX}-bsearch-[0-9]*:../../devel/ruby-bsearch
 DEPENDS+=              ${RUBY_PKGPREFIX}-romkan-[0-9]*:../../converters/ruby-romkan
 
-USE_TOOLS+=            autoconf automake aclocal
+USE_TOOLS+=            autoconf213 automake14 aclocal
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --with-rubydir=${PREFIX}/${RUBY_VENDORLIB}
-MAKE_ENV+=             RUBYOPT=-Ke
 
 REPLACE_RUBY=          migemo migemo-client migemo-grep migemo-server
 

Index: pkgsrc/textproc/migemo/distinfo
diff -u pkgsrc/textproc/migemo/distinfo:1.5 pkgsrc/textproc/migemo/distinfo:1.6
--- pkgsrc/textproc/migemo/distinfo:1.5 Tue Oct 26 11:22:22 2021
+++ pkgsrc/textproc/migemo/distinfo     Sun Jan 19 11:24:43 2025
@@ -1,17 +1,17 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 11:22:22 nia Exp $
+$NetBSD: distinfo,v 1.6 2025/01/19 11:24:43 taca Exp $
 
 BLAKE2s (migemo-0.40.tar.gz) = 20cb308c357f103f36044416fc1095a6684af7197a06ae57a9c8bedcb7e9be96
 SHA512 (migemo-0.40.tar.gz) = 8ba4960361035fc570bef533724c82b20fbc2384aa69469bf79791c00732643423aa6725717e4e518e461f9313101f0f2c49ad93dd007984699ad94cb92959ea
 Size (migemo-0.40.tar.gz) = 1674941 bytes
-SHA1 (patch-aa) = a83ce755f3751b9bea6c2e4b4c09d94d2c9a932c
-SHA1 (patch-ab) = 1f0062c64e694e465803e4b4c2bd89855b071ac0
-SHA1 (patch-genchars.sh) = 33afe99f246d5c896a32023116d5621021b5adae
-SHA1 (patch-migemo) = 9aa65760f9c130049a7252af9cf9c67d2edddd00
-SHA1 (patch-migemo-cache.rb) = 21deacfc7a7e82db33507c2d43145bdb53b91a14
-SHA1 (patch-migemo-client) = b7c3033aeb39bc6926a33f3a8c2b48554874a560
-SHA1 (patch-migemo-convert.rb) = 8a894c045aab9447e5c09f5ccfd34715cf3e8813
-SHA1 (patch-migemo-grep) = d8686169a9d4787c1056ca5d9838a00bca06a60f
-SHA1 (patch-migemo-index.rb) = 84b9c571c2d1c9bfdbd207043c6c7bb2a78b72da
-SHA1 (patch-migemo-server) = 8fff0f4e40f90a7ec0202a0cec9fd0d866d0fce4
-SHA1 (patch-migemo.rb.in) = 007f1595b098e517d28e35a6fa9db8e2ba1618f4
-SHA1 (patch-tests_Makefile.am) = b50396a22695baa66011ed18d89528f630214241
+SHA1 (patch-aa) = 615428424bd0bf3bc9a332c985af6d2aebe1364c
+SHA1 (patch-ab) = e7916462555bc6d8a80a5b3956ac202213876226
+SHA1 (patch-genchars.sh) = 0831237efac6debb1f51f033fa84bac8521c2627
+SHA1 (patch-migemo) = 82de85ac29ce56b483c06d4cab2669f75b0b95b7
+SHA1 (patch-migemo-cache.rb) = b15f59fa96c957f7e33a388bcc7fceddc0c090f7
+SHA1 (patch-migemo-client) = 97df12bdae3c9bbed7086bd80cfc16ce4c22b29b
+SHA1 (patch-migemo-convert.rb) = 09a368f1d0c65726721426d45bf58a772cd92799
+SHA1 (patch-migemo-grep) = f2db5edd9efde880f5681eafc12ea32a0e40fa2d
+SHA1 (patch-migemo-index.rb) = 139ad7e84ad30cc0164a85aaabbd3d7cb78a1d0f
+SHA1 (patch-migemo-server) = 3a475b5fa7b4fe0224def2ecd97761b3c9d8ff84
+SHA1 (patch-migemo.rb.in) = 38191b78f2182bbd3d9d40283168f522ec581dd3
+SHA1 (patch-tests_Makefile.am) = bad7ba4f059e32cfc3afa0624ac816c9ede35d35

Index: pkgsrc/textproc/migemo/patches/patch-aa
diff -u pkgsrc/textproc/migemo/patches/patch-aa:1.2 pkgsrc/textproc/migemo/patches/patch-aa:1.3
--- pkgsrc/textproc/migemo/patches/patch-aa:1.2 Sun Aug 12 11:52:26 2012
+++ pkgsrc/textproc/migemo/patches/patch-aa     Sun Jan 19 11:24:44 2025
@@ -1,4 +1,6 @@
-$NetBSD: patch-aa,v 1.2 2012/08/12 11:52:26 obache Exp $
+$NetBSD: patch-aa,v 1.3 2025/01/19 11:24:44 taca Exp $
+
+Remove reference to LISPDIR.
 
 --- configure.in.orig  2003-05-28 12:18:18.000000000 +0000
 +++ configure.in
Index: pkgsrc/textproc/migemo/patches/patch-ab
diff -u pkgsrc/textproc/migemo/patches/patch-ab:1.2 pkgsrc/textproc/migemo/patches/patch-ab:1.3
--- pkgsrc/textproc/migemo/patches/patch-ab:1.2 Sun Aug 12 11:52:26 2012
+++ pkgsrc/textproc/migemo/patches/patch-ab     Sun Jan 19 11:24:44 2025
@@ -1,4 +1,6 @@
-$NetBSD: patch-ab,v 1.2 2012/08/12 11:52:26 obache Exp $
+$NetBSD: patch-ab,v 1.3 2025/01/19 11:24:44 taca Exp $
+
+Do not process an elisp file.
 
 --- Makefile.am.orig   2003-05-28 12:14:04.000000000 +0000
 +++ Makefile.am

Index: pkgsrc/textproc/migemo/patches/patch-genchars.sh
diff -u pkgsrc/textproc/migemo/patches/patch-genchars.sh:1.1 pkgsrc/textproc/migemo/patches/patch-genchars.sh:1.2
--- pkgsrc/textproc/migemo/patches/patch-genchars.sh:1.1        Sun Aug 12 11:52:26 2012
+++ pkgsrc/textproc/migemo/patches/patch-genchars.sh    Sun Jan 19 11:24:44 2025
@@ -1,12 +1,15 @@
-$NetBSD: patch-genchars.sh,v 1.1 2012/08/12 11:52:26 obache Exp $
+$NetBSD: patch-genchars.sh,v 1.2 2025/01/19 11:24:44 taca Exp $
 
---- genchars.sh.orig   2001-08-13 18:30:48.000000000 +0900
-+++ genchars.sh        2011-08-21 23:37:29.000000000 +0900
+* Set default external encoding to EUC-JP.
+* Explictly specify $_.
+
+--- genchars.sh.orig   2001-08-13 09:30:48.000000000 +0000
++++ genchars.sh
 @@ -1,6 +1,6 @@
  #! /bin/sh
  
 -ruby -rromkan -nle 'head = split[0]; if /^\w+$/ =~ head then puts head else roma = head.to_roma; puts roma, roma.to_kunrei end' migemo-dict |uniq> tmp.ascii.words
-+ruby -rromkan -nle 'head = $_.split[0]; if /^\w+$/ =~ head then puts head else roma = head.to_roma; puts roma, roma.to_kunrei end' migemo-dict |uniq> tmp.ascii.words
++ruby -rromkan -nle 'Encoding.default_external = Encoding::EUC_JP; head = $_.split[0]; if /^\w+$/ =~ head then puts head else roma = head.to_roma; puts roma, roma.to_kunrei end' migemo-dict |uniq> 
tmp.ascii.words
  
  # Get the top 500 frequent ngrams.
  for i in 1 2 3 4 5 6 7 8; do
Index: pkgsrc/textproc/migemo/patches/patch-migemo
diff -u pkgsrc/textproc/migemo/patches/patch-migemo:1.1 pkgsrc/textproc/migemo/patches/patch-migemo:1.2
--- pkgsrc/textproc/migemo/patches/patch-migemo:1.1     Sun Aug 12 11:52:26 2012
+++ pkgsrc/textproc/migemo/patches/patch-migemo Sun Jan 19 11:24:44 2025
@@ -1,13 +1,17 @@
-$NetBSD: patch-migemo,v 1.1 2012/08/12 11:52:26 obache Exp $
+$NetBSD: patch-migemo,v 1.2 2025/01/19 11:24:44 taca Exp $
+
+* Add specifying script encoding to EUC-JP.
+* Remove $KCODE.
 
 --- migemo.orig        2003-05-27 03:01:10.000000000 +0000
 +++ migemo
-@@ -1,4 +1,4 @@
--#! /usr/bin/env ruby
-+#! /usr/bin/env ruby -Ke
- #
+@@ -1,5 +1,5 @@
+ #! /usr/bin/env ruby
+-#
++# coding: euc-jp
  # migemo - a tool for Japanese incremental search.
  #
+ # Copyright (C) 2001 Satoru Takabayashi <satoru%namazu.org@localhost>
 @@ -10,8 +10,6 @@
  # the GNU General Public License version 2.
  #
Index: pkgsrc/textproc/migemo/patches/patch-migemo-cache.rb
diff -u pkgsrc/textproc/migemo/patches/patch-migemo-cache.rb:1.1 pkgsrc/textproc/migemo/patches/patch-migemo-cache.rb:1.2
--- pkgsrc/textproc/migemo/patches/patch-migemo-cache.rb:1.1    Sun Aug 12 11:52:26 2012
+++ pkgsrc/textproc/migemo/patches/patch-migemo-cache.rb        Sun Jan 19 11:24:44 2025
@@ -1,4 +1,8 @@
-$NetBSD: patch-migemo-cache.rb,v 1.1 2012/08/12 11:52:26 obache Exp $
+$NetBSD: patch-migemo-cache.rb,v 1.2 2025/01/19 11:24:44 taca Exp $
+
+* Use bytesize instead of length.
+* set output encoding.
+* Remove $KCODE.
 
 --- migemo-cache.rb.orig       2001-07-14 17:38:56.000000000 +0000
 +++ migemo-cache.rb
Index: pkgsrc/textproc/migemo/patches/patch-migemo-client
diff -u pkgsrc/textproc/migemo/patches/patch-migemo-client:1.1 pkgsrc/textproc/migemo/patches/patch-migemo-client:1.2
--- pkgsrc/textproc/migemo/patches/patch-migemo-client:1.1      Sun Aug 12 11:52:26 2012
+++ pkgsrc/textproc/migemo/patches/patch-migemo-client  Sun Jan 19 11:24:44 2025
@@ -1,16 +1,22 @@
-$NetBSD: patch-migemo-client,v 1.1 2012/08/12 11:52:26 obache Exp $
+$NetBSD: patch-migemo-client,v 1.2 2025/01/19 11:24:44 taca Exp $
+
+* Set default external encoding to EUC-JP.
+* Add specifying script encoding to EUC-JP.
+* Remove $KCODE.
 
 --- migemo-client.orig 2001-08-13 09:30:48.000000000 +0000
 +++ migemo-client
-@@ -1,4 +1,4 @@
--#!/usr/bin/env ruby
-+#!/usr/bin/env ruby -Ke
+@@ -1,4 +1,5 @@
+ #!/usr/bin/env ruby
++# coding: euc-jp
  #
  # migemo-client - a client to communicate with migemo-server.
  #
-@@ -10,7 +10,6 @@
+@@ -9,8 +10,8 @@
+ # You can redistribute it and/or modify it under the terms of 
  # the GNU General Public License version 2.
  #
++Encoding.default_external = Encoding::EUC_JP
  
 -$KCODE = "e"
  require 'net/http'
Index: pkgsrc/textproc/migemo/patches/patch-migemo-convert.rb
diff -u pkgsrc/textproc/migemo/patches/patch-migemo-convert.rb:1.1 pkgsrc/textproc/migemo/patches/patch-migemo-convert.rb:1.2
--- pkgsrc/textproc/migemo/patches/patch-migemo-convert.rb:1.1  Sun Aug 12 11:52:26 2012
+++ pkgsrc/textproc/migemo/patches/patch-migemo-convert.rb      Sun Jan 19 11:24:44 2025
@@ -1,13 +1,22 @@
-$NetBSD: patch-migemo-convert.rb,v 1.1 2012/08/12 11:52:26 obache Exp $
+$NetBSD: patch-migemo-convert.rb,v 1.2 2025/01/19 11:24:44 taca Exp $
+
+* Set default external encoding to EUC-JP.
+* Add specifying script encoding to EUC-JP.
+* Explictly set encoding of standard input to EUC-JP.
 
 --- migemo-convert.rb.orig     2003-05-26 06:55:22.000000000 +0000
 +++ migemo-convert.rb
 @@ -1,3 +1,4 @@
-+#coding: euc-jp
++# coding: euc-jp
  #
  # Ruby/Migemo - a library for Japanese incremental search.
  #
-@@ -14,12 +15,12 @@
+@@ -10,11 +11,11 @@
+ #
+ # NOTE: Ruby/Migemo can work only with EUC_JP encoding. ($KCODE="e")
+ #
++Encoding.default_external = Encoding::EUC_JP
+ 
  #
  # Convert a SKK's dictionary into Migemo's.
  #
@@ -15,9 +24,3 @@ $NetBSD: patch-migemo-convert.rb,v 1.1 2
  require 'romkan'
  
  HIRAGANA = "[��-���]"
- KANJI = "[��-�]"
- 
-+$stdin.set_encoding(Encoding::EUC_JP)
- puts ";;"
- puts ";; This is Migemo's dictionary generated from SKK's."
- puts ";;"
Index: pkgsrc/textproc/migemo/patches/patch-migemo-grep
diff -u pkgsrc/textproc/migemo/patches/patch-migemo-grep:1.1 pkgsrc/textproc/migemo/patches/patch-migemo-grep:1.2
--- pkgsrc/textproc/migemo/patches/patch-migemo-grep:1.1        Sun Aug 12 11:52:26 2012
+++ pkgsrc/textproc/migemo/patches/patch-migemo-grep    Sun Jan 19 11:24:44 2025
@@ -1,14 +1,17 @@
-$NetBSD: patch-migemo-grep,v 1.1 2012/08/12 11:52:26 obache Exp $
+$NetBSD: patch-migemo-grep,v 1.2 2025/01/19 11:24:44 taca Exp $
+
+* Add specifying script encoding to EUC-JP.
+* Remove $KCODE.
 
 --- migemo-grep.orig   2003-05-27 07:43:07.000000000 +0000
 +++ migemo-grep
-@@ -1,4 +1,4 @@
--#! /usr/bin/env ruby
-+#! /usr/bin/env ruby -Ke
+@@ -1,4 +1,5 @@
+ #! /usr/bin/env ruby
++# coding: euc-jp
  #
  # migemo-grep - a simple grep-like tool employing migemo.
  #
-@@ -9,7 +9,6 @@
+@@ -9,7 +10,6 @@
  # You can redistribute it and/or modify it under the terms of 
  # the GNU General Public License version 2.
  #
Index: pkgsrc/textproc/migemo/patches/patch-migemo-index.rb
diff -u pkgsrc/textproc/migemo/patches/patch-migemo-index.rb:1.1 pkgsrc/textproc/migemo/patches/patch-migemo-index.rb:1.2
--- pkgsrc/textproc/migemo/patches/patch-migemo-index.rb:1.1    Sun Aug 12 11:52:26 2012
+++ pkgsrc/textproc/migemo/patches/patch-migemo-index.rb        Sun Jan 19 11:24:44 2025
@@ -1,8 +1,24 @@
-$NetBSD: patch-migemo-index.rb,v 1.1 2012/08/12 11:52:26 obache Exp $
+$NetBSD: patch-migemo-index.rb,v 1.2 2025/01/19 11:24:44 taca Exp $
 
---- migemo-index.rb.orig       2003-05-26 15:45:53.000000000 +0900
-+++ migemo-index.rb    2011-08-22 02:21:25.000000000 +0900
-@@ -19,5 +19,5 @@
+* Add specifying script encoding to EUC-JP.
+* Use bytesize instead of length.
+
+--- migemo-index.rb.orig       2003-05-26 06:45:53.000000000 +0000
++++ migemo-index.rb
+@@ -1,3 +1,4 @@
++# coding: euc-jp
+ #
+ # Ruby/Migemo - a library for Japanese incremental search.
+ #
+@@ -10,6 +11,7 @@
+ #
+ # NOTE: Ruby/Migemo can work only with EUC_JP encoding. ($KCODE="e")
+ #
++Encoding.default_external = Encoding::EUC_JP
+ 
+ #
+ # Index Migemo's dictionary.
+@@ -19,5 +21,5 @@ while line = gets
    unless line =~ /^;/
      print [offset].pack("N")
    end
Index: pkgsrc/textproc/migemo/patches/patch-migemo-server
diff -u pkgsrc/textproc/migemo/patches/patch-migemo-server:1.1 pkgsrc/textproc/migemo/patches/patch-migemo-server:1.2
--- pkgsrc/textproc/migemo/patches/patch-migemo-server:1.1      Sun Aug 12 11:52:27 2012
+++ pkgsrc/textproc/migemo/patches/patch-migemo-server  Sun Jan 19 11:24:44 2025
@@ -1,22 +1,28 @@
-$NetBSD: patch-migemo-server,v 1.1 2012/08/12 11:52:27 obache Exp $
+$NetBSD: patch-migemo-server,v 1.2 2025/01/19 11:24:44 taca Exp $
+
+* Set default external encoding to EUC-JP.
+* Add specifying script encoding to EUC-JP.
+* Remove $KCODE.
 
 --- migemo-server.orig 2001-08-13 09:30:51.000000000 +0000
 +++ migemo-server
-@@ -1,4 +1,4 @@
--#! /usr/bin/env ruby
-+#! /usr/bin/env ruby -Ke
+@@ -1,4 +1,5 @@
+ #! /usr/bin/env ruby
++# coding: euc-jp
  #
  # migemo-server
  #
-@@ -10,7 +10,6 @@
+@@ -9,8 +10,8 @@
+ # You can redistribute it and/or modify it under the terms of 
  # the GNU General Public License version 2.
  #
++Encoding.default_external = Encoding::EUC_JP
  
 -$KCODE = "e"
  require 'migemo'
  require 'cgi'
  require 'socket'
-@@ -73,7 +72,7 @@ class MigemoServer
+@@ -73,7 +74,7 @@ class MigemoServer
    end
  
    def print_form (socket)
@@ -25,7 +31,7 @@ $NetBSD: patch-migemo-server,v 1.1 2012/
                ['HTTP/1.0 200', 
                  'Content-type: text/html'], 
                <<"EOF")
-@@ -111,7 +110,7 @@ EOF
+@@ -111,7 +112,7 @@ EOF
  
    def print_http (socket, header, body)
      header.each { |h| socket.syswrite h + CRLF }
Index: pkgsrc/textproc/migemo/patches/patch-migemo.rb.in
diff -u pkgsrc/textproc/migemo/patches/patch-migemo.rb.in:1.1 pkgsrc/textproc/migemo/patches/patch-migemo.rb.in:1.2
--- pkgsrc/textproc/migemo/patches/patch-migemo.rb.in:1.1       Sun Aug 12 11:52:27 2012
+++ pkgsrc/textproc/migemo/patches/patch-migemo.rb.in   Sun Jan 19 11:24:44 2025
@@ -1,8 +1,21 @@
-$NetBSD: patch-migemo.rb.in,v 1.1 2012/08/12 11:52:27 obache Exp $
+$NetBSD: patch-migemo.rb.in,v 1.2 2025/01/19 11:24:44 taca Exp $
+
+* Add specifying script encoding to EUC-JP.
+* Use modern regexp.
 
 --- migemo.rb.in.orig  2003-05-28 12:00:52.000000000 +0000
 +++ migemo.rb.in
-@@ -14,7 +14,6 @@
+@@ -1,3 +1,4 @@
++# coding: euc-jp
+ #
+ # Ruby/Migemo - a library for Japanese incremental search.
+ #
+@@ -10,11 +11,11 @@
+ #
+ # NOTE: Ruby/Migemo can work only with EUC_JP encoding. ($KCODE="e")
+ #
++Encoding.default_external = Encoding::EUC_JP
+ 
  require 'migemo-dict'
  require 'migemo-regex'
  require 'romkan'
@@ -10,7 +23,7 @@ $NetBSD: patch-migemo.rb.in,v 1.1 2012/0
  include MigemoRegex
  
  class String
-@@ -24,7 +23,7 @@ class String
+@@ -24,7 +25,7 @@ class String
    end
  
    def quotemeta
Index: pkgsrc/textproc/migemo/patches/patch-tests_Makefile.am
diff -u pkgsrc/textproc/migemo/patches/patch-tests_Makefile.am:1.1 pkgsrc/textproc/migemo/patches/patch-tests_Makefile.am:1.2
--- pkgsrc/textproc/migemo/patches/patch-tests_Makefile.am:1.1  Sun Aug 12 11:52:27 2012
+++ pkgsrc/textproc/migemo/patches/patch-tests_Makefile.am      Sun Jan 19 11:24:44 2025
@@ -1,10 +1,16 @@
-$NetBSD: patch-tests_Makefile.am,v 1.1 2012/08/12 11:52:27 obache Exp $
+$NetBSD: patch-tests_Makefile.am,v 1.2 2025/01/19 11:24:44 taca Exp $
+
+* Set default external encoding to EUC-JP.
+* Explictly specify $_.
 
 --- tests/Makefile.am.orig     2001-08-13 17:12:57.000000000 +0000
 +++ tests/Makefile.am
-@@ -10,7 +10,7 @@ test-dict.idx: test-dict ../migemo-index
+@@ -8,9 +8,9 @@ test-dict.idx: test-dict ../migemo-index
+       ruby -I.. ../migemo-index.rb test-dict > test-dict.idx
+ 
  test-dict.cache: test-dict test-dict.idx ../migemo-cache.rb
-       ruby -rromkan -ne 'puts $$1.to_roma if /^(.+?)  /' test-dict |\
+-      ruby -rromkan -ne 'puts $$1.to_roma if /^(.+?)  /' test-dict |\
++      ruby -rromkan -ne 'Encoding.default_external = Encoding::EUC_JP; puts $$1.to_roma if /^(.+?)    /' test-dict |\
        while read line; do\
 -          echo $$line | ruby -ne 'chomp!;1.upto($$_.length) do |x| puts $$_[0,x] end';\
 +          echo $$line | ruby -ne '$$_.chomp!;1.upto($$_.length) do |x| puts $$_[0,x] end';\



Home | Main Index | Thread Index | Old Index