summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-09-15 08:01:52 +0200
committerHans de Graaff <graaff@gentoo.org>2017-09-15 08:02:15 +0200
commit6054e33dbc6a39185c8f274f81300504bcaf288c (patch)
treed4e5e14b88415ed96095b96fb68e89af0380f798 /dev-ruby/rgen/rgen-0.8.3.ebuild
parentdev-ruby/rgen: add 0.8.3 (diff)
downloadgentoo-6054e33dbc6a39185c8f274f81300504bcaf288c.tar.gz
gentoo-6054e33dbc6a39185c8f274f81300504bcaf288c.tar.bz2
gentoo-6054e33dbc6a39185c8f274f81300504bcaf288c.zip
dev-ruby/rgen: add ruby24 with fix for tests
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-ruby/rgen/rgen-0.8.3.ebuild')
-rw-r--r--dev-ruby/rgen/rgen-0.8.3.ebuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/dev-ruby/rgen/rgen-0.8.3.ebuild b/dev-ruby/rgen/rgen-0.8.3.ebuild
index 85d63fb5d60e..c43167c5aa81 100644
--- a/dev-ruby/rgen/rgen-0.8.3.ebuild
+++ b/dev-ruby/rgen/rgen-0.8.3.ebuild
@@ -3,8 +3,7 @@
EAPI=5
-# ruby24 -> tests fail
-USE_RUBY="ruby22 ruby23"
+USE_RUBY="ruby22 ruby23 ruby24"
RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.rdoc"
RUBY_FAKEGEM_GEMSPEC="rgen.gemspec"
@@ -23,3 +22,11 @@ KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
ruby_add_bdepend "doc? ( >=dev-ruby/rdoc-4.2.0 )
test? ( >=dev-ruby/minitest-5.10:5 >=dev-ruby/nokogiri-1.6.8.1 )
"
+
+each_ruby_prepare() {
+ case ${RUBY} in
+ *ruby24)
+ sed -i -e 's/Can not use a Fixnum/Can not use a Integer/' test/metamodel_builder_test.rb || die
+ ;;
+ esac
+}