summaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authornobutaka <nobutaka@FreeBSD.org>2005-01-09 12:37:36 +0000
committernobutaka <nobutaka@FreeBSD.org>2005-01-09 12:37:36 +0000
commitde74b71d775050b6fa4880bec7cbc610e4c8ff16 (patch)
tree680f588424e0c46923601b5609c1fe5a7b2a6ec1 /japanese
parent7770f22053ce5e730fae8e67987dedc9af4d09a1 (diff)
downloadFreeBSD-ports-de74b71d775050b6fa4880bec7cbc610e4c8ff16.zip
FreeBSD-ports-de74b71d775050b6fa4880bec7cbc610e4c8ff16.tar.gz
Add WITH_ODIC knob. This adds geographical names and biographical names in
Okinawa region (located at the southern tip of Japan) to the anthy dictionary. PR: ports/75309 Submitted by: Yamashiro Jun <yamajun@ofug.net>
Diffstat (limited to 'japanese')
-rw-r--r--japanese/anthy/Makefile18
-rw-r--r--japanese/anthy/distinfo2
-rw-r--r--japanese/anthy/files/extra-patch-mkanthydic:Makefile.in11
3 files changed, 18 insertions, 13 deletions
diff --git a/japanese/anthy/Makefile b/japanese/anthy/Makefile
index 530c8f1..b83ee4e 100644
--- a/japanese/anthy/Makefile
+++ b/japanese/anthy/Makefile
@@ -29,12 +29,26 @@ PLIST_SUB= ELISPDIR=${ELISPDIR}
MASTER_SITES+= http://omaemona.sourceforge.net/packages/Zisyo/:2chdic
DISTFILES+= 2ch.t:2chdic
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
-EXTRA_PATCHES= ${PATCHDIR}/extra-patch-mkanthydic:Makefile.in
.endif
-.if defined(WITH_2CHDIC)
+.if defined(WITH_ODIC)
+MASTER_SITES+= http://www.ofug.net/~yamajun/files/:odic
+DISTFILES+= okinawa-20041220.t:odic
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+.endif
+
post-extract:
+.if defined(WITH_2CHDIC)
@${CP} ${DISTDIR}/${DIST_SUBDIR}/2ch.t ${WRKSRC}/mkanthydic
+ @${REINPLACE_CMD} -e 's/base.t extra.t/base.t extra.t 2ch.t/' \
+ ${WRKSRC}/mkanthydic/Makefile.in
+.endif
+
+.if defined(WITH_ODIC)
+ @${CP} ${DISTDIR}/${DIST_SUBDIR}/okinawa-20041220.t ${WRKSRC}/mkanthydic
+ @${REINPLACE_CMD} -e \
+ 's/base.t extra.t/base.t extra.t okinawa-20041220.t/' \
+ ${WRKSRC}/mkanthydic/Makefile.in
.endif
post-patch:
diff --git a/japanese/anthy/distinfo b/japanese/anthy/distinfo
index 99d5b30..8608094 100644
--- a/japanese/anthy/distinfo
+++ b/japanese/anthy/distinfo
@@ -2,3 +2,5 @@ MD5 (anthy/anthy-5900.tar.gz) = 7f1a250c8b88b3792855fb43131ce8d3
SIZE (anthy/anthy-5900.tar.gz) = 1566783
MD5 (anthy/2ch.t) = d253bec53045cec3ba40f69a63f76612
SIZE (anthy/2ch.t) = 142157
+MD5 (anthy/okinawa-20041220.t) = 0a732577fee039362d1d392b742d67ae
+SIZE (anthy/okinawa-20041220.t) = 145992
diff --git a/japanese/anthy/files/extra-patch-mkanthydic:Makefile.in b/japanese/anthy/files/extra-patch-mkanthydic:Makefile.in
deleted file mode 100644
index 861acbd..0000000
--- a/japanese/anthy/files/extra-patch-mkanthydic:Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- mkanthydic/Makefile.in.orig Sat Feb 28 20:56:34 2004
-+++ mkanthydic/Makefile.in Tue Mar 2 23:58:52 2004
-@@ -99,7 +99,7 @@
-
- # Files
- noinst_SCRIPTS =
--EXTRA_DICS = base.t extra.t
-+EXTRA_DICS = base.t extra.t 2ch.t
- CANNADIC_DIST = gcanna.ctd gcannaf.ctd
- INCLUDES = -I$(top_srcdir)/include
- # HOKUTODIC_DIST = hokuto.t
OpenPOWER on IntegriCloud