[76568] trunk/dports/textproc/kakasi

takanori at macports.org takanori at macports.org
Mon Feb 28 05:29:47 PST 2011


Revision: 76568
          http://trac.macports.org/changeset/76568
Author:   takanori at macports.org
Date:     2011-02-28 05:29:45 -0800 (Mon, 28 Feb 2011)
Log Message:
-----------
kakasi:
 - Version bump to 2.3.5pre1-cvs20101217, as per request from Susumu Tanimura.
   (This version of kakasi supports UTF-8 encoding.)

Modified Paths:
--------------
    trunk/dports/textproc/kakasi/Portfile

Added Paths:
-----------
    trunk/dports/textproc/kakasi/files/
    trunk/dports/textproc/kakasi/files/patch-autogen.sh.diff
    trunk/dports/textproc/kakasi/files/patch-tests_kakasi-1.diff
    trunk/dports/textproc/kakasi/files/patch-tests_kakasi-4.diff
    trunk/dports/textproc/kakasi/files/patch-tests_kakasi-5.diff
    trunk/dports/textproc/kakasi/files/patch-tests_kakasi-6.diff
    trunk/dports/textproc/kakasi/files/patch-tests_kakasi-7.diff

Modified: trunk/dports/textproc/kakasi/Portfile
===================================================================
--- trunk/dports/textproc/kakasi/Portfile	2011-02-28 12:47:45 UTC (rev 76567)
+++ trunk/dports/textproc/kakasi/Portfile	2011-02-28 13:29:45 UTC (rev 76568)
@@ -3,7 +3,7 @@
 PortSystem      1.0
 
 name            kakasi
-version         2.3.4
+version         2.3.5pre1-cvs20101217
 categories      textproc japanese
 maintainers     takanori openmaintainer
 description     Program that converts Kanji text to other scripts
@@ -11,31 +11,52 @@
                 KAKASI (Kanji Kana Simple Inverter) is a language processing filter which \
                 converts Kanji characters to Hiragana, Katakana, or Romaji. It may be \
                 helpful for reading Japanese documents.
+license         GPLv3
 platforms       darwin
 homepage        http://kakasi.namazu.org/
-master_sites    http://kakasi.namazu.org/stable/
-checksums       md5 4eff51aafbd56c9635791a20c03efa8f \
-                sha1 ab95a226f301955d2e8ae0d347afbb567e25fbe7 \
-                rmd160 8ed84c5aaa0713484ab070871f555b12ded31802
+master_sites    http://svn.sourceforge.jp/svnroot/macports-jp/distfiles/kakasi/
+patchfiles      patch-autogen.sh.diff \
+                patch-tests_kakasi-1.diff \
+                patch-tests_kakasi-4.diff \
+                patch-tests_kakasi-5.diff \
+                patch-tests_kakasi-6.diff \
+                patch-tests_kakasi-7.diff
+checksums       md5     a2e47c3028ac6afb5c94f0a2e4d06476 \
+                sha1    6fbc953122b6b92e5738611a30fcef4bc12c3587 \
+                rmd160  8e0dfc74e4987ef53bf50741bdd53bd322e9aaa8
 
