diff options
author | miwi <miwi@FreeBSD.org> | 2008-06-23 04:11:26 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-06-23 04:11:26 +0800 |
commit | 7c3c6a03916d450a0cafb5d7a03b8a7e8bea5481 (patch) | |
tree | 5627bfe9074c2b5af46aa9d7ef545ef7c6aae7d1 /japanese/chasen-base | |
parent | 1ccc91574b43d66bcf26429275d774634a5472e5 (diff) | |
download | freebsd-ports-gnome-7c3c6a03916d450a0cafb5d7a03b8a7e8bea5481.tar.gz freebsd-ports-gnome-7c3c6a03916d450a0cafb5d7a03b8a7e8bea5481.tar.zst freebsd-ports-gnome-7c3c6a03916d450a0cafb5d7a03b8a7e8bea5481.zip |
- Fix build after devel/darts update
Reported by: pavbot
Diffstat (limited to 'japanese/chasen-base')
-rw-r--r-- | japanese/chasen-base/Makefile | 2 | ||||
-rw-r--r-- | japanese/chasen-base/files/patch-dartsdic.cpp | 15 |
2 files changed, 13 insertions, 4 deletions
diff --git a/japanese/chasen-base/Makefile b/japanese/chasen-base/Makefile index 36e46f562bfd..9d9e0be44d90 100644 --- a/japanese/chasen-base/Makefile +++ b/japanese/chasen-base/Makefile @@ -8,7 +8,7 @@ PORTNAME= chasen PORTVERSION= 2.3.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= japanese textproc MASTER_SITES= http://chasen.aist-nara.ac.jp/stable/chasen/ PKGNAMESUFFIX= -base diff --git a/japanese/chasen-base/files/patch-dartsdic.cpp b/japanese/chasen-base/files/patch-dartsdic.cpp index bf1a751d77b2..07baf60b7ec6 100644 --- a/japanese/chasen-base/files/patch-dartsdic.cpp +++ b/japanese/chasen-base/files/patch-dartsdic.cpp @@ -1,5 +1,5 @@ ---- lib/dartsdic.cpp.orig Thu Jul 31 01:06:57 2003 -+++ lib/dartsdic.cpp Wed Jan 25 09:30:23 2006 +--- lib/dartsdic.cpp.orig 2003-07-30 18:06:57.000000000 +0200 ++++ lib/dartsdic.cpp 2008-06-22 21:44:25.000000000 +0200 @@ -68,7 +68,7 @@ da = (darts_t*)cha_malloc(sizeof(darts_t)); @@ -9,12 +9,21 @@ da->da = darts; da->lex_mmap = cha_mmap_file(lexname); da->dat_mmap = cha_mmap_file(datname); +@@ -160,7 +160,7 @@ + { + Hash::iterator i, last; + Hash* entries = builder->entries; +- char** keys = new char*[entries->size()]; ++ const char** keys = new const char*[entries->size()]; + size_t* lens = new size_t[entries->size()]; + long* vals = new long[entries->size()]; + int size = 0; @@ -177,7 +177,7 @@ lex_indices.push_back(i->second); } lens[size] = key.size(); - (const char*)keys[size] = key.data(); -+ keys[size] = (char*) key.data(); ++ keys[size] = (const char*) key.data(); vals[size] = redump_lex(lens[size], lex_indices, tmpfile, lexfile); if (vals[size] < 0) { std::cerr << "Unexpected error at " << key << std::endl; |