diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2008-06-22 20:11:26 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2008-06-22 20:11:26 +0000 |
commit | 0d045014ae5a73a968247b47b2fa552d13cf58b2 (patch) | |
tree | 8f03244b4790b1e7c7a1e46342124f31dbd558de /japanese/chasen-base | |
parent | e1de17f64bf53f804539032d54f73bfabc5f0b48 (diff) |
- Fix build after devel/darts update
Reported by: pavbot
Notes
Notes:
svn path=/head/; revision=215552
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; |