View | Details | Raw Unified | Return to bug 160404
Collapse All | Expand All

(-)Makefile (-1 / +12 lines)
Lines 32-35 Link Here
32
		docs/doc
32
		docs/doc
33
33
34
test regression-test check:
35
	${MAKE} -C ${WRKSRC} test
36
34
post-build:
37
post-build:
35
.if !defined(NOPORTDOCS)
38
.if !defined(NOPORTDOCS)
Lines 49-53 Link Here
49
.include <bsd.port.pre.mk>
52
.include <bsd.port.pre.mk>
50
.if ${RUBY_VER} == 1.9
53
.if ${RUBY_VER} == 1.9
51
BROKEN=	does not build with ruby 1.9
54
pre-everything::
55
	########################################################
56
	# Although it is now possible to compile ${PORTNAME}
57
	# against Ruby-${RUBY_VER}, the resulting binary is not
58
	# fully functional due to changes in Ruby API.
59
	# Use of Ruby-1.8 is recommended for full compatibility.
60
	########################################################
61
.elif ${RUBY_VER} == 1.8
62
post-build: test
52
.endif
63
.endif
53
.include <bsd.port.post.mk>
64
.include <bsd.port.post.mk>
(-)files/patch-delegate (+10 lines)
Added Link Here
1
--- src/delegate.c	2006-09-19 13:06:40.000000000 -0400
2
+++ src/delegate.c	2011-09-02 13:28:23.000000000 -0400
3
@@ -171,5 +171,6 @@
4
 	ary = rb_class_instance_methods(1, &tmp, rb_mKernel);
5
 	for (i = 0; i < RARRAY_LEN(ary); i++) {
6
-	    method = StringValuePtr(RARRAY_PTR(ary)[i]);
7
+	    tmp = rb_obj_as_string(RARRAY_PTR(ary)[i]);
8
+	    method = StringValuePtr(tmp);
9
 	    if (!strcmp(method, "==") ||
10
 		!strcmp(method, "===") || !strcmp(method, "=~")) continue;
(-)files/patch-super (+16 lines)
Added Link Here
1
The RCLASS_SUPER define is present in both Ruby 1.8 and 1.9.
2
3
Direct access to "super" no longer works in 1.9 (the field is
4
not there), but the define continues to work properly.
5
6
	-mi
7
8
--- src/bdb1.c	2006-09-20 12:41:01.000000000 -0400
9
+++ src/bdb1.c	2011-09-02 12:27:34.000000000 -0400
10
@@ -692,5 +692,5 @@
11
 	    break;
12
 	}
13
-	cl = RCLASS(cl)->super;
14
+	cl = RCLASS_SUPER(cl);
15
     }
16
     if (!cl) {

Return to bug 160404