diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-10-02 19:05:21 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-10-02 19:05:21 +0000 |
| commit | aee0c31dbc78c41664cf2579b7e49094fc2cc08e (patch) | |
| tree | 5a7e2d89be77ea4f9f6eb33a475db11ca3881362 /dev-ruby/omniauth/omniauth-2.1.4.ebuild | |
| parent | ce479461bc2cdeb5274590d8fe1e9bdf99e12e8a (diff) | |
| download | baldeagleos-repo-aee0c31dbc78c41664cf2579b7e49094fc2cc08e.tar.gz baldeagleos-repo-aee0c31dbc78c41664cf2579b7e49094fc2cc08e.tar.xz baldeagleos-repo-aee0c31dbc78c41664cf2579b7e49094fc2cc08e.zip | |
Adding metadata
Diffstat (limited to 'dev-ruby/omniauth/omniauth-2.1.4.ebuild')
| -rw-r--r-- | dev-ruby/omniauth/omniauth-2.1.4.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-ruby/omniauth/omniauth-2.1.4.ebuild b/dev-ruby/omniauth/omniauth-2.1.4.ebuild new file mode 100644 index 000000000000..b80a6a7f20c5 --- /dev/null +++ b/dev-ruby/omniauth/omniauth-2.1.4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby32 ruby33" + +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" + +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64" +IUSE="doc test" + +ruby_add_rdepend " + dev-ruby/logger + >=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 dev-ruby/rack-protection:3 )" + +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"; gem "rack-protection", "~> 3.0"' \ + -e '/simplecov/,/^end/ s:^:#:' \ + -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 +} |
