- Use rubygem-gettext instead of ruby-gettext

- Fix build with Ruby 1.9
This commit is contained in:
Steve Wills 2011-07-03 17:57:42 +00:00
parent 7ad26b5b78
commit f616298cb1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=277013
2 changed files with 13 additions and 3 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= rbbr
PORTVERSION= 0.6.0
PORTREVISION= 7
PORTREVISION= 8
CATEGORIES= devel ruby
MASTER_SITES= SF/ruby-gnome2/${PORTNAME}/${PORTNAME}-${PORTVERSION}
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
@ -17,9 +17,9 @@ DIST_SUBDIR= ruby
MAINTAINER= ruby@FreeBSD.org
COMMENT= A GTK+2-based Ruby module browser
BUILD_DEPENDS= ${RUBY_SITELIBDIR}/gettext.rb:${PORTSDIR}/devel/ruby-gettext
BUILD_DEPENDS= rubygem-gettext>0:${PORTSDIR}/devel/rubygem-gettext
RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/gtk2.so:${PORTSDIR}/x11-toolkits/ruby-gtk2 \
${RUBY_SITELIBDIR}/gettext.rb:${PORTSDIR}/devel/ruby-gettext
rubygem-gettext>0:${PORTSDIR}/devel/rubygem-gettext
USE_GETTEXT= yes
USE_RUBY= yes

View file

@ -0,0 +1,10 @@
--- pre-setup.rb.orig 2011-07-03 13:33:30.719509068 -0400
+++ pre-setup.rb 2011-07-03 13:33:32.614509597 -0400
@@ -21,6 +21,7 @@
# Create mo files.
#
begin
+ require 'rubygems'
require 'gettext'
Dir.glob("po/*/*.po") do |file|