summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-01-12 15:53:02 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-01-12 15:53:02 +0000
commitc1a3442f31b4b7f812758dcd6f8dbeffe658b2fe (patch)
tree02443c903d95f1591738b6b6b29de507379cb00f /dev-ruby/rspec
parentstable x86, bug 299956 (diff)
downloadgentoo-2-c1a3442f31b4b7f812758dcd6f8dbeffe658b2fe.tar.gz
gentoo-2-c1a3442f31b4b7f812758dcd6f8dbeffe658b2fe.tar.bz2
gentoo-2-c1a3442f31b4b7f812758dcd6f8dbeffe658b2fe.zip
Version bump, added tests, at least for ruby18.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/rspec')
-rw-r--r--dev-ruby/rspec/ChangeLog7
-rw-r--r--dev-ruby/rspec/rspec-1.3.0.ebuild42
2 files changed, 48 insertions, 1 deletions
diff --git a/dev-ruby/rspec/ChangeLog b/dev-ruby/rspec/ChangeLog
index 30aacb5dda44..4576ebbe5b90 100644
--- a/dev-ruby/rspec/ChangeLog
+++ b/dev-ruby/rspec/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ruby/rspec
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec/ChangeLog,v 1.56 2010/01/04 11:50:45 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec/ChangeLog,v 1.57 2010/01/12 15:53:02 flameeyes Exp $
+
+*rspec-1.3.0 (12 Jan 2010)
+
+ 12 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org> +rspec-1.3.0.ebuild:
+ Version bump, added tests, at least for ruby18.
04 Jan 2010; Christian Faulhammer <fauli@gentoo.org>
rspec-1.2.9-r1.ebuild:
diff --git a/dev-ruby/rspec/rspec-1.3.0.ebuild b/dev-ruby/rspec/rspec-1.3.0.ebuild
new file mode 100644
index 000000000000..68e5c3097389
--- /dev/null
+++ b/dev-ruby/rspec/rspec-1.3.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec/rspec-1.3.0.ebuild,v 1.1 2010/01/12 15:53:02 flameeyes Exp $
+
+EAPI=2
+USE_RUBY="ruby18 ruby19 jruby"
+
+RUBY_FAKEGEM_TASK_DOC="docs"
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc TODO.txt Ruby1.9.rdoc Upgrade.rdoc"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
+HOMEPAGE="http://rspec.rubyforge.org/"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
+IUSE=""
+
+ruby_add_bdepend doc dev-ruby/hoe
+
+# Only require the test packages for ruby18 as we _really_ won't be
+# running tests for Ruby 1.9 and JRuby just yet :(
+USE_RUBY=ruby18 \
+ ruby_add_bdepend test "dev-ruby/hoe dev-ruby/zentest dev-ruby/heckle dev-ruby/fakefs"
+
+each_ruby_test() {
+ if [[ $(basename ${RUBY}) == "ruby19" ]]; then
+ ewarn "Tests for Ruby 1.9 fail, among the other reasons because interop only works"
+ ewarn "for test-unit-1.2.3 (and not test-unit-2.x). Since we know about those failures"
+ ewarn "as well as upstream, we won't be proceeding with this for now."
+ return 0
+ fi
+
+ if [[ $(basename ${RUBY}) == "jruby" ]]; then
+ ewarn "Tests for JRuby are disabled because dev-ruby/fakefs does not currently support"
+ ewarn "JRuby properly and it's needed to run the tests."
+ return 0
+ fi
+}