summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorSatoshi Taoka <taoka@FreeBSD.org>2002-09-13 05:52:57 +0000
committerSatoshi Taoka <taoka@FreeBSD.org>2002-09-13 05:52:57 +0000
commit322031a4c5bab8a843ed915f1d88357ec9fddd3f (patch)
treed1595493959c2e75cfa7cbfa4414cab5c748f53e /japanese
parentNew port: WAEIJIRO Japanese - English Dictionary (EPWING V1 format) (diff)
New port: OTOJIRO English - Japanese Dictionary (EPWING V1 format)
Notes
Notes: svn path=/head/; revision=66232
Diffstat (limited to 'japanese')
-rw-r--r--japanese/Makefile1
-rw-r--r--japanese/otojiro-fpw/Makefile67
-rw-r--r--japanese/otojiro-fpw/distinfo1
-rw-r--r--japanese/otojiro-fpw/pkg-comment1
-rw-r--r--japanese/otojiro-fpw/pkg-descr16
-rw-r--r--japanese/otojiro-fpw/pkg-plist10
6 files changed, 96 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile
index b63789ccb508..e07026dcc9ad 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -275,6 +275,7 @@
SUBDIR += onew-wnn6
SUBDIR += onew-wnn7
SUBDIR += openoffice
+ SUBDIR += otojiro-fpw
SUBDIR += p5-Date-Japanese-Era
SUBDIR += p5-Jcode
SUBDIR += p5-Text-ChaSen
diff --git a/japanese/otojiro-fpw/Makefile b/japanese/otojiro-fpw/Makefile
new file mode 100644
index 000000000000..9a2ed784cd8c
--- /dev/null
+++ b/japanese/otojiro-fpw/Makefile
@@ -0,0 +1,67 @@
+# New ports collection makefile for: OTOJIRO Dictionary - JIS X 4081 version
+# Date created: 2002.9.9
+# Whom: Satoshi Taoka <taoka@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= otojiro-fpw
+PORTVERSION= 1.0.a
+CATEGORIES= japanese
+MASTER_SITES= http://openlab.ring.gr.jp/edict/fpw/dist/eijiro/ \
+ http://member.nifty.ne.jp/~satomii/freepwing/archive/
+DISTNAME= ${PORTNAME}${PORTVERSION:S/.a/a/}-src
+
+MAINTAINER= taoka@FreeBSD.org
+
+BUILD_DEPENDS= ${LOCALBASE}/share/doc/freepwing/fpwutils.mk:${PORTSDIR}/japanese/freepwing \
+ nkf:${PORTSDIR}/japanese/nkf \
+ ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Jcode.pm:${PORTSDIR}/japanese/p5-Jcode
+
+RESTRICTED= "The original dictionary is not free"
+NO_PACKAGE= "The original dictionary is not free"
+USE_GMAKE= yes
+WRKSRC= ${WRKDIR}/otojiro-fpw${PORTVERSION:S/.a/a/}
+DICT_PATH?= /cdrom
+SRCFILE?= otojiro.txt
+MAKE_ENV= OTOJIRO_FILE=${DICT_PATH}/${SRCFILE}
+
+pre-extract::
+ @if [ ! -f ${DICT_PATH}/${SRCFILE} ]; then \
+ ${ECHO} "###################################################"; \
+ ${ECHO} "I cannot find a file ${DICT_PATH}/${SRCFILE}"; \
+ ${ECHO} "Specify the Otojiro Dictionary file with the full path"; \
+ ${ECHO} "and excecute the following command again:"; \
+ ${ECHO} " make DICT_PATH=${DICT_PATH} SRCFILE=${SRCFILE}"; \
+ ${ECHO} ""; \
+ ${ECHO} "Notice: DICT_PATH must be a full path to the file."; \
+ ${ECHO} "###################################################"; \
+ ${FALSE}; \
+ fi
+
+post-build:
+## To delete CR after NL
+ cd ${WRKSRC}; ${MV} catalogs.txt catalogs.txt.org; \
+ nkf -sSd catalogs.txt.org > catalogs.txt; \
+ fpwmake catalogs
+
+do-build:
+ cd ${WRKSRC}; ${ENV} ${MAKE_ENV} fpwmake
+
+do-install:
+ ${MKDIR} ${PREFIX}/share/dict/otojiro-fpw/otojiro/data
+ ${MKDIR} ${PREFIX}/share/dict/otojiro-fpw/otojiro/gaiji
+ ${INSTALL_DATA} ${WRKSRC}/honmon ${PREFIX}/share/dict/otojiro-fpw/otojiro/data
+# ${INSTALL_DATA} ${WRKSRC}/gai16f \
+# ${PREFIX}/share/dict/otojiro-fpw/otojiro/gaiji
+ ${INSTALL_DATA} ${WRKSRC}/gai16h \
+ ${PREFIX}/share/dict/otojiro-fpw/otojiro/gaiji
+ ${INSTALL_DATA} ${WRKSRC}/catalogs ${PREFIX}/share/dict/otojiro-fpw
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/otojiro-fpw
+.for i in readme.txt COPYING
+ ${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/otojiro-fpw
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/japanese/otojiro-fpw/distinfo b/japanese/otojiro-fpw/distinfo
new file mode 100644
index 000000000000..447ed8cdfddb
--- /dev/null
+++ b/japanese/otojiro-fpw/distinfo
@@ -0,0 +1 @@
+MD5 (otojiro-fpw1.0a-src.tar.gz) = 8bd4bdc5320ea06bb0df36994c0e493b
diff --git a/japanese/otojiro-fpw/pkg-comment b/japanese/otojiro-fpw/pkg-comment
new file mode 100644
index 000000000000..c15dfadbe9ba
--- /dev/null
+++ b/japanese/otojiro-fpw/pkg-comment
@@ -0,0 +1 @@
+OTOJIRO English - Japanese Dictionary (EPWING V1 format)
diff --git a/japanese/otojiro-fpw/pkg-descr b/japanese/otojiro-fpw/pkg-descr
new file mode 100644
index 000000000000..a16dfd9585bd
--- /dev/null
+++ b/japanese/otojiro-fpw/pkg-descr
@@ -0,0 +1,16 @@
+Otojiro is a dictionary compiled by E.D.P. For details, such as how to
+obtain the whole data, visit EDP's Web site.
+
+ http://member.nifty.ne.jp/eijiro/
+
+-- E.D.P.
+
+Data in this port are converted from the original dictionary into JIS
+X 4081 format (that is a subset of EPWING V1) by FreePWING. So this
+can be used by EPWING viewers on Unix and the other OS (e.g. Windows
+or MacOS).
+
+o URL for this converted dictionary:
+WWW: http://openlab.ring.gr.jp/edict/fpw/
+
+-- S.TAOKA
diff --git a/japanese/otojiro-fpw/pkg-plist b/japanese/otojiro-fpw/pkg-plist
new file mode 100644
index 000000000000..66b9a04eecc9
--- /dev/null
+++ b/japanese/otojiro-fpw/pkg-plist
@@ -0,0 +1,10 @@
+share/dict/otojiro-fpw/otojiro/data/honmon
+share/dict/otojiro-fpw/otojiro/gaiji/gai16h
+share/dict/otojiro-fpw/catalogs
+@dirrm share/dict/otojiro-fpw/otojiro/data
+@dirrm share/dict/otojiro-fpw/otojiro/gaiji
+@dirrm share/dict/otojiro-fpw/otojiro
+@dirrm share/dict/otojiro-fpw
+share/doc/otojiro-fpw/COPYING
+share/doc/otojiro-fpw/readme.txt
+@dirrm share/doc/otojiro-fpw