diff options
author | sakamoto <sakamoto> | 1999-06-08 09:54:35 +0000 |
---|---|---|
committer | sakamoto <sakamoto> | 1999-06-08 09:54:35 +0000 |
commit | c16ca1fd3966829b44ec9fedc40f3735f286d70a (patch) | |
tree | cf93628fef0f13c580bc341e61980d67aae56f50 /japanese | |
parent | 757710aac5c62f5ee6afca93e0d31b73e073ac99 (diff) | |
download | pkgsrc-c16ca1fd3966829b44ec9fedc40f3735f286d70a.tar.gz |
Import FreeBSD's "kakasi" port:
Kanji-Kana Simple Inverter, language filter for Japanese.
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/kakasi/Makefile | 48 | ||||
-rw-r--r-- | japanese/kakasi/files/md5 | 3 | ||||
-rw-r--r-- | japanese/kakasi/patches/patch-aa | 39 | ||||
-rw-r--r-- | japanese/kakasi/patches/patch-ab | 11 | ||||
-rw-r--r-- | japanese/kakasi/pkg/COMMENT | 1 | ||||
-rw-r--r-- | japanese/kakasi/pkg/DESCR | 7 | ||||
-rw-r--r-- | japanese/kakasi/pkg/PLIST | 12 |
7 files changed, 121 insertions, 0 deletions
diff --git a/japanese/kakasi/Makefile b/japanese/kakasi/Makefile new file mode 100644 index 00000000000..cf659599379 --- /dev/null +++ b/japanese/kakasi/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: kakasi +# Version required: 2.2.5 +# Date created: 26 Mar. 1996 +# Whom: Masafumi NAKANE <max@FreeBSD.ORG> +# +# $Id: Makefile,v 1.1.1.1 1999/06/08 09:54:35 sakamoto Exp $ +# + +DISTNAME= kakasi-2.2.5 +PKGNAME= ja-kakasi-2.2.5 +CATEGORIES= japanese +MASTER_SITES= ftp://sunsite.sut.ac.jp/pub/asia-info/japanese-src/packages/ \ + ftp://ftp.kusastro.kyoto-u.ac.jp/pub/baba/wais/ \ + ftp://etlport.etl.go.jp/pub/mule/contrib/ \ + ftp://ftp.cs.buffalo.edu/pub/mule/contrib/ \ + ftp://sh.wide.ad.jp/JAPAN/mule/contrib/ \ + ftp://ftp.funet.fi/pub/gnu/funet/emacs/mule/contrib/ \ + ftp://ftp.iij.ad.jp/pub/misc/mule/contrib/ +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} kakasidict.940620.gz \ + kakasi-ext.tar.gz + +MAINTAINER= max@FreeBSD.ORG + +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} kakasi-ext.tar.gz +WRKSRC= ${WRKDIR}/${DISTNAME}/src +PATCH_DIST_STRIP= -p1 +MANLANG= ja +MAN1= kakasi.1 +post-extract: + @${GZCAT} ${DISTDIR}/kakasidict.940620.gz > ${WRKSRC}/kakasidict + +pre-patch: + @${PATCH} ${PATCH_DIST_ARGS} < ${WRKDIR}/kakasi-ext/patch.kakasi-2.2.5 + +post-install: +.for f in mkkanwa atoc-conv rdic-conv + @/usr/bin/strip ${PREFIX}/lib/kakasi/$f +.endfor + ${INSTALL_MAN} ${WRKSRC}/kakasi.1 ${PREFIX}/man/${MANLANG}/man1 +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/kakasi + ${INSTALL_DATA} ${WRKSRC}/JISYO ${PREFIX}/share/doc/kakasi + ${INSTALL_DATA} ${WRKSRC}/../README* ${PREFIX}/share/doc/kakasi + ${INSTALL_DATA} ${WRKDIR}/kakasi-ext/KAKASI.DOC \ + ${PREFIX}/share/doc/kakasi/kakasi-ext.doc +.endif + +.include <bsd.port.mk> diff --git a/japanese/kakasi/files/md5 b/japanese/kakasi/files/md5 new file mode 100644 index 00000000000..a6e381d4528 --- /dev/null +++ b/japanese/kakasi/files/md5 @@ -0,0 +1,3 @@ +MD5 (kakasi-2.2.5.tar.gz) = b65739665a2e43d2dbf4c1f5b2e5ad0e +MD5 (kakasidict.940620.gz) = 33fc2427d7f3d3787d6bf1ef23c3f8c9 +MD5 (kakasi-ext.tar.gz) = 47837bb1777f68bd8f6c4309616b3807 diff --git a/japanese/kakasi/patches/patch-aa b/japanese/kakasi/patches/patch-aa new file mode 100644 index 00000000000..ca002376e20 --- /dev/null +++ b/japanese/kakasi/patches/patch-aa @@ -0,0 +1,39 @@ +*** Makefile.orig Mon Jul 7 01:55:05 1997 +--- Makefile Mon Jul 7 01:55:33 1997 +*************** +*** 27,33 **** + # Please assign next values. + + # Directories of Dictionary and Utilities installed +! PREFIX=/usr/local + + # Preferable Compiler and Options on your system + CC=cc +--- 27,33 ---- + # Please assign next values. + + # Directories of Dictionary and Utilities installed +! PREFIX?=/usr/local + + # Preferable Compiler and Options on your system + CC=cc +*************** +*** 73,79 **** + lint $(CFLAGS) $(SOURCES) + + install: kakasi mkkanwa atoc-conv rdic-conv +! cp kakasi $(BINDIR) + cp $(STDDICTS) mkkanwa atoc-conv rdic-conv $(LIBDIR) + ./mkkanwa $(LIBDIR)/kanwadict kakasidict + +--- 73,82 ---- + lint $(CFLAGS) $(SOURCES) + + install: kakasi mkkanwa atoc-conv rdic-conv +! @(for f in ${BINDIR} ${LIBDIR}; do \ +! if [ ! -d "$$f" ]; then mkdir -p "$$f"; fi; \ +! done) +! install -s -c -o bin -g bin -m 755 kakasi $(BINDIR) + cp $(STDDICTS) mkkanwa atoc-conv rdic-conv $(LIBDIR) + ./mkkanwa $(LIBDIR)/kanwadict kakasidict + diff --git a/japanese/kakasi/patches/patch-ab b/japanese/kakasi/patches/patch-ab new file mode 100644 index 00000000000..30ba0fddf73 --- /dev/null +++ b/japanese/kakasi/patches/patch-ab @@ -0,0 +1,11 @@ +--- ./dict.c.org Sun Jun 19 17:05:23 1994 ++++ ./dict.c Thu Mar 28 20:51:18 1996 +@@ -28,7 +28,7 @@ + #include <stdio.h> + #include <ctype.h> + #include <string.h> +-#include <malloc.h> ++#include <stdlib.h> + #include "kakasi.h" + #include "J2.h" + diff --git a/japanese/kakasi/pkg/COMMENT b/japanese/kakasi/pkg/COMMENT new file mode 100644 index 00000000000..062f4702584 --- /dev/null +++ b/japanese/kakasi/pkg/COMMENT @@ -0,0 +1 @@ +Kanji-Kana Simple Inverter, language filter for Japanese. diff --git a/japanese/kakasi/pkg/DESCR b/japanese/kakasi/pkg/DESCR new file mode 100644 index 00000000000..56390446943 --- /dev/null +++ b/japanese/kakasi/pkg/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/japanese/kakasi/pkg/PLIST b/japanese/kakasi/pkg/PLIST new file mode 100644 index 00000000000..f65a89c0862 --- /dev/null +++ b/japanese/kakasi/pkg/PLIST @@ -0,0 +1,12 @@ +bin/kakasi +lib/kakasi/rdic-conv +lib/kakasi/atoc-conv +lib/kakasi/mkkanwa +lib/kakasi/itaijidict +lib/kakasi/kanwadict +share/doc/kakasi/README +share/doc/kakasi/README.jpn +share/doc/kakasi/kakasi-ext.doc +share/doc/kakasi/JISYO +@dirrm share/doc/kakasi +@dirrm lib/kakasi |