aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2018-01-05 04:12:43 +0800
committersunpoet <sunpoet@FreeBSD.org>2018-01-05 04:12:43 +0800
commitf17b96cd4ebdf7d70e7403d9a241deeb8558e57a (patch)
treebd7993062a2ec6a6aadd7c6c496b1022ccb6b0a6 /devel
parentc89042f09f0ed3f28879b8b37a40e575e3eb2679 (diff)
downloadfreebsd-ports-gnome-f17b96cd4ebdf7d70e7403d9a241deeb8558e57a.tar.gz
freebsd-ports-gnome-f17b96cd4ebdf7d70e7403d9a241deeb8558e57a.tar.zst
freebsd-ports-gnome-f17b96cd4ebdf7d70e7403d9a241deeb8558e57a.zip
Fix build with Ruby 2.4+ and unbreak this port
Approved by: portmgr (blanket) MFH: 2018Q1
Diffstat (limited to 'devel')
-rw-r--r--devel/rubygem-msgpack/Makefile2
-rw-r--r--devel/rubygem-msgpack/files/patch-ext-msgpack-core_ext.c13
2 files changed, 13 insertions, 2 deletions
diff --git a/devel/rubygem-msgpack/Makefile b/devel/rubygem-msgpack/Makefile
index 7fea93a6a3f6..730082ff8e46 100644
--- a/devel/rubygem-msgpack/Makefile
+++ b/devel/rubygem-msgpack/Makefile
@@ -14,8 +14,6 @@ USE_RUBY= yes
USES= gem
STRIPDIR= ${STAGEDIR}${PREFIX}/${GEMS_BASE_DIR}
-BROKEN_RUBY24= yes
-
post-install:
${FIND} ${STRIPDIR} -type f \( -name '*.o' -o -name '*.so' \) | ${XARGS} ${STRIP_CMD}
diff --git a/devel/rubygem-msgpack/files/patch-ext-msgpack-core_ext.c b/devel/rubygem-msgpack/files/patch-ext-msgpack-core_ext.c
new file mode 100644
index 000000000000..20025be030f3
--- /dev/null
+++ b/devel/rubygem-msgpack/files/patch-ext-msgpack-core_ext.c
@@ -0,0 +1,13 @@
+--- ext/msgpack/core_ext.c.orig 2018-01-03 15:29:36 UTC
++++ ext/msgpack/core_ext.c
+@@ -118,8 +118,8 @@ void MessagePack_core_ext_module_init()
+ rb_define_method(rb_cNilClass, "to_msgpack", NilClass_to_msgpack, -1);
+ rb_define_method(rb_cTrueClass, "to_msgpack", TrueClass_to_msgpack, -1);
+ rb_define_method(rb_cFalseClass, "to_msgpack", FalseClass_to_msgpack, -1);
+- rb_define_method(rb_cFixnum, "to_msgpack", Fixnum_to_msgpack, -1);
+- rb_define_method(rb_cBignum, "to_msgpack", Bignum_to_msgpack, -1);
++ rb_define_method(rb_cInteger, "to_msgpack", Fixnum_to_msgpack, -1);
++ rb_define_method(rb_cInteger, "to_msgpack", Bignum_to_msgpack, -1);
+ rb_define_method(rb_cFloat, "to_msgpack", Float_to_msgpack, -1);
+ rb_define_method(rb_cString, "to_msgpack", String_to_msgpack, -1);
+ rb_define_method(rb_cArray, "to_msgpack", Array_to_msgpack, -1);