Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/omniauth/
Date: Wed, 07 Jul 2021 07:48:11
Message-Id: 1625643455.89bcc98ce7ba0cfe3de2910a9aa12c3f0847db94.graaff@gentoo
1 commit: 89bcc98ce7ba0cfe3de2910a9aa12c3f0847db94
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 7 07:36:31 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 7 07:37:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89bcc98c
7
8 dev-ruby/omniauth: add 2.0.4
9
10 Bug: https://bugs.gentoo.org/761960
11
12 Package-Manager: Portage-3.0.20, Repoman-3.0.2
13 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
14
15 dev-ruby/omniauth/Manifest | 1 +
16 dev-ruby/omniauth/omniauth-2.0.4.ebuild | 46 +++++++++++++++++++++++++++++++++
17 2 files changed, 47 insertions(+)
18
19 diff --git a/dev-ruby/omniauth/Manifest b/dev-ruby/omniauth/Manifest
20 index ef5990b9823..414327ceb69 100644
21 --- a/dev-ruby/omniauth/Manifest
22 +++ b/dev-ruby/omniauth/Manifest
23 @@ -1 +1,2 @@
24 DIST omniauth-1.9.1.tar.gz 26528 BLAKE2B da096ce924972c867ade4cde7e6ec90f5a7de41947f5d04ad092174baf3073ba6b235ff998551d9bbc7f6dfa2a4290eef1e1d962590591cf29f89395a554f3a9 SHA512 687ab9ad47d57d1cbe01fb7ed37754fecb3b75b7e62853070b5880ad6347a2834524a8d4042271ecd7f708ab35b7b5bd3203058ef03c3317f26f88a7639c2672
25 +DIST omniauth-2.0.4.tar.gz 30951 BLAKE2B 6086a737e043ae37e6c7c4b1e4d597a08e6dc490c5d71f7847e9c5a8880bbbd1117470efbbe12e150bf238bf6e5413493712f1c09ae5e37f5d7b7676b6da023e SHA512 c92ce881388c9793e96354caee764cbabb28c69ca63b32f304693c4859eb8bf994e86b2cc9dbeb57993347e6f2787c43eab967c36730d5c47a3c4767d16847eb
26
27 diff --git a/dev-ruby/omniauth/omniauth-2.0.4.ebuild b/dev-ruby/omniauth/omniauth-2.0.4.ebuild
28 new file mode 100644
29 index 00000000000..79e5a2b31ca
30 --- /dev/null
31 +++ b/dev-ruby/omniauth/omniauth-2.0.4.ebuild
32 @@ -0,0 +1,46 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +USE_RUBY="ruby25 ruby26 ruby27"
38 +
39 +RUBY_FAKEGEM_EXTRADOC="README.md"
40 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
41 +RUBY_FAKEGEM_DOCDIR="doc"
42 +
43 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
44 +
45 +inherit ruby-fakegem
46 +
47 +DESCRIPTION="A generalized Rack framework for multiple-provider authentication"
48 +HOMEPAGE="https://github.com/intridea/omniauth"
49 +SRC_URI="https://github.com/intridea/omniauth/archive/v${PV}.tar.gz -> ${P}.tar.gz"
50 +LICENSE="MIT"
51 +KEYWORDS="~amd64"
52 +SLOT="$(ver_cut 1)"
53 +IUSE=""
54 +
55 +ruby_add_rdepend "
56 + =dev-ruby/rack-2*
57 + dev-ruby/rack-protection
58 + >=dev-ruby/hashie-3.4.6:*"
59 +ruby_add_bdepend "doc? ( dev-ruby/yard )
60 + test? ( dev-ruby/rack-test )"
61 +
62 +all_ruby_prepare() {
63 + sed -i -e '/[Bb]undler/d' \
64 + Rakefile ${PN}.gemspec || die "sed failed"
65 + sed -i -e '/RUBY_VERSION/,/^end/ s:^:#: ; /freeze/ s:^:#:' spec/helper.rb || die "sed failed"
66 + # maruku fails, resorting to default markdown implementation
67 + sed -i -e '/maruku/d' .yardopts || die "sed failed"
68 +
69 + sed -i -e '/s.files/d' ${RUBY_FAKEGEM_GEMSPEC} || die
70 +}
71 +
72 +all_ruby_compile() {
73 + all_fakegem_compile
74 +
75 + if use doc ; then
76 + yard || die "yard failed"
77 + fi
78 +}