summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2010-01-01 09:16:17 +0000
committerHans de Graaff <graaff@gentoo.org>2010-01-01 09:16:17 +0000
commitd276bea32da3d562b62f9d228c6b638e02cf8f98 (patch)
treeaecedbf10943b495e479fa150d27b286d9031043 /dev-ruby
parentAutomated update of use.local.desc (diff)
downloadgentoo-2-d276bea32da3d562b62f9d228c6b638e02cf8f98.tar.gz
gentoo-2-d276bea32da3d562b62f9d228c6b638e02cf8f98.tar.bz2
gentoo-2-d276bea32da3d562b62f9d228c6b638e02cf8f98.zip
Version bump with test fixes for ruby 1.9.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/ruby-prof/ChangeLog9
-rw-r--r--dev-ruby/ruby-prof/ruby-prof-0.7.6.ebuild55
2 files changed, 62 insertions, 2 deletions
diff --git a/dev-ruby/ruby-prof/ChangeLog b/dev-ruby/ruby-prof/ChangeLog
index 5d6de6593c7d..7d2ae8db801e 100644
--- a/dev-ruby/ruby-prof/ChangeLog
+++ b/dev-ruby/ruby-prof/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ruby/ruby-prof
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-prof/ChangeLog,v 1.16 2009/12/28 23:42:27 flameeyes Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-prof/ChangeLog,v 1.17 2010/01/01 09:16:17 graaff Exp $
+
+*ruby-prof-0.7.6 (01 Jan 2010)
+
+ 01 Jan 2010; Hans de Graaff <graaff@gentoo.org> +ruby-prof-0.7.6.ebuild:
+ Version bump with test fixes for ruby 1.9.
*ruby-prof-0.7.5 (28 Dec 2009)
diff --git a/dev-ruby/ruby-prof/ruby-prof-0.7.6.ebuild b/dev-ruby/ruby-prof/ruby-prof-0.7.6.ebuild
new file mode 100644
index 000000000000..cb85b965dd64
--- /dev/null
+++ b/dev-ruby/ruby-prof/ruby-prof-0.7.6.ebuild
@@ -0,0 +1,55 @@
+# 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.7.6.ebuild,v 1.1 2010/01/01 09:16:17 graaff Exp $
+
+EAPI=2
+
+# ruby19 → not compatible as of 0.7.5 (upstream-provided information)
+# jruby → not compatible, since it uses an extension
+USE_RUBY="ruby18"
+
+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.7.5 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_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
+}