]> Pileus Git - ~andy/sunrise/commitdiff
dev-ruby/god: Bump to god-0.11.0. Move to ruby-fakegem eclass from the deprecated...
authorNathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>
Mon, 11 Apr 2011 01:42:18 +0000 (01:42 +0000)
committerNathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>
Mon, 11 Apr 2011 01:42:18 +0000 (01:42 +0000)
(Portage version: 2.2.0_alpha29-r1/svn/Linux x86_64)

svn path=/sunrise/; revision=11882

dev-ruby/god/ChangeLog
dev-ruby/god/god-0.11.0.ebuild [new file with mode: 0644]
dev-ruby/god/god-0.7.13.ebuild [deleted file]

index 837553979499b9f24c2eede6bd1ead988c6ec8f3..33572b67c99e5f20df28590035e0ce4957c75ecb 100644 (file)
@@ -1,7 +1,14 @@
 # ChangeLog for dev-ruby/god
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*god-0.11.0 (11 Apr 2011)
+
+  11 Apr 2011; Nathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>
+  -god-0.7.13.ebuild, +god-0.11.0.ebuild:
+  Bump to god-0.11.0. Move to ruby-fakegem eclass from the deprecated gems
+  eclass. Restrict failing tests.
+
   04 Aug 2009; CS Shyam Sundar (CS3) <csshyamsundar@gmail.com>
   god-0.7.13.ebuild:
   Updated Description in Ebuild for bug 280131 - thanks to hwoarang
diff --git a/dev-ruby/god/god-0.11.0.ebuild b/dev-ruby/god/god-0.11.0.ebuild
new file mode 100644 (file)
index 0000000..d0d3c00
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+USE_RUBY="ruby18"
+RUBY_FAKEGEM_DOCDIR="rdoc"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Ruby monitoring framework which replaces monit"
+HOMEPAGE="http://god.rubyforge.org/"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# jabber test requires xmpp4r
+# webhook and campfire tests require json
+# twitter test requires twitter
+ruby_add_bdepend "doc? ( dev-ruby/jeweler
+               virtual/ruby-rdoc )
+       test? ( dev-ruby/jeweler
+               dev-ruby/json
+               dev-ruby/mocha
+               dev-ruby/twitter
+               dev-ruby/xmpp4r )"
+
+# After all of our work fixing test dependencies, we can't run them
+# because they always fail (at least for god-0.11.0).
+RESTRICT="test"
+
+all_ruby_prepare() {
+       # the campfire test requires dev-ruby/tinder which would have to
+       # be ebuildized.
+       rm -v test/test_campfire.rb || die
+       # prowly isn't yet an ebuild either
+       rm -v test/test_prowl.rb || die
+}
+
+each_ruby_test() {
+       if hasq userpriv ${FEATURES}; then
+               ewarn "${PN} requires root priviliges to run its test. Thus, I am not running ${PN}'s"
+               ewarn "tests. Remove \"userpriv\" from FEATURES to run the tests."
+       else
+               each_fakegem_test
+       fi
+}
diff --git a/dev-ruby/god/god-0.7.13.ebuild b/dev-ruby/god/god-0.7.13.ebuild
deleted file mode 100644 (file)
index df19e22..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-USE_RUBY="ruby18"
-inherit gems
-
-DESCRIPTION="Ruby monitoring framework which replaces monit"
-HOMEPAGE="http://god.rubyforge.org/"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~x86"
-IUSE=""