From b599aca1458fc4f1fcb6da30b1bebd6a40786b97 Mon Sep 17 00:00:00 2001 From: rillig Date: Sat, 11 Feb 2006 16:49:04 +0000 Subject: 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. --- converters/kcc/DESCR | 3 +++ converters/kcc/Makefile | 20 +++++++++++++++++++ converters/kcc/PLIST | 3 +++ converters/kcc/distinfo | 6 ++++++ converters/kcc/patches/patch-aa | 43 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 75 insertions(+) create mode 100644 converters/kcc/DESCR create mode 100644 converters/kcc/Makefile create mode 100644 converters/kcc/PLIST create mode 100644 converters/kcc/distinfo create mode 100644 converters/kcc/patches/patch-aa (limited to 'converters/kcc') 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 ++#else + #include ++#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); -- cgit v1.2.3