1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Fix build with Ruby 2.0

This commit is contained in:
Steve Wills 2013-12-13 01:22:30 +00:00
parent 7111b2d475
commit 6e425e98a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=336307
2 changed files with 18 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= bzip2
PORTVERSION= 0.2.7
PORTREVISION= 1
CATEGORIES= archivers rubygems
MASTER_SITES= RG
DISTNAME= ${PORTNAME}-ruby-${PORTVERSION}

View File

@ -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