aboutsummaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2010-01-13 14:23:19 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2010-01-13 14:23:19 +0000
commit5dff7640ffa99350cd49a61a292d3d468bc70218 (patch)
tree318d7e3cab2d4a5e29c70a2126b4402391768989 /textproc
parent01bb4b3b917781891e0f10b1479f39936cd67d61 (diff)
downloadports-5dff7640ffa99350cd49a61a292d3d468bc70218.tar.gz
ports-5dff7640ffa99350cd49a61a292d3d468bc70218.zip
Notes
Diffstat (limited to 'textproc')
-rw-r--r--textproc/eruby/Makefile4
-rw-r--r--textproc/eruby/files/patch-eruby_lib.c6
-rw-r--r--textproc/eruby/files/patch-eruby_main.c2
3 files changed, 8 insertions, 4 deletions
diff --git a/textproc/eruby/Makefile b/textproc/eruby/Makefile
index 3ca15a5084d7..18d7e960c6db 100644
--- a/textproc/eruby/Makefile
+++ b/textproc/eruby/Makefile
@@ -62,4 +62,8 @@ CONFIGURE_ENV+= EXTRA_LDFLAGS="${EXTRA_LDFLAGS} -pthread"
.endif
.endif
+.if ${RUBY_RELVERSION} == 1.9.1
+CFLAGS+= -DWITH_RUBY_19
+.endif
+
.include <bsd.port.post.mk>
diff --git a/textproc/eruby/files/patch-eruby_lib.c b/textproc/eruby/files/patch-eruby_lib.c
index 1a37eeed050b..08665f6651c1 100644
--- a/textproc/eruby/files/patch-eruby_lib.c
+++ b/textproc/eruby/files/patch-eruby_lib.c
@@ -8,7 +8,7 @@
#include "eruby.h"
#include "config.h"
-+#if defined(RFLOAT_VALUE)
++#if defined(DWITH_RUBY_19)
+#include "ruby/regex.h"
+#undef ismbchar
+#define ismbchar(c,e,enc) ((mbclen(c,e,enc)) != 1)
@@ -24,7 +24,7 @@
}
s++;
goto again;
-+#if !defined(RFLOAT_VALUE)
++#if !defined(DWITH_RUBY_19)
case 'K':
s++;
if (*s == '\0') {
@@ -83,7 +83,7 @@
if (prevc < 0) output_literal(compiler, "print \"");
output_char(compiler, c);
prevc = c;
-+#if defined(RFLOAT_VALUE)
++#if defined(DWITH_RUBY_19)
+ if (ismbchar(c,c+4,OnigEncDefaultCharEncoding)) {
+ int i, len = mbclen(c,c,OnigEncDefaultCharEncoding) - 1;
+#else
diff --git a/textproc/eruby/files/patch-eruby_main.c b/textproc/eruby/files/patch-eruby_main.c
index 3b080d247eac..74d4bb5c6800 100644
--- a/textproc/eruby/files/patch-eruby_main.c
+++ b/textproc/eruby/files/patch-eruby_main.c
@@ -4,7 +4,7 @@
#endif
#include "ruby.h"
-+#if defined(RFLOAT_VALUE)
++#if defined(DWITH_RUBY_19)
+#define RUBY_VERSION_CODE 190
+#endif
+#if RUBY_VERSION_CODE < 190