diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-20 08:41:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-20 08:41:03 +0100 |
commit | c915adf64c1415679bfe6b55c95348db2f89202e (patch) | |
tree | 4d14cad3390132f7c20f71d055ce4672c160a0c0 /dev-ruby/oauth2/oauth2-1.4.10.ebuild | |
parent | 2d5fd1dd4910d46f935776f1f6f475de11367ef2 (diff) |
gentoo auto-resync : 20:07:2022 - 08:41:03
Diffstat (limited to 'dev-ruby/oauth2/oauth2-1.4.10.ebuild')
-rw-r--r-- | dev-ruby/oauth2/oauth2-1.4.10.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-ruby/oauth2/oauth2-1.4.10.ebuild b/dev-ruby/oauth2/oauth2-1.4.10.ebuild new file mode 100644 index 000000000000..c95700fee32c --- /dev/null +++ b/dev-ruby/oauth2/oauth2-1.4.10.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 ruby30" + +RUBY_FAKEGEM_TASK_TEST="none" + +RUBY_FAKEGEM_DOCDIR="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="oauth2.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Wrapper for the OAuth 2.0 protocol with a similar style to the OAuth gem" +HOMEPAGE="https://github.com/oauth-xx/oauth2" +SRC_URI="https://github.com/oauth-xx/oauth2/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +ruby_add_rdepend " + || ( dev-ruby/faraday:2 dev-ruby/faraday:1 >=dev-ruby/faraday-0.17.3:0 ) + dev-ruby/jwt:2 + >=dev-ruby/multi_json-1.3 =dev-ruby/multi_json-1* + >=dev-ruby/multi_xml-0.5:0 + >=dev-ruby/rack-1.2:* <dev-ruby/rack-3:*" +ruby_add_bdepend "test? ( + >=dev-ruby/addressable-2.3 + >=dev-ruby/rexml-3.2:3 + dev-ruby/rspec:3 + dev-ruby/rspec-pending_for + dev-ruby/rspec-stubbed_env +)" + +all_ruby_prepare() { + sed \ + -e '/silent/I s:^:#:' \ + -e '1irequire "uri"' \ + -e '/require.*oauth2/arequire "oauth2/version"' \ + -i spec/helper.rb || die + + sed -i -e '/yardstick/,/^end/ s:^:#:' \ + -e '/bundler/I s:^:#:' Rakefile || die + + # Avoid spec that is too fragile in relation to ENV + sed -i -e '/outputs to $stdout when OAUTH_DEBUG=true/a skip "fragile ENV stubbing"' spec/oauth2/client_spec.rb || die + + sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + CI=true ${RUBY} -S rspec-3 spec || die +} |