summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorseb <seb>2002-05-31 13:00:32 +0000
committerseb <seb>2002-05-31 13:00:32 +0000
commitdb392655b7e5604bfb78c109ff1bcec1b9023463 (patch)
treed97c289a083048487be9f52f2020a425bd44ebfa /textproc
parentfafc996afe8ad5a145706b7e59b8cdcf4ca58600 (diff)
downloadpkgsrc-db392655b7e5604bfb78c109ff1bcec1b9023463.tar.gz
Reimport of package kakasi from japanese/kakasi into textproc/kakasi.
This is part of the japanese category retirement. CATEGORIES adjusted.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/kakasi/DESCR7
-rw-r--r--textproc/kakasi/Makefile23
-rw-r--r--textproc/kakasi/PLIST18
-rw-r--r--textproc/kakasi/buildlink.mk49
-rw-r--r--textproc/kakasi/distinfo6
-rw-r--r--textproc/kakasi/patches/patch-aa26
-rw-r--r--textproc/kakasi/patches/patch-ab13
7 files changed, 142 insertions, 0 deletions
diff --git a/textproc/kakasi/DESCR b/textproc/kakasi/DESCR
new file mode 100644
index 00000000000..56390446943
--- /dev/null
+++ b/textproc/kakasi/DESCR
@@ -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
diff --git a/textproc/kakasi/Makefile b/textproc/kakasi/Makefile
new file mode 100644
index 00000000000..60b77e9ec86
--- /dev/null
+++ b/textproc/kakasi/Makefile
@@ -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"
diff --git a/textproc/kakasi/PLIST b/textproc/kakasi/PLIST
new file mode 100644
index 00000000000..e15c7e739c8
--- /dev/null
+++ b/textproc/kakasi/PLIST
@@ -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
diff --git a/textproc/kakasi/buildlink.mk b/textproc/kakasi/buildlink.mk
new file mode 100644
index 00000000000..1d75a6d3f9c
--- /dev/null
+++ b/textproc/kakasi/buildlink.mk
@@ -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
diff --git a/textproc/kakasi/distinfo b/textproc/kakasi/distinfo
new file mode 100644
index 00000000000..2fcdf44e6cf
--- /dev/null
+++ b/textproc/kakasi/distinfo
@@ -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
diff --git a/textproc/kakasi/patches/patch-aa b/textproc/kakasi/patches/patch-aa
new file mode 100644
index 00000000000..d420c48f349
--- /dev/null
+++ b/textproc/kakasi/patches/patch-aa
@@ -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;
diff --git a/textproc/kakasi/patches/patch-ab b/textproc/kakasi/patches/patch-ab
new file mode 100644
index 00000000000..368d9488c6f
--- /dev/null
+++ b/textproc/kakasi/patches/patch-ab
@@ -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));
+