diff options
author | 2010-02-14 21:12:54 +0000 | |
---|---|---|
committer | 2010-02-14 21:12:54 +0000 | |
commit | fdde855df4f786ce059e5f67c28335362f8d0f94 (patch) | |
tree | ec9782f1463d8d70d1e619076df63501f152c316 /dev-ruby/ruby-prof | |
parent | Version bump, bug #304533, thank Samuli Suominen for report. (diff) | |
download | gentoo-2-fdde855df4f786ce059e5f67c28335362f8d0f94.tar.gz gentoo-2-fdde855df4f786ce059e5f67c28335362f8d0f94.tar.bz2 gentoo-2-fdde855df4f786ce059e5f67c28335362f8d0f94.zip |
Version bump, disable one test on Ruby 1.9 as upstream is aware it fails.
(Portage version: 2.2_rc62/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/ruby-prof')
-rw-r--r-- | dev-ruby/ruby-prof/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/ruby-prof/ruby-prof-0.8.1.ebuild | 66 |
2 files changed, 73 insertions, 1 deletions
diff --git a/dev-ruby/ruby-prof/ChangeLog b/dev-ruby/ruby-prof/ChangeLog index 95d6bbbc2fa7..92fc3df24532 100644 --- a/dev-ruby/ruby-prof/ChangeLog +++ b/dev-ruby/ruby-prof/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/ruby-prof # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-prof/ChangeLog,v 1.22 2010/01/28 01:44:03 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-prof/ChangeLog,v 1.23 2010/02/14 21:12:54 flameeyes Exp $ + +*ruby-prof-0.8.1 (14 Feb 2010) + + 14 Feb 2010; Diego E. Pettenò <flameeyes@gentoo.org> + +ruby-prof-0.8.1.ebuild: + Version bump, disable one test on Ruby 1.9 as upstream is aware it fails. 28 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org> -ruby-prof-0.7.7.ebuild, -ruby-prof-0.7.9.ebuild: diff --git a/dev-ruby/ruby-prof/ruby-prof-0.8.1.ebuild b/dev-ruby/ruby-prof/ruby-prof-0.8.1.ebuild new file mode 100644 index 000000000000..3cc14b05a9ef --- /dev/null +++ b/dev-ruby/ruby-prof/ruby-prof-0.8.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-prof/ruby-prof-0.8.1.ebuild,v 1.1 2010/02/14 21:12:54 flameeyes Exp $ + +EAPI=2 + +# jruby → not compatible, since it uses an extension +USE_RUBY="ruby18 ruby19" + +RUBY_FAKEGEM_EXTRADOC="README CHANGES" +RUBY_FAKEGEM_DOCDIR="doc" + +inherit ruby-fakegem + +DESCRIPTION="A module for profiling Ruby code" +HOMEPAGE="http://rubyforge.org/projects/ruby-prof/" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +ruby_add_bdepend test virtual/ruby-test-unit + +all_ruby_prepare() { + # The thread testing in 0.8.1 and earlier versions is broken, it + # has to be tested for the next versions, since upstream is + # looking for a solution. The problem is that it's _very_ + # timing-dependent. + rm "${S}"/test/thread_test.rb \ + || die "unable to remove broken test unit" + sed -i -e '/thread_test/d' \ + test/test_suite.rb || die "unable to remove broken test reference" +} + +each_ruby_prepare() { + case ${RUBY} in + *ruby19) + # On ruby 1.9 this test fails badly, so we disable it + # until upstream can fix the related bug: + # http://redmine.ruby-lang.org/issues/show/2012 + sed -i -e '/^ def test_flat_string_with_numbers/,/^ end/ s:^:#:' \ + test/printers_test.rb || die "Unable to disable test_flat_string_with_numbers" + ;; + esac +} + +each_ruby_compile() { + pushd ext + ${RUBY} extconf.rb || die "extconf.rb failed" + # gem ships with prebuild files + emake clean || die "clean failed" + emake || die "build failed" + popd + + cp ext/*.so lib || die "copy of extension failed" +} + +all_ruby_install() { + all_fakegem_install + + for dir in examples rails rails/example rails/environment; do + docinto "$dir" + dodoc "$dir"/* || die "dodoc $dir failed" + done +} |