aboutsummaryrefslogtreecommitdiff
path: root/japanese
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2011-08-11 23:42:24 +0000
committerSteve Wills <swills@FreeBSD.org>2011-08-11 23:42:24 +0000
commit77deb46b4865e548ad149efa68e8ae2bed1196f5 (patch)
tree92ac0a3b4690dc5776008c5fa1efdd4fefa5adc0 /japanese
parent3304a6db7c272db269e9140d62975969d4323a15 (diff)
downloadports-77deb46b4865e548ad149efa68e8ae2bed1196f5.tar.gz
ports-77deb46b4865e548ad149efa68e8ae2bed1196f5.zip
Notes
Diffstat (limited to 'japanese')
-rw-r--r--japanese/tomoe/Makefile7
-rw-r--r--japanese/tomoe/files/patch-bindings_ruby_tomoe-rb-char.c11
2 files changed, 14 insertions, 4 deletions
diff --git a/japanese/tomoe/Makefile b/japanese/tomoe/Makefile
index b3e85b49c2c8..4e673bea166e 100644
--- a/japanese/tomoe/Makefile
+++ b/japanese/tomoe/Makefile
@@ -106,7 +106,9 @@ CONFIGURE_ARGS+=--disable-unihan
PLIST_SUB+= UNIHAN="@comment "
.endif
-CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
+CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include \
+ -I${LOCALBASE}/include/ruby-${RUBY_VER} \
+ -I${LOCALBASE}/include/ruby-${RUBY_VER}/${RUBY_ARCH}" \
PYTHON_VERSION=${PYTHON_VERSION:S;python;;} \
pyexecdir=${PYTHON_SITELIBDIR} \
GMSGFMT="${LOCALBASE}/bin/msgfmt"
@@ -117,7 +119,4 @@ post-extract:
${UNZIP_CMD} -qo ${DISTDIR}/Unihan.zip -d ${WRKSRC}/module/dict
.endif
-.if ${RUBY_VER} == 1.9
-BROKEN= does not work with ruby 1.9
-.endif
.include <bsd.port.post.mk>
diff --git a/japanese/tomoe/files/patch-bindings_ruby_tomoe-rb-char.c b/japanese/tomoe/files/patch-bindings_ruby_tomoe-rb-char.c
new file mode 100644
index 000000000000..20f2f2ee7770
--- /dev/null
+++ b/japanese/tomoe/files/patch-bindings_ruby_tomoe-rb-char.c
@@ -0,0 +1,11 @@
+--- bindings/ruby/tomoe-rb-char.c.orig 2011-07-24 02:20:26.000000000 +0000
++++ bindings/ruby/tomoe-rb-char.c 2011-07-24 02:22:22.000000000 +0000
+@@ -13,7 +13,7 @@
+ if (NIL_P(xml)) {
+ chr = tomoe_char_new();
+ } else {
+- chr = tomoe_char_new_from_xml_data(RVAL2CSTR(xml), RSTRING(xml)->len);
++ chr = tomoe_char_new_from_xml_data(RVAL2CSTR(xml), RSTRING_LEN(xml));
+ }
+
+ G_INITIALIZE(self, chr);