pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/converters/kcc Imported kcc from pkgsrc-wip.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/28c3a1f0c9fc
branches:  trunk
changeset: 507937:28c3a1f0c9fc
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Feb 11 16:49:04 2006 +0000

description:
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:

 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(+), 0 deletions(-)

diffs (95 lines):

diff -r 8864e61ac65b -r 28c3a1f0c9fc converters/kcc/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/kcc/DESCR      Sat Feb 11 16:49:04 2006 +0000
@@ -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 -r 8864e61ac65b -r 28c3a1f0c9fc converters/kcc/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/kcc/Makefile   Sat Feb 11 16:49:04 2006 +0000
@@ -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@localhost
+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 -r 8864e61ac65b -r 28c3a1f0c9fc converters/kcc/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/kcc/PLIST      Sat Feb 11 16:49:04 2006 +0000
@@ -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 -r 8864e61ac65b -r 28c3a1f0c9fc converters/kcc/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/kcc/distinfo   Sat Feb 11 16:49:04 2006 +0000
@@ -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 -r 8864e61ac65b -r 28c3a1f0c9fc converters/kcc/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/kcc/patches/patch-aa   Sat Feb 11 16:49:04 2006 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index