-patch {
-    reinplace "s|-undefined suppress||g" ${worksrcpath}/configure
-    if {[variant_isset universal]} {
-        reinplace "s|echo -dynamiclib\)|echo -dynamiclib\) ${configure.universal_cflags}|g" ${worksrcpath}/configure
-    }
+depends_lib     port:libiconv
+depends_build   port:autoconf \
+                port:automake \
+                port:coreutils \
+                port:libtool
+
+worksrcdir      ${name}
+
+pre-configure {
+    system "cd ${worksrcpath} && ./autogen.sh"
 }
 
-configure.args-append   --with-pic --enable-shared --enable-static --libexecdir=${prefix}/lib
+configure.args-append   --enable-maintainer-mode
 
 use_parallel_build  yes
 
+test.run        yes
+test.target     check
+pre-test {
+    ui_msg ""
+    ui_msg " NOTICE: Testing will fail at kakasi-5. This is an expected behavior. "
+    ui_msg " http://www.namazu.org/pipermail/kakasi-dev/2007-October/000077.html "
+    ui_msg ""
+}
+
 post-destroot {
     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc
 
-    foreach f {AUTHORS COPYING ChangeLog INSTALL* NEWS ONEWS README* THANKS TODO} {
+    foreach f {AUTHORS COPYING ChangeLog HACKING-ja INSTALL* NEWS ONEWS README* THANKS TODO} {
         eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/doc/${name}
     }
-    foreach f {ChangeLog.lib JISYO README.* kakasi.*} {
+    foreach f {ChangeLog.lib JISYO README.*} {
         eval xinstall -m 644 [glob ${worksrcpath}/doc/${f}] ${destroot}${prefix}/share/doc/${name}/doc
     }
 }

Added: trunk/dports/textproc/kakasi/files/patch-autogen.sh.diff
===================================================================
--- trunk/dports/textproc/kakasi/files/patch-autogen.sh.diff	                        (rev 0)
+++ trunk/dports/textproc/kakasi/files/patch-autogen.sh.diff	2011-02-28 13:29:45 UTC (rev 76568)
@@ -0,0 +1,31 @@
+--- ./autogen.sh.orig	2004-10-01 14:23:18.000000000 +0900
++++ ./autogen.sh	2011-02-28 18:52:53.000000000 +0900
+@@ -46,7 +46,7 @@
+ }
+ 
+ (grep "^AM_PROG_LIBTOOL" configure.in >/dev/null) && {
+-  (libtool --version) < /dev/null > /dev/null 2>&1 || {
++  (glibtool --version) < /dev/null > /dev/null 2>&1 || {
+     echo
+     echo "**Error**: You must have \`libtool' installed to compile KAKASI."
+     echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.3.tar.gz"
+@@ -69,8 +69,8 @@
+ echo "Generating configure script and Makefiles for KAKASI."
+ 
+ if grep "^AC_PROG_LIBTOOL" configure.in >/dev/null; then
+-  echo "Running libtoolize..."
+-  libtoolize --force --copy
++  echo "Running glibtoolize..."
++  glibtoolize --force --copy
+ fi
+ echo "Running aclocal ..."
+ aclocal -I .
+@@ -81,8 +81,3 @@
+ echo "Running autoconf ..."
+ autoconf
+ 
+-echo "Configuring KAKASI."
+-conf_flags="--enable-maintainer-mode"
+-echo Running $./configure $conf_flags "$@" ...
+-./configure $conf_flags "$@"
+-echo "Now type 'make' to compile KAKASI."

Added: trunk/dports/textproc/kakasi/files/patch-tests_kakasi-1.diff
===================================================================
--- trunk/dports/textproc/kakasi/files/patch-tests_kakasi-1.diff	                        (rev 0)
+++ trunk/dports/textproc/kakasi/files/patch-tests_kakasi-1.diff	2011-02-28 13:29:45 UTC (rev 76568)
@@ -0,0 +1,14 @@
+--- tests/kakasi-1.orig	2006-09-21 16:32:59.000000000 +0900
++++ tests/kakasi-1	2011-02-28 20:49:46.000000000 +0900
+@@ -25,9 +25,9 @@
+ 		expect=`eval "echo $\`echo $j\`"`
+ 		for x in $input
+ 		do
+-			/bin/echo -n -e "\\$x"
++			gecho -n -e "\\$x"
+ 		done | ../src/kakasi -i$i -o$j > tmp
+-		ret=`cat tmp|od -t oC -w80|head -1|sed -e 's/^0* //'`
++		ret=`cat tmp|god -t oC -w80|head -1|sed -e 's/^0* //'`
+ 		if [ ! "x$ret" = "x$expect" ]
+ 		then
+ 			echo "unexpected result." >> $LOG

Added: trunk/dports/textproc/kakasi/files/patch-tests_kakasi-4.diff
===================================================================
--- trunk/dports/textproc/kakasi/files/patch-tests_kakasi-4.diff	                        (rev 0)
+++ trunk/dports/textproc/kakasi/files/patch-tests_kakasi-4.diff	2011-02-28 13:29:45 UTC (rev 76568)
@@ -0,0 +1,11 @@
+--- tests/kakasi-4.orig	2006-09-21 16:32:59.000000000 +0900
++++ tests/kakasi-4	2011-02-28 20:58:26.000000000 +0900
+@@ -48,7 +48,7 @@
+ 
+ for x in $jisx0201
+ do
+-	/bin/echo -n -e "\\$x"
++	gecho -n -e "\\$x"
+ done > tmp
+ ret=`$KAKASI -isjis -ka < tmp`
+ if [ ! "x$ret" = "x$roma" ]

Added: trunk/dports/textproc/kakasi/files/patch-tests_kakasi-5.diff
===================================================================
--- trunk/dports/textproc/kakasi/files/patch-tests_kakasi-5.diff	                        (rev 0)
+++ trunk/dports/textproc/kakasi/files/patch-tests_kakasi-5.diff	2011-02-28 13:29:45 UTC (rev 76568)
@@ -0,0 +1,11 @@
+--- tests/kakasi-5.orig	2006-09-21 16:36:34.000000000 +0900
++++ tests/kakasi-5	2011-02-28 21:07:49.000000000 +0900
+@@ -9,7 +9,7 @@
+ 
+ . env.sh
+ 
+-GNUECHO=/bin/echo
++GNUECHO=gecho
+ 
+ bitpat () {
+     for x in 0 1 2 3

Added: trunk/dports/textproc/kakasi/files/patch-tests_kakasi-6.diff
===================================================================
--- trunk/dports/textproc/kakasi/files/patch-tests_kakasi-6.diff	                        (rev 0)
+++ trunk/dports/textproc/kakasi/files/patch-tests_kakasi-6.diff	2011-02-28 13:29:45 UTC (rev 76568)
@@ -0,0 +1,11 @@
+--- tests/kakasi-6.orig	2006-09-21 16:36:34.000000000 +0900
++++ tests/kakasi-6	2011-02-28 20:55:39.000000000 +0900
+@@ -9,7 +9,7 @@
+ 
+ . env.sh
+ 
+-GNUECHO=/bin/echo
++GNUECHO=gecho
+ 
+ # a KANJI character "AI" (it means "love" in English) in utf8
+ out=`$GNUECHO -e '\346\204\233' | ../src/kakasi -iutf8 -oeuc`

Added: trunk/dports/textproc/kakasi/files/patch-tests_kakasi-7.diff
===================================================================
--- trunk/dports/textproc/kakasi/files/patch-tests_kakasi-7.diff	                        (rev 0)
+++ trunk/dports/textproc/kakasi/files/patch-tests_kakasi-7.diff	2011-02-28 13:29:45 UTC (rev 76568)
@@ -0,0 +1,11 @@
+--- tests/kakasi-7.orig	2006-09-21 16:36:34.000000000 +0900
++++ tests/kakasi-7	2011-02-28 21:04:55.000000000 +0900
+@@ -9,7 +9,7 @@
+ 
+ . env.sh
+ 
+-GNUECHO=/bin/echo
++GNUECHO=gecho
+ 
+ # a SPECIAL character KUTEN
+ out=`$GNUECHO -e '\241\242' | ../src/kakasi -ieuc -oeuc -w`
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110228/838b54e1/attachment.html>


More information about the macports-changes mailing list