mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
Fix build with Ruby 2.4+ and unbreak this port
Approved by: portmgr (blanket) MFH: 2018Q1
This commit is contained in:
parent
2d2e3e3e84
commit
69dddeb6c8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=458080
@ -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}
|
||||
|
||||
|
13
devel/rubygem-msgpack/files/patch-ext-msgpack-core_ext.c
Normal file
13
devel/rubygem-msgpack/files/patch-ext-msgpack-core_ext.c
Normal file
@ -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);
|
Loading…
Reference in New Issue
Block a user