From owner-ports-jp@jp.FreeBSD.org Wed Aug 21 00:34:19 2002
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id g7KFYJQ03621;
	Wed, 21 Aug 2002 00:34:19 +0900 (JST)
	(envelope-from owner-ports-jp@jp.FreeBSD.org)
Received: from taro.c.u-tokyo.ac.jp (taro.c.u-tokyo.ac.jp [157.82.63.16])
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with ESMTP/inet id g7KFYI303616
	for <ports-jp@jp.FreeBSD.org>; Wed, 21 Aug 2002 00:34:18 +0900 (JST)
	(envelope-from koma2@jiro.c.u-tokyo.ac.jp)
From: KOMATSU Shinichiro <koma2@jiro.c.u-tokyo.ac.jp>
To: ports-jp@jp.FreeBSD.org
Cc: max@freebsd.org
References: <20020820061558.9DF211905@taro.c.u-tokyo.ac.jp> <020820154159.M0112308@pelsia.netmove.co.jp>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="+QahgC5+KEYLbs62"
Content-Disposition: inline
In-Reply-To: <020820154159.M0112308@pelsia.netmove.co.jp>
User-Agent: Mutt/1.3.28i-ja.1
X-Editor: JVim 3.0-j2.1a by Ken'ichi Tsuchida (2001 May 5) + skk1.2.17(SKKFEP)
Message-Id: <20020820153418.6DFD41905@taro.c.u-tokyo.ac.jp>
Reply-To: ports-jp@jp.FreeBSD.org
Precedence: list
Date: Wed, 21 Aug 2002 00:34:17 +0900
X-Sequence: ports-jp 13167
Subject: [ports-jp 13167] Re: UTF-8 =?ISO-2022-JP?B?GyRCQlAxfhsoQg==?= nkf
Errors-To: owner-ports-jp@jp.FreeBSD.org
Sender: owner-ports-jp@jp.FreeBSD.org
X-Originator: koma2@jiro.c.u-tokyo.ac.jp
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+020820


--+QahgC5+KEYLbs62
Content-Type: text/plain; charset=iso-2022-jp
Content-Disposition: inline

$B>.>>$G$9!#(B

