Reimport of package kakasi from japanese/kakasi into textproc/kakasi.
This is part of the japanese category retirement. CATEGORIES adjusted.
This commit is contained in:
parent
98be43d88b
commit
7894e7b9f7
7 changed files with 142 additions and 0 deletions
7
textproc/kakasi/DESCR
Normal file
7
textproc/kakasi/DESCR
Normal file
|
@ -0,0 +1,7 @@
|
|||
KAKASI is language processing filter to convert Kanji characters to
|
||||
Hiragana, Katakana or Roman alphabetic Japanese and may be helpful to
|
||||
read Japanese documents. By converting documents written in kanji to
|
||||
Roman alphabetic Japanese, those documents can be viewed on systems
|
||||
without Japanese language capability.
|
||||
|
||||
- Masafumi
|
23
textproc/kakasi/Makefile
Normal file
23
textproc/kakasi/Makefile
Normal file
|
@ -0,0 +1,23 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 2002/05/31 13:00:32 seb Exp $
|
||||
# FreeBSD Id: Makefile,v 1.14 1998/04/05 04:46:33 max Exp $
|
||||
|
||||
DISTNAME= kakasi-2.3.4
|
||||
CATEGORIES= japanese textproc
|
||||
MASTER_SITES= ftp://kakasi.namazu.org/pub/kakasi/stable/
|
||||
|
||||
MAINTAINER= tech-pkg-ja@jp.netbsd.org
|
||||
HOMEPAGE= http://kakasi.namazu.org/
|
||||
COMMENT= Kanji-Kana Simple Inverter, language filter for Japanese
|
||||
|
||||
USE_BUILDLINK_ONLY= YES
|
||||
GNU_CONFIGURE= YES
|
||||
USE_GMAKE= YES
|
||||
USE_LIBTOOL= YES
|
||||
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
|
||||
|
||||
post-install:
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/kakasi.1 ${PREFIX}/man/ja_JP.EUC/man1
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/kakasi.cat \
|
||||
${PREFIX}/man/ja_JP.EUC/cat1/kakasi.0
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
18
textproc/kakasi/PLIST
Normal file
18
textproc/kakasi/PLIST
Normal file
|
@ -0,0 +1,18 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 2002/05/31 13:00:32 seb Exp $
|
||||
bin/atoc_conv
|
||||
bin/kakasi
|
||||
bin/kakasi-config
|
||||
bin/mkkanwa
|
||||
bin/rdic_conv
|
||||
bin/wx2_conv
|
||||
include/libkakasi.h
|
||||
lib/libkakasi.a
|
||||
lib/libkakasi.la
|
||||
lib/libkakasi.so
|
||||
lib/libkakasi.so.3
|
||||
lib/libkakasi.so.3.0
|
||||
man/ja_JP.EUC/cat1/kakasi.0
|
||||
man/ja_JP.EUC/man1/kakasi.1
|
||||
share/kakasi/itaijidict
|
||||
share/kakasi/kanwadict
|
||||
@dirrm share/kakasi
|
49
textproc/kakasi/buildlink.mk
Normal file
49
textproc/kakasi/buildlink.mk
Normal file
|
@ -0,0 +1,49 @@
|
|||
# $NetBSD: buildlink.mk,v 1.1.1.1 2002/05/31 13:00:32 seb Exp $
|
||||
#
|
||||
# This Makefile fragment is included by packages that use kakasi.
|
||||
#
|
||||
# To use this Makefile fragment, simply:
|
||||
#
|
||||
# (1) Optionally define BUILDLINK_DEPENDS.kakasi to the dependency pattern
|
||||
# for the version of kakasi desired.
|
||||
# (2) Include this Makefile fragment in the package Makefile,
|
||||
# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
|
||||
# search path, and
|
||||
# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
|
||||
# path.
|
||||
|
||||
.if !defined(KAKASI_BUILDLINK_MK)
|
||||
KAKASI_BUILDLINK_MK= # defined
|
||||
|
||||
.include "../../mk/bsd.buildlink.mk"
|
||||
|
||||
BUILDLINK_DEPENDS.kakasi?= kakasi>=2.3.0
|
||||
DEPENDS+= ${BUILDLINK_DEPENDS.kakasi}:../../textproc/kakasi
|
||||
|
||||
EVAL_PREFIX+= BUILDLINK_PREFIX.kakasi=kakasi
|
||||
BUILDLINK_PREFIX.kakasi_DEFAULT= ${LOCALBASE}
|
||||
BUILDLINK_FILES.kakasi= include/libkakasi.h
|
||||
BUILDLINK_FILES.kakasi+= lib/libkakasi.*
|
||||
|
||||
BUILDLINK_TARGETS.kakasi= kakasi-buildlink
|
||||
BUILDLINK_TARGETS.kakasi+= kakasi-buildlink-config-wrapper
|
||||
BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.kakasi}
|
||||
|
||||
BUILDLINK_CONFIG.kakasi= \
|
||||
${BUILDLINK_PREFIX.kakasi}/bin/kakasi-config
|
||||
BUILDLINK_CONFIG_WRAPPER.kakasi= \
|
||||
${BUILDLINK_DIR}/bin/kakasi-config
|
||||
REPLACE_BUILDLINK_SED+= \
|
||||
-e "s|${BUILDLINK_CONFIG_WRAPPER.kakasi}|${BUILDLINK_CONFIG.kakasi}|g"
|
||||
|
||||
.if defined(USE_CONFIG_WRAPPER)
|
||||
KAKASI_CONFIG?= ${BUILDLINK_CONFIG_WRAPPER.kakasi}
|
||||
CONFIGURE_ENV+= KAKASI_CONFIG="${KAKASI_CONFIG}"
|
||||
MAKE_ENV+= KAKASI_CONFIG="${KAKASI_CONFIG}"
|
||||
.endif
|
||||
|
||||
pre-configure: ${BUILDLINK_TARGETS.kakasi}
|
||||
kakasi-buildlink: _BUILDLINK_USE
|
||||
kakasi-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
|
||||
|
||||
.endif # KAKASI_BUILDLINK_MK
|
6
textproc/kakasi/distinfo
Normal file
6
textproc/kakasi/distinfo
Normal file
|
@ -0,0 +1,6 @@
|
|||
$NetBSD: distinfo,v 1.1.1.1 2002/05/31 13:00:32 seb Exp $
|
||||
|
||||
SHA1 (kakasi-2.3.4.tar.gz) = ab95a226f301955d2e8ae0d347afbb567e25fbe7
|
||||
Size (kakasi-2.3.4.tar.gz) = 1099258 bytes
|
||||
SHA1 (patch-aa) = 4b724f71d04fe52467b37bed79eef6407427ab29
|
||||
SHA1 (patch-ab) = 06ad60e10c996500242fe038213164ddf3147178
|
26
textproc/kakasi/patches/patch-aa
Normal file
26
textproc/kakasi/patches/patch-aa
Normal file
|
@ -0,0 +1,26 @@
|
|||
$NetBSD: patch-aa,v 1.1.1.1 2002/05/31 13:00:32 seb Exp $
|
||||
|
||||
--- lib/libkakasi.c.orig Sun Sep 2 20:43:21 2001
|
||||
+++ lib/libkakasi.c
|
||||
@@ -105,6 +105,12 @@
|
||||
static int digest PARAMS((Character *c, int clen, Character *r, int rlen, int type, int (*proc)(void)));
|
||||
static void digest_shift PARAMS((Character *c, int s));
|
||||
#else /* LIBRARY */
|
||||
+void digest_start_copy PARAMS((Character *c, Character *r));
|
||||
+void put_separator PARAMS((void));
|
||||
+void putchars PARAMS((Character *results));
|
||||
+void digest_out PARAMS((Character *c, int ret));
|
||||
+int digest PARAMS((Character *c, int clen, Character *r, int rlen, int type, int (*proc)(void)));
|
||||
+void digest_shift PARAMS((Character *c, int s));
|
||||
static void free_jisyo PARAMS((void));
|
||||
#endif /* LIBRARY */
|
||||
|
||||
@@ -497,7 +503,7 @@
|
||||
|
||||
char *
|
||||
kakasi_do(str)
|
||||
- char *str;
|
||||
+ unsigned char *str;
|
||||
{
|
||||
Character c[KAKASIBUF], r[KAKASIBUF];
|
||||
int clen, ptype, pctype;
|
13
textproc/kakasi/patches/patch-ab
Normal file
13
textproc/kakasi/patches/patch-ab
Normal file
|
@ -0,0 +1,13 @@
|
|||
$NetBSD: patch-ab,v 1.1.1.1 2002/05/31 13:00:32 seb Exp $
|
||||
|
||||
--- lib/libkakasi.h.orig Mon Aug 27 11:11:56 2001
|
||||
+++ lib/libkakasi.h
|
||||
@@ -31,7 +31,7 @@
|
||||
#endif
|
||||
|
||||
int kakasi_getopt_argv PARAMS((int argc, char **argv));
|
||||
-char *kakasi_do PARAMS((char *str));
|
||||
+char *kakasi_do PARAMS((unsigned char *str));
|
||||
int kakasi_close_kanwadict PARAMS((void));
|
||||
int kakasi_free PARAMS((char *p));
|
||||
|
Loading…
Reference in a new issue