diff options
-rw-r--r-- | dev-ruby/aws-sdk/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/aws-sdk/aws-sdk-1.5.7.ebuild | 60 | ||||
-rw-r--r-- | dev-ruby/aws-sdk/files/aws-sdk-1.5.7-specs.patch | 31 |
3 files changed, 98 insertions, 1 deletions
diff --git a/dev-ruby/aws-sdk/ChangeLog b/dev-ruby/aws-sdk/ChangeLog index 79abc4b4dcf0..5ef621a35fe9 100644 --- a/dev-ruby/aws-sdk/ChangeLog +++ b/dev-ruby/aws-sdk/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/aws-sdk # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/aws-sdk/ChangeLog,v 1.4 2012/07/05 21:36:58 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/aws-sdk/ChangeLog,v 1.5 2012/07/13 10:55:16 flameeyes Exp $ + +*aws-sdk-1.5.7 (13 Jul 2012) + + 13 Jul 2012; Diego E. Pettenò <flameeyes@gentoo.org> +aws-sdk-1.5.7.ebuild, + +files/aws-sdk-1.5.7-specs.patch: + Version bump; fix new specs. 05 Jul 2012; Diego E. Pettenò <flameeyes@gentoo.org> -aws-sdk-1.5.3.ebuild, -aws-sdk-1.5.5.ebuild, -files/aws-sdk-1.5.3+httparty-0.8.patch, diff --git a/dev-ruby/aws-sdk/aws-sdk-1.5.7.ebuild b/dev-ruby/aws-sdk/aws-sdk-1.5.7.ebuild new file mode 100644 index 000000000000..34f159d02a6e --- /dev/null +++ b/dev-ruby/aws-sdk/aws-sdk-1.5.7.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/aws-sdk/aws-sdk-1.5.7.ebuild,v 1.1 2012/07/13 10:55:16 flameeyes Exp $ + +EAPI=4 + +USE_RUBY="ruby18 ruby19 ree18" + +RUBY_FAKEGEM_RECIPE_TEST="rspec" +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="README.rdoc" + +RUBY_FAKEGEM_EXTRAINSTALL="ca-bundle.crt" + +GITHUB_USER="amazonwebservices" +GITHUB_PROJECT="${PN}-for-ruby" +RUBY_S="${GITHUB_USER}-${GITHUB_PROJECT}-*" + +RUBY_FAKEGEM_GEMSPEC="${T}/${P}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Official SDK for Amazon Web Services" +HOMEPAGE="http://aws.amazon.com/sdkforruby" +SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/tarball/${PV} -> ${GITHUB_PROJECT}-${PV}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +ruby_add_rdepend "virtual/ruby-ssl + >=dev-ruby/httparty-0.7 + >=dev-ruby/json-1.4 + >=dev-ruby/nokogiri-1.4.4 + >=dev-ruby/uuidtools-2.1" + +all_ruby_prepare() { + epatch "${FILESDIR}"/${PN}-1.5.3-disabletest.patch + epatch "${FILESDIR}"/${P}-specs.patch +} + +all_ruby_compile() { + if use doc; then + rdoc || die + fi +} + +each_ruby_install() { + sed -e "s:VERSION:${PV}:" "${FILESDIR}"/${PN}.gemspec > "${RUBY_FAKEGEM_GEMSPEC}" + each_fakegem_install +} + +all_ruby_install() { + all_fakegem_install + + insinto /usr/share/doc/${PF} + doins -r recipebook samples +} diff --git a/dev-ruby/aws-sdk/files/aws-sdk-1.5.7-specs.patch b/dev-ruby/aws-sdk/files/aws-sdk-1.5.7-specs.patch new file mode 100644 index 000000000000..b8954a0cc465 --- /dev/null +++ b/dev-ruby/aws-sdk/files/aws-sdk-1.5.7-specs.patch @@ -0,0 +1,31 @@ +diff --git a/spec/aws/cloud_watch/alarm_history_item_collection_spec.rb b/spec/aws/cloud_watch/alarm_history_item_collection_spec.rb +index 912d057..5b65426 100644 +--- a/spec/aws/cloud_watch/alarm_history_item_collection_spec.rb ++++ b/spec/aws/cloud_watch/alarm_history_item_collection_spec.rb +@@ -38,7 +38,7 @@ module AWS + it 'returns a collection that applies the filter when enumerating' do + client.should_receive(:describe_alarm_history).with( + :abc => 'xyz', +- :mno => 'hjk', ++ :mno => 'hjk' + ).and_return(client.stub_for(:describe_alarm_history)) + items.filter('abc', 'xyz').filter('mno', 'hjk').to_a + end +diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb +index c55235c..fea5527 100644 +--- a/spec/spec_helper.rb ++++ b/spec/spec_helper.rb +@@ -14,12 +14,11 @@ + $: << File.join(File.dirname(File.dirname(__FILE__)), "lib") + + require 'rspec' ++require 'aws' + + # require all _examples.rb files in spec/shared/ + Dir.glob("#{File.dirname(__FILE__)}/shared/**/*_examples.rb").each do |file| + require file + end + +-require 'aws' +- + AWS.eager_autoload! |