diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-01-12 13:58:07 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2010-01-12 13:58:07 +0000 |
commit | 34a1233a5cb4f619127f854953c05babee2aa094 (patch) | |
tree | 7a2d84ec25c851211919d6d67934f324ce9eb60a /dev-ruby/samuel | |
parent | Fix building with Portage <2.1.7 (bug #300671). (diff) | |
download | gentoo-2-34a1233a5cb4f619127f854953c05babee2aa094.tar.gz gentoo-2-34a1233a5cb4f619127f854953c05babee2aa094.tar.bz2 gentoo-2-34a1233a5cb4f619127f854953c05babee2aa094.zip |
Initial import of samuel needed to de-bundle fakeweb.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/samuel')
-rw-r--r-- | dev-ruby/samuel/ChangeLog | 10 | ||||
-rw-r--r-- | dev-ruby/samuel/files/samuel-0.3.1-ruby19.patch | 41 | ||||
-rw-r--r-- | dev-ruby/samuel/metadata.xml | 5 | ||||
-rw-r--r-- | dev-ruby/samuel/samuel-0.3.1.ebuild | 32 |
4 files changed, 88 insertions, 0 deletions
diff --git a/dev-ruby/samuel/ChangeLog b/dev-ruby/samuel/ChangeLog new file mode 100644 index 000000000000..a85fab52e0bd --- /dev/null +++ b/dev-ruby/samuel/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-ruby/samuel +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/samuel/ChangeLog,v 1.1 2010/01/12 13:58:07 flameeyes Exp $ + +*samuel-0.3.1 (12 Jan 2010) + + 12 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org> + +samuel-0.3.1.ebuild, +files/samuel-0.3.1-ruby19.patch, +metadata.xml: + Initial import of samuel needed to de-bundle fakeweb. + diff --git a/dev-ruby/samuel/files/samuel-0.3.1-ruby19.patch b/dev-ruby/samuel/files/samuel-0.3.1-ruby19.patch new file mode 100644 index 000000000000..f9eb90bcd6d4 --- /dev/null +++ b/dev-ruby/samuel/files/samuel-0.3.1-ruby19.patch @@ -0,0 +1,41 @@ +Index: samuel-0.3.1/test/loader_test.rb +=================================================================== +--- samuel-0.3.1.orig/test/loader_test.rb ++++ samuel-0.3.1/test/loader_test.rb +@@ -26,8 +26,8 @@ class LoaderTest < Test::Unit::TestCase + end + + should "not load HTTPClient" do +- output = capture_output "puts defined?(HTTPClient)" +- assert_equal "nil", output.strip ++ output = capture_output "puts 'good' unless defined?(HTTPClient)" ++ assert_equal "good", output.strip + end + end + +@@ -40,8 +40,8 @@ class LoaderTest < Test::Unit::TestCase + end + + should "not load HTTPClient" do +- output = capture_output "puts defined?(HTTPClient)" +- assert_match "nil", output.strip ++ output = capture_output "puts 'good' unless defined?(HTTPClient)" ++ assert_match "good", output.strip + end + end + +@@ -54,10 +54,10 @@ class LoaderTest < Test::Unit::TestCase + end + + should "not load Net::HTTP" do +- output = capture_output "puts defined?(Net::HTTP)" +- assert_match "nil", output.strip ++ output = capture_output "puts 'good' unless defined?(Net::HTTP)" ++ assert_match "good", output.strip + end + end + end + +-end +\ No newline at end of file ++end diff --git a/dev-ruby/samuel/metadata.xml b/dev-ruby/samuel/metadata.xml new file mode 100644 index 000000000000..852136183369 --- /dev/null +++ b/dev-ruby/samuel/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>ruby</herd> +</pkgmetadata> diff --git a/dev-ruby/samuel/samuel-0.3.1.ebuild b/dev-ruby/samuel/samuel-0.3.1.ebuild new file mode 100644 index 000000000000..e6b23a7477b0 --- /dev/null +++ b/dev-ruby/samuel/samuel-0.3.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/samuel/samuel-0.3.1.ebuild,v 1.1 2010/01/12 13:58:07 flameeyes Exp $ + +EAPI=2 + +# jruby → tests need fakeweb +USE_RUBY="ruby18 ruby19" + +RUBY_FAKEGEM_TASK_DOC="" + +inherit ruby-fakegem + +DESCRIPTION="An automatic logger for HTTP requests in Ruby." +HOMEPAGE="http://github.com/chrisk/samuel" + +LICENSE="as-is" # truly +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +all_ruby_prepare() { + # check_dependencies only is available with jeweler + # proper fix sent upstream after release 0.3.1 + sed -i -e '/=> :check_dependencies/s:^:#:' \ + Rakefile || die "fix rakefile failed" + + # sent upstream after release 0.3.1 + epatch "${FILESDIR}"/${P}-ruby19.patch +} + +ruby_add_bdepend test "dev-ruby/shoulda dev-ruby/fakeweb" |