From 6e425e98a06c6884c1e420c3a62f3cf21c43a954 Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Fri, 13 Dec 2013 01:22:30 +0000 Subject: [PATCH] - Fix build with Ruby 2.0 --- archivers/rubygem-bzip2/Makefile | 1 + .../rubygem-bzip2/files/patch-ext__extconf.rb | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 archivers/rubygem-bzip2/files/patch-ext__extconf.rb diff --git a/archivers/rubygem-bzip2/Makefile b/archivers/rubygem-bzip2/Makefile index 2f7f8883b01b..37b4d9bbc1eb 100644 --- a/archivers/rubygem-bzip2/Makefile +++ b/archivers/rubygem-bzip2/Makefile @@ -3,6 +3,7 @@ PORTNAME= bzip2 PORTVERSION= 0.2.7 +PORTREVISION= 1 CATEGORIES= archivers rubygems MASTER_SITES= RG DISTNAME= ${PORTNAME}-ruby-${PORTVERSION} diff --git a/archivers/rubygem-bzip2/files/patch-ext__extconf.rb b/archivers/rubygem-bzip2/files/patch-ext__extconf.rb new file mode 100644 index 000000000000..e0d93697504f --- /dev/null +++ b/archivers/rubygem-bzip2/files/patch-ext__extconf.rb @@ -0,0 +1,17 @@ +--- ./ext/extconf.rb.orig 2013-12-12 21:55:36.054257218 +0000 ++++ ./ext/extconf.rb 2013-12-12 21:55:51.579256255 +0000 +@@ -11,11 +11,9 @@ + $static = nil + end + +- if RUBY_VERSION =~ /1.9/ +- $CFLAGS << ' -DRUBY_19_COMPATIBILITY' +- end ++ $CFLAGS << ' -DRUBY_19_COMPATIBILITY' + + create_makefile('bzip2_ext') + else + puts "libbz2 not found, maybe try manually specifying --with-bz2-dir to find it?" +-end +\ No newline at end of file ++end