summaryrefslogtreecommitdiff
path: root/japanese/chasen/patches
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/chasen/patches')
-rw-r--r--japanese/chasen/patches/patch-aa39
-rw-r--r--japanese/chasen/patches/patch-ab19
-rw-r--r--japanese/chasen/patches/patch-ac14
3 files changed, 45 insertions, 27 deletions
diff --git a/japanese/chasen/patches/patch-aa b/japanese/chasen/patches/patch-aa
index 95aed29893f..1e1c3e4b104 100644
--- a/japanese/chasen/patches/patch-aa
+++ b/japanese/chasen/patches/patch-aa
@@ -1,12 +1,35 @@
-$NetBSD: patch-aa,v 1.2 1999/06/07 09:54:39 sakamoto Exp $
---- ./Makefile.orig Thu Apr 22 17:08:15 1999
-+++ ./Makefile Mon Jun 7 18:09:47 1999
-@@ -17,6 +17,6 @@
+$NetBSD: patch-aa,v 1.3 2001/01/07 13:30:57 taca Exp $
+
+--- Makefile.orig Wed Dec 29 01:12:01 1999
++++ Makefile
+@@ -9,7 +9,7 @@
+ #
- # --- install directories
+ # --- commands & flags
+-CC = gcc
++CC = cc
+ CFLAGS = -O2
+ CCOUT =
+ LDFLAGS =
+@@ -19,9 +19,9 @@
+
+ # --- installation files and directories
+ CHASEN = chasen
-BINDIR = /usr/local/bin
-LIBDIR = /usr/local/lib/chasen
-+BINDIR = $(PREFIX)/bin
-+LIBDIR = $(PREFIX)/share/chasen
- MKDICDIR = $(LIBDIR)/mkchadic
+-MKDICDIR = $(LIBDIR)/mkchadic
++BINDIR = ${LOCALBASE}/bin
++LIBDIR = ${LOCALBASE}/share/chasen
++MKDICDIR = ${LOCALBASE}/libexec/mkchadic
DICDIR = $(LIBDIR)/dic
+
+ # --- user definitions
+@@ -32,7 +32,7 @@
+ #KOCHA = -DKOCHA2 -DVGRAM # Korean language version
+ #SJIS = -DSJIS
+
+-RCPATH = $(DICDIR)/chasenrc
++RCPATH = $(LIBDIR)/chasenrc
+ SYSVER = 2.02
+ DICNAME = ipadic
+ DICVER = 2.1
diff --git a/japanese/chasen/patches/patch-ab b/japanese/chasen/patches/patch-ab
deleted file mode 100644
index b2b4237cd0f..00000000000
--- a/japanese/chasen/patches/patch-ab
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: patch-ab,v 1.2 2000/01/05 01:10:02 wiz Exp $
---- lib/pat.h~ Tue May 27 06:12:58 1997
-+++ lib/pat.h Thu Oct 22 00:58:38 1998
-@@ -14,6 +14,7 @@
- #define OL(x) /* */
- #endif
-
-+#include <sys/types.h>
- #ifndef NO_MMAP
- #ifdef _WIN32
- #define ONMEM_DIC
-@@ -21,7 +22,6 @@
- #include <sys/mman.h>
- #endif
- #endif /* !NO_MMAP */
--#include <sys/types.h>
- #include <sys/stat.h>
-
- #ifdef ONMEM_DIC
diff --git a/japanese/chasen/patches/patch-ac b/japanese/chasen/patches/patch-ac
new file mode 100644
index 00000000000..6a03950256e
--- /dev/null
+++ b/japanese/chasen/patches/patch-ac
@@ -0,0 +1,14 @@
+$NetBSD: patch-ac,v 1.1 2001/01/07 13:30:58 taca Exp $
+
+--- dic/Makefile.orig Wed Dec 29 11:19:41 1999
++++ dic/Makefile
+@@ -73,7 +73,8 @@
+ install:
+ -mkdir -p $(DICDIR)
+ sed 's#^MKDICDIR.*$$#MKDICDIR=$(MKDICDIR)#' Makefile > $(DICDIR)/Makefile
+- -$(CP) *.cha chadic.* chasenrc $(DICDIR)
++ -$(CP) chasenrc $(LIBDIR)
++ -$(CP) *.cha chadic.* $(DICDIR)
+ # -$(CP) chasen.* *.cha chadic.* chasenrc $(DICDIR)
+
+ clean: