Imported into pkgsrc as converters/kcc.
This commit is contained in:
parent
04b12fd893
commit
dd77dabfb7
5 changed files with 0 additions and 74 deletions
|
@ -1,3 +0,0 @@
|
|||
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.
|
19
kcc/Makefile
19
kcc/Makefile
|
@ -1,19 +0,0 @@
|
|||
# $NetBSD: Makefile,v 1.2 2006/02/11 15:56:37 obache 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
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
|
@ -1,3 +0,0 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 2005/09/20 12:12:41 obache Exp $
|
||||
bin/kcc
|
||||
man/ja_JP.EUC/man1/kcc.1
|
|
@ -1,6 +0,0 @@
|
|||
$NetBSD: distinfo,v 1.1.1.1 2005/09/20 12:12:41 obache Exp $
|
||||
|
||||
SHA1 (kcc.tar.gz) = 1ecb051b48c5f3e0e5c055dd34eee89c252cf176
|
||||
RMD160 (kcc.tar.gz) = e75c0e13bc4bd435c18a2bb690c24188e34610b1
|
||||
Size (kcc.tar.gz) = 18869 bytes
|
||||
SHA1 (patch-aa) = 648888b03277eb9361c10b614bce049c8d6df38b
|
|
@ -1,43 +0,0 @@
|
|||
$NetBSD: patch-aa,v 1.1.1.1 2005/09/20 12:12:41 obache 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);
|
Loading…
Reference in a new issue