commit:     db1433d17658bb674787b320b5a9cad641a2e3a3
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Thu May  5 05:49:45 2022 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Thu May  5 05:50:09 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db1433d1

dev-ruby/oauth: add 0.5.10

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/oauth/Manifest            |  1 +
 dev-ruby/oauth/oauth-0.5.10.ebuild | 39 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)

diff --git a/dev-ruby/oauth/Manifest b/dev-ruby/oauth/Manifest
index 95e7a931f2d8..85f3d66865d4 100644
--- a/dev-ruby/oauth/Manifest
+++ b/dev-ruby/oauth/Manifest
@@ -1 +1,2 @@
+DIST oauth-0.5.10.tar.gz 67073 BLAKE2B 
30d5823151412f53af41f28f7d5831bcfa7e7cf0b86d3a122b825fd086c00dab7fca7a4838b7ed5ebb269725af7c2a64cf771fc598bd6a97b9968e480ce78b4c
 SHA512 
0ff5cd07052e210b1948496844166e1095b09d9c39592b6b11fa3aa4909fd8debec55237493d292dc60f4fe513ddf1a8f58cdb0215949241cf753d4e53aa107e
 DIST oauth-0.5.8.tar.gz 67852 BLAKE2B 
7dc19a2f84f585fd517d677bf441c5964b45566ffea3cbd7612061db115a5570cf8315b4cbdd8788f9b0ff336b6eea91922f17c0ce17a4c626731282bd8203ca
 SHA512 
3bf8298ea5bcffe1fe61ba894a5cfcb04a5814348154749e056ea18d975b00b10db7ed226f2187ffb9f414b755022bf32ff4bb2c02f1f429f6a9a7062032d82e

diff --git a/dev-ruby/oauth/oauth-0.5.10.ebuild 
b/dev-ruby/oauth/oauth-0.5.10.ebuild
new file mode 100644
index 000000000000..6aacd85e42e9
--- /dev/null
+++ b/dev-ruby/oauth/oauth-0.5.10.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md TODO"
+
+RUBY_FAKEGEM_GEMSPEC="oauth.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A RubyGem for implementing both OAuth clients and servers"
+HOMEPAGE="https://github.com/oauth-xx/oauth-ruby";
+SRC_URI="https://github.com/oauth-xx/oauth-ruby/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+RUBY_S="${PN}-ruby-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~riscv ~x86"
+IUSE=""
+
+ruby_add_bdepend "test? (
+       dev-ruby/bundler
+       dev-ruby/test-unit:2
+       dev-ruby/mocha:1.0
+       dev-ruby/webmock
+       dev-ruby/rack
+       dev-ruby/actionpack:6.1
+       dev-ruby/railties:6.1
+)"
+
+all_ruby_prepare() {
+       # Require a compatible version of mocha
+       sed -i -e '1igem "mocha", "~> 1.0"; gem "railties", "~>6.1.0" ; gem 
"actionpack", "~>6.1.0"' \
+               -e '2i gem "test-unit"; require "test/unit"' \
+               -e '/mocha/ s/mini_test/minitest/' \
+               -e '/\(byebug\|minitest_helpers\|simplecov\)/I s:^:#:' 
test/test_helper.rb || die
+}

Reply via email to