diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-02-03 14:39:42 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-02-04 08:07:52 +0100 |
commit | 210c3d107c01332949c164f2070a6fbfcf054195 (patch) | |
tree | 409694a652856f524af35b730d13dfb30e938288 /dev-ruby/omniauth | |
parent | dev-ruby/faker: fix file collision between slots (diff) | |
download | gentoo-210c3d107c01332949c164f2070a6fbfcf054195.tar.gz gentoo-210c3d107c01332949c164f2070a6fbfcf054195.tar.bz2 gentoo-210c3d107c01332949c164f2070a6fbfcf054195.zip |
dev-ruby/omniauth: add 2.1.1
Closes: https://bugs.gentoo.org/892623
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/omniauth')
-rw-r--r-- | dev-ruby/omniauth/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/omniauth/omniauth-2.1.1.ebuild | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-ruby/omniauth/Manifest b/dev-ruby/omniauth/Manifest index 7fa73d917aba..35435c5ec107 100644 --- a/dev-ruby/omniauth/Manifest +++ b/dev-ruby/omniauth/Manifest @@ -1 +1,2 @@ DIST omniauth-2.1.0.tar.gz 31135 BLAKE2B b221c084b926e3ac9e31858268940d0bd8583c667c7bcb8ce14e7fbda91c06c286191ffeff36c17d1d668ee29ca850b377312f2f2a417c47cb1dd4e8a447a641 SHA512 f1dde6f527b6aafdbed83ce6e14dae39617b738c6e80e9ece3d768ef9f63a87924ef2ef92b99ecc52bd69c0103854f16ff9c80f3d2eeb7c134fc70ab0157df63 +DIST omniauth-2.1.1.tar.gz 31414 BLAKE2B 180ee40499a61e8b6360dc4c462ca10933dc7bac976f76dd8c9579e73da6618ffae71ed532fab024f0eb65c3830db1e52f866c40b6e160e65c8fa403c7c1ab37 SHA512 e86fbd3c1f239b4950f17fdfe4ebd97a9a135831b63892dd009bae97f4372b3a6fa2452233e414c6097c3b835ee4e75821e795599da9613affdaf163d31964a3 diff --git a/dev-ruby/omniauth/omniauth-2.1.1.ebuild b/dev-ruby/omniauth/omniauth-2.1.1.ebuild new file mode 100644 index 000000000000..955e12d41818 --- /dev/null +++ b/dev-ruby/omniauth/omniauth-2.1.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_DOCDIR="doc" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A generalized Rack framework for multiple-provider authentication" +HOMEPAGE="https://github.com/omniauth/omniauth" +SRC_URI="https://github.com/omniauth/omniauth/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" +KEYWORDS="~amd64" +SLOT="$(ver_cut 1)" +IUSE="" + +ruby_add_rdepend " + >=dev-ruby/rack-2.2.3 + dev-ruby/rack-protection + >=dev-ruby/hashie-3.4.6:*" +ruby_add_bdepend "doc? ( dev-ruby/yard ) + test? ( dev-ruby/rack-test dev-ruby/rack:2.2 )" + +all_ruby_prepare() { + sed -i -e '/[Bb]undler/d' \ + Rakefile ${PN}.gemspec || die "sed failed" + sed -e '/RUBY_VERSION/,/^end/ s:^:#: ; /freeze/ s:^:#:' \ + -e '2igem "rack", "<3"' \ + -i spec/helper.rb || die "sed failed" + # maruku fails, resorting to default markdown implementation + sed -i -e '/maruku/d' .yardopts || die "sed failed" + + sed -i -e '/s.files/d' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +all_ruby_compile() { + all_fakegem_compile + + if use doc ; then + yard || die "yard failed" + fi +} |