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

nkf パッケージ



kayです。

  nkf をパッケージ化してみました。誰か pkg/DESCR を書いてください:-)

  あと、日本語関連のパッケージ名って ja-nkf のように ja- を前置する方
がいいんでしょうかね?

  素の mule とかだと要らないと思うんですが、wnn4 とか canna 対応の 
mule だとやっぱり ja-mule とかの方がいいんのかな?

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	nkf
#	nkf/patches
#	nkf/patches/patch-aa
#	nkf/Makefile
#	nkf/files
#	nkf/files/md5
#	nkf/files/nkf.post-extract
#	nkf/pkg
#	nkf/pkg/PLIST
#	nkf/pkg/COMMENT
#	nkf/pkg/DESCR
#
echo c - nkf
mkdir -p nkf > /dev/null 2>&1
echo c - nkf/patches
mkdir -p nkf/patches > /dev/null 2>&1
echo x - nkf/patches/patch-aa
sed 's/^X//' >nkf/patches/patch-aa << 'END-of-nkf/patches/patch-aa'
X*** Makefile.orig	Sun Nov  8 02:49:20 1998
X--- Makefile	Sun May  9 18:11:23 1999
X***************
X*** 4,9 ****
X--- 4,19 ----
X  # SHAR = shar 
X  PERL = perl5
X  
X+ PREFIX ?=	/usr/local
X+ BINDIR = ${DESTDIR}${PREFIX}/bin
X+ MANDIR = ${DESTDIR}${PREFIX}/man/man1
X+ 
X+ all:	nkf
X+ 
X+ install:	all
X+ 	install -c -s nkf ${BINDIR}
X+ 	install -c nkf.1 ${MANDIR}
X+ 
X  nkf : nkf.c
X  	$(CC) $(CFLAGS) -o nkf nkf.c
X  
END-of-nkf/patches/patch-aa
echo x - nkf/Makefile
sed 's/^X//' >nkf/Makefile << 'END-of-nkf/Makefile'
X# New ports collection makefile for:	nkf
X# Version required:	1.7
X# Date created:		9 May 1999
X# Whom:			kay
X#
X# $Id$
X#
X
XDISTNAME=	nkf-1.7
XCATEGORIES=	japanese
X
XMASTER_SITES=	ftp://ftp.win.ne.jp/pub/misc/
X
XPATCH_SITES=	http://www.rs.civil.tohoku.ac.jp/~ito/ws/
XPATCHFILES=	nkf.patch.txt
XPATCH_DIST_ARGS+= -R -d ${WRKSRC}
X
X
X
XMAINTAINER=	kay@kaynet.or.jp
X
Xpost-extract:
X	@cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/nkf.post-extract
X
X.include "../../mk/bsd.pkg.mk"
END-of-nkf/Makefile
echo c - nkf/files
mkdir -p nkf/files > /dev/null 2>&1
echo x - nkf/files/md5
sed 's/^X//' >nkf/files/md5 << 'END-of-nkf/files/md5'
X$NetBSD$
X
XMD5 (nkf-1.7.tar.gz) = 153c6917384a7cff635f5eed576dc563
XMD5 (nkf.patch.txt) = c6a465c1f51ac3ea369a6bdc15894179
END-of-nkf/files/md5
echo x - nkf/files/nkf.post-extract
sed 's/^X//' >nkf/files/nkf.post-extract << 'END-of-nkf/files/nkf.post-extract'
X*** nkf.c.bak	Sun May  9 17:20:37 1999
X--- nkf.c	Sun May  9 17:21:32 1999
X***************
X*** 1483,1489 ****
X  
X  
X  #ifdef STRICT_MIME
X! /* This converts  ^\^\*/
X  
X  unsigned char *mime_pattern[] = {
X     (unsigned char *)"\075?ISO-8859-1?Q?",
X--- 1483,1489 ----
X  
X  
X  #ifdef STRICT_MIME
X! /* This converts  */
X  
X  unsigned char *mime_pattern[] = {
X     (unsigned char *)"\075?ISO-8859-1?Q?",
END-of-nkf/files/nkf.post-extract
echo c - nkf/pkg
mkdir -p nkf/pkg > /dev/null 2>&1
echo x - nkf/pkg/PLIST
sed 's/^X//' >nkf/pkg/PLIST << 'END-of-nkf/pkg/PLIST'
Xbin/nkf
Xman/man1/nkf.1
END-of-nkf/pkg/PLIST
echo x - nkf/pkg/COMMENT
sed 's/^X//' >nkf/pkg/COMMENT << 'END-of-nkf/pkg/COMMENT'
XNetwork Kanji code conversion Fileter
END-of-nkf/pkg/COMMENT
echo x - nkf/pkg/DESCR
sed 's/^X//' >nkf/pkg/DESCR << 'END-of-nkf/pkg/DESCR'
XNkf is a kanji code converter.
END-of-nkf/pkg/DESCR
exit

-- 
吉田恵介@川崎市高津区千年 (kay@kaynet.or.jp)
ホームページ http://www.kaynet.or.jp/~kay/