aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2014-08-24 02:36:13 +0800
committerswills <swills@FreeBSD.org>2014-08-24 02:36:13 +0800
commitfe2669ecba039836a478d5a8a759b4c722da4d2d (patch)
tree144843822fb9382fcfdd3359597a31e077a7999e
parent7b0e58b3a1ebb94eeeb4c921dff9a8348fcc722c (diff)
downloadfreebsd-ports-gnome-fe2669ecba039836a478d5a8a759b4c722da4d2d.tar.gz
freebsd-ports-gnome-fe2669ecba039836a478d5a8a759b4c722da4d2d.tar.zst
freebsd-ports-gnome-fe2669ecba039836a478d5a8a759b4c722da4d2d.zip
archivers/rubygem-bzip2: fix build with ruby 2.1
PR: 192689 Submitted by: Paul Mather <paul@gromit.dlib.vt.edu> Obtained from: https://github.com/chewi/bzip2-ruby/commit/92d492c2b40c32a5c039314666655ebc2f52a817
-rw-r--r--archivers/rubygem-bzip2/Makefile2
-rw-r--r--archivers/rubygem-bzip2/files/patch-ext__bzip2.c12
2 files changed, 13 insertions, 1 deletions
diff --git a/archivers/rubygem-bzip2/Makefile b/archivers/rubygem-bzip2/Makefile
index 37b4d9bbc1eb..b8e8aae4e681 100644
--- a/archivers/rubygem-bzip2/Makefile
+++ b/archivers/rubygem-bzip2/Makefile
@@ -3,7 +3,7 @@
PORTNAME= bzip2
PORTVERSION= 0.2.7
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= archivers rubygems
MASTER_SITES= RG
DISTNAME= ${PORTNAME}-ruby-${PORTVERSION}
diff --git a/archivers/rubygem-bzip2/files/patch-ext__bzip2.c b/archivers/rubygem-bzip2/files/patch-ext__bzip2.c
new file mode 100644
index 000000000000..bf3684c0d271
--- /dev/null
+++ b/archivers/rubygem-bzip2/files/patch-ext__bzip2.c
@@ -0,0 +1,12 @@
+--- ./ext/bzip2.c.orig 2014-08-23 18:00:07.743290567 +0000
++++ ./ext/bzip2.c 2014-08-23 18:00:07.790289811 +0000
+@@ -247,9 +247,6 @@
+
+ Get_BZ2(obj, bzf);
+ res = bz_writer_internal_close(bzf);
+- if (!NIL_P(res) && (bzf->flags & BZ2_RB_INTERNAL)) {
+- RBASIC(res)->klass = rb_cString;
+- }
+ return res;
+ }
+