japanese/nkf $B%a%s%F%J$NCf:,$5$s$K$b(B Cc: $B$7$^$9!#(B

From: Norikatsu Shigemura <nork@cityfujisawa.ne.jp>
Subject: [ports-jp 13162] Re: UTF-8 $BBP1~(B nkf
Date: Tue, Aug 20, 2002 at 03:41:59PM JST

> 	$BF10l@-$NLdBj$,$"$k$H;W$$$^$9$,(B, $B;d$b(B $B$D$J$.(B $B$H$7$F(B, ja-nkf
> 	$B$H07$C$F$7$^$C$F$b$$$$$N$+$J$!!A$H;W$$$^$9!#(B

$B$J$s$+!"(Bjapanese/nkf $B$r(B nkf_utf8 $B$GCV$-49$($F$7$^$C$F$b$$$$$+$J!"(B
$B$H$$$&5$$K$J$C$F$-$^$7$?!#(B

> 	$B$rF~$l$F$k$+$I$&$+$G$9$+$M$'!#!#(B-w/-W $B$N<h$j07$$$,(B 2.0 $B$K(B
> 	$B$J$C$FJQ$o$C$?!D$J$s$F$$$&$H%+%J%jDK$$$G$9$+$i(B(-Z3 $B$b$+$J(B)$B!#(B

-w/-W $B$NL>A0$,0c$&DxEY$G$"$l$P!"(B
patch $B$rEv$F$F$7$^$($P$9$`OC$G$9$7!#(B
$B!t(B module $B2=$5$l$?$*$+$2$G!":G>.8B$NJQ99$G:Q$_$=$&!#(B
$B!t(B -w/-W $B$rJL$N0UL#$G;H$o$l$?$i$A$g$C$H$$$d$s!"$J46$8$G$9$,!#(B

$BLdBj$O(B nkf 2.0 $B$,(B nkf_utf8 $B$H$OJL%b%N$K$J$C$F$7$^$C$?;~(B
($B4A;z%3!<%I$N<+F0H=Dj%k!<%A%s$N<BAu$,0c$&!"$H$+(B)$B$G$9$,!"(B
$B$^$"!"$=$N;~$O$=$N;~$K9M$($l$P$$$$$+$J!"$H!#(B

$B$H$$$&$o$1$G!"(Bjapanese/nkf $B$KBP$9$k(B patch $B$rE:IU$7$^$9!#(B
$B$$$+$,$G$7$g$&!)(B

-- 
---------------------------------------
$BEl5~Bg3XBg3X1!Am9gJ82=8&5f2J(B
$B9-0h2J3X@l96Aj4X4pAC2J3X7O(B 
  $B:4!98&5f<<(B  $BGn;N#3G/(B
    $B>.>>(B  $B?80lO/(B            
mailto:koma2@jiro.c.u-tokyo.ac.jp
       koma2@momonga-linux.org
http://kamuy.c.u-tokyo.ac.jp/~koma2/
---------------------------------------


--+QahgC5+KEYLbs62
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ja-nkf.patch"

diff --exclude=work --exclude=CVS* --exclude=*.log* -urN nkf.orig/Makefile nkf/Makefile
--- nkf.orig/Makefile	Wed Feb 13 04:42:48 2002
+++ nkf/Makefile	Tue Aug 20 22:16:13 2002
@@ -6,31 +6,28 @@
 #
 
 PORTNAME=	nkf
-PORTVERSION=	1.92
-PORTREVISION=	1
+PORTVERSION=	1.92.${UTF8_DATE}
+PORTREVISION=	0
 CATEGORIES=	japanese
-MASTER_SITES=	ftp://ftp.ie.u-ryukyu.ac.jp/pub/software/kono/
-DISTNAME=	${PORTNAME}${PORTVERSION:S/.//}
-EXTRACT_SUFX=	.shar
+MASTER_SITES=	http://www01.tcp-ip.or.jp/~furukawa/nkf_utf8/
+DISTNAME=	nkf_utf8-${UTF8_DATE}
 
 MAINTAINER=	max@FreeBSD.org
 
-EXTRACT_CMD=	${SH}
-EXTRACT_BEFORE_ARGS=	# Empty
-EXTRACT_AFTER_ARGS=	> /dev/null
+USE_BZIP2=	yes
 
-NO_WRKSUBDIR=	yes
-MAN1=		nkf.1 ../ja/man1/nkf.1
+MAN1=		nkf.1
+MANLANG=	"" ja
 ALL_TARGET=	nkf
 
-do-extract:
-	@${RM} -rf ${WRKDIR}
-	@${MKDIR} ${WRKDIR}/NKF
-	@for file in ${EXTRACT_ONLY}; do \
-		if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\
-		then \
-			exit 1; \
-		fi \
-	done
+UTF8_DATE=	2002.08.17
+
+DOCS=		nkf_utf8.txt
+
+.if !defined(NOPORTDOCS)
+post-install:
+	${MKDIR} ${DOCSDIR}
+	( cd ${WRKSRC} ; ${INSTALL_DATA} ${DOCS} ${DOCSDIR})
+.endif
 
 .include <bsd.port.mk>
diff --exclude=work --exclude=CVS* --exclude=*.log* -urN nkf.orig/distinfo nkf/distinfo
--- nkf.orig/distinfo	Wed Feb 13 04:42:48 2002
+++ nkf/distinfo	Tue Aug 20 10:50:54 2002
@@ -1 +1 @@
-MD5 (nkf192.shar) = 2e560387657d5d7c725875e548394b0f
+MD5 (nkf_utf8-2002.08.17.tar.bz2) = db78dc10a5602df22876f9726f0a7ec8
diff --exclude=work --exclude=CVS* --exclude=*.log* -urN nkf.orig/files/patch-aa nkf/files/patch-aa
--- nkf.orig/files/patch-aa	Wed Feb 13 04:42:48 2002
+++ nkf/files/patch-aa	Tue Aug 20 22:59:08 2002
@@ -1,6 +1,6 @@
---- Makefile.orig	Sun Oct 28 07:30:22 2001
-+++ Makefile	Sun Oct 28 07:34:31 2001
-@@ -1,13 +1,21 @@
+--- Makefile.orig	Sat Aug 17 11:55:01 2002
++++ Makefile	Tue Aug 20 22:19:05 2002
+@@ -1,16 +1,23 @@
 -CC = cc
 -CFLAGS = -O
 +PREFIX?= /usr/local
@@ -12,22 +12,19 @@
 -RM = rm -rf
 +PERL?= perl5
 +RM?= rm -rf
-+INSTALL?= /usr/bin/install
  VERSION = 19
  
- nkf : nkf.c
- 	$(CC) $(CFLAGS) -o nkf nkf.c
-+	./nkf -e nkf.1j > nkf.1j.euc
+ nkf : nkf.c utf8tbl.o
+ 	$(CC) $(CFLAGS) -o nkf nkf.c utf8tbl.o
++	./nkf -e nkf.1j > nkf.1j.eucjp
+ 
+ utf8tbl.o : utf8tbl.c
+ 	$(CC) $(CFLAGS) -c utf8tbl.c
 +
 +install:
-+	${INSTALL} -c -o root -g wheel -m 555 nkf ${PREFIX}/bin
-+	${INSTALL} -c -o root -g wheel -m 444 nkf.1 ${PREFIX}/man/man1/nkf.1
-+	${INSTALL} -c -o root -g wheel -m 444 nkf.1j.euc ${PREFIX}/man/ja/man1/nkf.1
++	${BSD_INSTALL_PROGRAM} nkf ${PREFIX}/bin/
++	${BSD_INSTALL_MAN} nkf.1 ${PREFIX}/man/man1/nkf.1
++	${BSD_INSTALL_MAN} nkf.1j.eucjp ${PREFIX}/man/ja/man1/nkf.1
  
  clean:
  	-$(RM) nkf.o nkf nkf.in nkf.out nkf$(VERSION) *~ *.bad
-@@ -30,3 +38,4 @@
- 	done 
- 	( cd nkf$(VERSION) ; $(SHAR)  `cat ../MANIFEST` ) > nkf$(VERSION).shar
- 	-$(RM) nkf$(VERSION)
-+
diff --exclude=work --exclude=CVS* --exclude=*.log* -urN nkf.orig/files/patch-ab nkf/files/patch-ab
--- nkf.orig/files/patch-ab	Wed Nov 14 10:58:05 2001
+++ nkf/files/patch-ab	Thu Jan  1 09:00:00 1970
@@ -1,10 +0,0 @@
---- nkf.c.orig	Tue Nov 13 19:31:36 2001
-+++ nkf.c	Tue Nov 13 19:34:02 2001
-@@ -1670,6 +1670,7 @@
-        if (0x21==c1) {
-            if (alpha_f&0x2) {
-                c1 = ' ';
-+               c2 = 0;
-            } else if (alpha_f&0x4) {
-                 (*o_zconv)(0,' ');
-                 (*o_zconv)(0,' ');
diff --exclude=work --exclude=CVS* --exclude=*.log* -urN nkf.orig/pkg-comment nkf/pkg-comment
--- nkf.orig/pkg-comment	Thu Nov  9 15:37:06 1995
+++ nkf/pkg-comment	Tue Aug 20 11:11:47 2002
@@ -1 +1 @@
-Network Kanji code conversion Filter
+Network Kanji code conversion Filter with UTF8 support
diff --exclude=work --exclude=CVS* --exclude=*.log* -urN nkf.orig/pkg-descr nkf/pkg-descr
--- nkf.orig/pkg-descr	Wed Aug 28 17:52:05 1996
+++ nkf/pkg-descr	Tue Aug 20 22:23:13 2002
@@ -1,9 +1,11 @@
 Nkf is a yet another kanji code converter among networks, hosts and
 terminals.  It converts input kanji code to designated kanji code such
-as 7-bit JIS, MS-kanji (shifted-JIS) or EUC.
+as 7-bit JIS, MS-kanji (shifted-JIS), EUC-JP or UTF-8.
 
 One of the most unique facicility of nkf is the guess of the input
 kanji code.  It currently recognizes 7-bit JIS, MS-kanji (shifted-JIS)
-and EUC.  So users needn't the input kanji code specification.
+EUC-JP and UTF-8.  So users needn't the input kanji code specification.
 
 - Masafumi
+
+WWW: http://www01.tcp-ip.or.jp/~furukawa/nkf_utf8/
diff --exclude=work --exclude=CVS* --exclude=*.log* -urN nkf.orig/pkg-plist nkf/pkg-plist
--- nkf.orig/pkg-plist	Tue Sep  1 02:47:39 1998
+++ nkf/pkg-plist	Tue Aug 20 22:17:27 2002
@@ -1 +1,3 @@
 bin/nkf
+%%PORTDOCS%%share/doc/nkf/nkf_utf8.txt
+@dirrm share/doc/nkf

--+QahgC5+KEYLbs62--
