commit: 2baf6309bfd8c10a03377bae40281b25e743f327 Author: Hans de Graaff <hans <AT> degraaff <DOT> org> AuthorDate: Fri Aug 26 21:13:26 2016 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Fri Aug 26 21:13:26 2016 +0000 URL: https://gitweb.gentoo.org/dev/graaff.git/commit/?id=2baf6309
dev-ruby/oauth-plugin: loosen oauth dependency Package-Manager: portage-2.2.28 dev-ruby/oauth-plugin/oauth-plugin-0.5.1-r1.ebuild | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/dev-ruby/oauth-plugin/oauth-plugin-0.5.1-r1.ebuild b/dev-ruby/oauth-plugin/oauth-plugin-0.5.1-r1.ebuild new file mode 100644 index 0000000..cbddaac --- /dev/null +++ b/dev-ruby/oauth-plugin/oauth-plugin-0.5.1-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby20 ruby21" + +RUBY_FAKEGEM_RECIPE_TEST="rspec" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.rdoc UPGRADE.rdoc" + +RUBY_FAKEGEM_EXTRAINSTALL="generators init.rb rails tasks" + +RUBY_FAKEGEM_GEMSPEC="oauth-plugin.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A plugin for implementing OAuth Providers and Consumers in Rails applications." +HOMEPAGE="http://github.com/pelle/oauth-plugin" + +LICENSE="MIT" +SLOT="0.4" +KEYWORDS="~amd64" +IUSE="doc" + +ruby_add_rdepend ">=dev-ruby/oauth-0.4.4 =dev-ruby/oauth-0* >=dev-ruby/oauth2-0.5.0 dev-ruby/rack:* dev-ruby/multi_json" + +all_ruby_prepare() { + # Avoid specs that fail with new hash ordering. Remove the whole + # file because the specs as written are very brittle and can't be + # handled individually. + # https://github.com/pelle/oauth-plugin/issues/127 + rm spec/oauth/provider/authorizer_spec.rb || die + + # Avoid unneeded dependency on git. + sed -i -e '/git ls-files/d' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Loosen oauth dependency + sed -i -e '/oauth/ s/0.4.4/0.4/' ${RUBY_FAKEGEM_GEMSPEC} || die +}
