summaryrefslogtreecommitdiff
path: root/converters/kcc
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-02-11 16:49:04 +0000
committerrillig <rillig@pkgsrc.org>2006-02-11 16:49:04 +0000
commitb599aca1458fc4f1fcb6da30b1bebd6a40786b97 (patch)
tree39f91f44c6e86cce6bd210abc03dfb1292dfab57 /converters/kcc
parent129bbb1ecef84c1ad095b5486f27d948f7ddb001 (diff)
downloadpkgsrc-b599aca1458fc4f1fcb6da30b1bebd6a40786b97.tar.gz
Imported kcc from pkgsrc-wip.
Kcc is a kanji code converter and it's a program used to convert between various encodings used for Japanese character sets. It handles 7bit JIS, 8bit JIS, Shift JIS, EUC, and DEC. Packaged by OBATA Akio.
Diffstat (limited to 'converters/kcc')
-rw-r--r--converters/kcc/DESCR3
-rw-r--r--converters/kcc/Makefile20
-rw-r--r--converters/kcc/PLIST3
-rw-r--r--converters/kcc/distinfo6
-rw-r--r--converters/kcc/patches/patch-aa43
5 files changed, 75 insertions, 0 deletions
diff --git a/converters/kcc/DESCR b/converters/kcc/DESCR
new file mode 100644
index 00000000000..c944ff84ef9
--- /dev/null
+++ b/converters/kcc/DESCR
@@ -0,0 +1,3 @@
+Kcc is a kanji code converter and it's a program used to convert between
+various encodings used for Japanese character sets. It handles 7bit JIS,
+8bit JIS, Shift JIS, EUC, and DEC.
diff --git a/converters/kcc/Makefile b/converters/kcc/Makefile
new file mode 100644
index 00000000000..efdb8b03b19
--- /dev/null
+++ b/converters/kcc/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/02/11 16:49:04 rillig Exp $
+
+DISTNAME= kcc
+PKGNAME= kcc-1.0
+CATEGORIES= japanese converters
+MASTER_SITES= ${MASTER_SITE_FREEBSD} \
+ ftp://ftp.sra.co.jp/pub/os/linux/JE/sources/base/
+
+MAINTAINER= obata@lins.jp
+HOMEPAGE= # empty
+COMMENT= Kanji code converter with auto encoding detection
+
+MAKE_FLAGS+= BINPATH=${PREFIX:Q}/bin
+MAKE_FLAGS+= MANPATH=${PREFIX:Q}/man
+MAKE_FLAGS+= JMANDIR=ja_JP.EUC
+
+INSTALL_TARGET= install install.man
+INSTALLATION_DIRS= man/ja_JP.EUC/man1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/converters/kcc/PLIST b/converters/kcc/PLIST
new file mode 100644
index 00000000000..495a8bcd032
--- /dev/null
+++ b/converters/kcc/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/02/11 16:49:04 rillig Exp $
+bin/kcc
+man/ja_JP.EUC/man1/kcc.1
diff --git a/converters/kcc/distinfo b/converters/kcc/distinfo
new file mode 100644
index 00000000000..8e94e6275b2
--- /dev/null
+++ b/converters/kcc/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/02/11 16:49:04 rillig Exp $
+
+SHA1 (kcc.tar.gz) = 1ecb051b48c5f3e0e5c055dd34eee89c252cf176
+RMD160 (kcc.tar.gz) = e75c0e13bc4bd435c18a2bb690c24188e34610b1
+Size (kcc.tar.gz) = 18869 bytes
+SHA1 (patch-aa) = 648888b03277eb9361c10b614bce049c8d6df38b
diff --git a/converters/kcc/patches/patch-aa b/converters/kcc/patches/patch-aa
new file mode 100644
index 00000000000..457aa1049e2
--- /dev/null
+++ b/converters/kcc/patches/patch-aa
@@ -0,0 +1,43 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/02/11 16:49:04 rillig Exp $
+
+--- kcc.c.orig 1994-03-28 20:00:12.000000000 +0900
++++ kcc.c
+@@ -134,7 +134,11 @@ extern unsigned short katakana[];
+ extern unsigned short hiragana[];
+ unsigned short *kanatbl = katakana;
+
++#ifdef __STDC__
++void error(char *format, ...);
++#else
+ void error();
++#endif
+
+ /**********************************************************************
+ * *
+@@ -364,14 +368,26 @@ main(c, v)
+ NAME
+ error - print formatted error message on stderr and die
+ ---------------------------------------------------------------------*/
++#ifdef __STDC__
++#include <stdarg.h>
++#else
+ #include <varargs.h>
++#endif
+
++#ifdef __STDC__
++void error(char *format, ...)
++#else
+ void error(va_alist)
+ va_dcl
++#endif
+ {
+ va_list args;
+
++#ifdef __STDC__
++ va_start(args, format);
++#else
+ va_start(args);
++#endif
+ fprintf(stderr, "%s: ", progname);
+ vfprintf(stderr, va_arg(args, char *), args);
+ putc('\n', stderr);