summaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-03-19 20:36:05 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-03-19 20:36:05 +0000
commit67a55c471a915a0a7981181a773d0bfe6cf76af4 (patch)
treec5ebac9d2b80e8ace99d9625dbc7a3d60f30a124 /japanese
parentFix package building. (diff)
Add a patch to fix a bug. The patch was already forwarded to the
author. Submitted by: akira yamada <akira@ruby-lang.org>
Notes
Notes: svn path=/head/; revision=40066
Diffstat (limited to 'japanese')
-rw-r--r--japanese/ruby-kakasi/Makefile1
-rw-r--r--japanese/ruby-kakasi/files/patch-kakasi.c13
2 files changed, 14 insertions, 0 deletions
diff --git a/japanese/ruby-kakasi/Makefile b/japanese/ruby-kakasi/Makefile
index 00497db6e379..5b25e5dc2ff9 100644
--- a/japanese/ruby-kakasi/Makefile
+++ b/japanese/ruby-kakasi/Makefile
@@ -7,6 +7,7 @@
PORTNAME= kakasi
PORTVERSION= 000124
+PORTREVISION= 1
CATEGORIES= japanese ruby
MASTER_SITES= http://www.notwork.org/~gotoken/ruby/p/kakasi/
DIST_SUBDIR= ruby
diff --git a/japanese/ruby-kakasi/files/patch-kakasi.c b/japanese/ruby-kakasi/files/patch-kakasi.c
new file mode 100644
index 000000000000..e56e8f2be75f
--- /dev/null
+++ b/japanese/ruby-kakasi/files/patch-kakasi.c
@@ -0,0 +1,13 @@
+--- kakasi.c~ Sun Jan 23 19:16:28 2000
++++ kakasi.c Wed Mar 14 15:26:42 2001
+@@ -70,7 +70,9 @@
+ while (i < RSTRING(src)->len) {
+ if (*(RSTRING(src)->ptr + i) != '\0') {
+ buf = kakasi_do((RSTRING(src)->ptr + i));
+- rb_str_concat(dst, rb_str_new2(buf));
++ if (buf) {
++ rb_str_concat(dst, rb_str_new2(buf));
++ }
+ free(buf);
+ while (*(RSTRING(src)->ptr + i) != '\0') {
+ i++;