summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authorseb <seb>2002-05-31 13:00:35 +0000
committerseb <seb>2002-05-31 13:00:35 +0000
commit12c86c68caa1d5f273938384e575246316d46b9e (patch)
treea86263df0851eef977c43a46e16a40353a29e6b1 /converters
parent0745ab661a60be09c1c5ff09da0e52854e811a2c (diff)
downloadpkgsrc-12c86c68caa1d5f273938384e575246316d46b9e.tar.gz
Reimport of package nkf from japanese/nkf into converters/nkf.
This is part of the japanese category retirement. CATEGORIES and pathnames to japanese/ adjusted.
Diffstat (limited to 'converters')
-rw-r--r--converters/nkf/DESCR8
-rw-r--r--converters/nkf/Makefile24
-rw-r--r--converters/nkf/PLIST3
-rw-r--r--converters/nkf/distinfo6
-rw-r--r--converters/nkf/files/nkf.post-extract19
5 files changed, 60 insertions, 0 deletions
diff --git a/converters/nkf/DESCR b/converters/nkf/DESCR
new file mode 100644
index 00000000000..3eb4a732c22
--- /dev/null
+++ b/converters/nkf/DESCR
@@ -0,0 +1,8 @@
+Nkf is a yet another kanji code converter between the different types
+of kanji codes out there. It can convert between 7-bit JIS, MS-kanji
+(shifted-JIS) or EUC.
+
+One of the most unique facilities of nkf is that it guesses the input
+kanji code. It currently recognizes 7-bit JIS, MS-kanji (shifted-JIS)
+and EUC. So users don't need to specify (or even know) the input
+kanji code type.
diff --git a/converters/nkf/Makefile b/converters/nkf/Makefile
new file mode 100644
index 00000000000..683c6ea8236
--- /dev/null
+++ b/converters/nkf/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/05/31 13:00:35 seb Exp $
+
+DISTNAME= nkf-1.7
+CATEGORIES= japanese converters
+MASTER_SITES= ftp://ftp.sra.co.jp/pub/cmd/nkf/
+
+PATCH_SITES= http://www.rs.civil.tohoku.ac.jp/~ito/ws/
+PATCHFILES= nkf.patch.txt
+
+MAINTAINER= kay@kaynet.or.jp
+COMMENT= Network Kanji code conversion Filter
+
+ALL_TARGET= nkf
+PATCH_DIST_ARGS+= -R -d ${WRKSRC}
+
+post-extract:
+ @cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/nkf.post-extract
+ @${RM} -rf ${WRKSRC}/NKF
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/nkf ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/nkf.1 ${PREFIX}/man/man1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/converters/nkf/PLIST b/converters/nkf/PLIST
new file mode 100644
index 00000000000..edd5c797042
--- /dev/null
+++ b/converters/nkf/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/05/31 13:00:35 seb Exp $
+bin/nkf
+man/man1/nkf.1
diff --git a/converters/nkf/distinfo b/converters/nkf/distinfo
new file mode 100644
index 00000000000..7b4d20b6ffe
--- /dev/null
+++ b/converters/nkf/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/05/31 13:00:35 seb Exp $
+
+SHA1 (nkf-1.7.tar.gz) = 2116864c1acc8e6f80d4c59dc63c73eb37c9e80c
+Size (nkf-1.7.tar.gz) = 28222 bytes
+SHA1 (nkf.patch.txt) = f7b0a640be331a707584ba34d083f5e2361c3969
+Size (nkf.patch.txt) = 3558 bytes
diff --git a/converters/nkf/files/nkf.post-extract b/converters/nkf/files/nkf.post-extract
new file mode 100644
index 00000000000..61df30147cb
--- /dev/null
+++ b/converters/nkf/files/nkf.post-extract
@@ -0,0 +1,19 @@
+*** nkf.c.bak Sun May 9 17:20:37 1999
+--- nkf.c Sun May 9 17:21:32 1999
+***************
+*** 1483,1489 ****
+
+
+ #ifdef STRICT_MIME
+! /* This converts ^\^\*/
+
+ unsigned char *mime_pattern[] = {
+ (unsigned char *)"\075?ISO-8859-1?Q?",
+--- 1483,1489 ----
+
+
+ #ifdef STRICT_MIME
+! /* This converts */
+
+ unsigned char *mime_pattern[] = {
+ (unsigned char *)"\075?ISO-8859-1?Q?",