From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2D89015808D for ; Mon, 18 Apr 2022 12:14:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C07A4E0976; Mon, 18 Apr 2022 12:14:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7E826E0967 for ; Mon, 18 Apr 2022 12:14:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 68F0634185B for ; Mon, 18 Apr 2022 12:14:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9B62E3BF for ; Mon, 18 Apr 2022 12:14:35 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1650284069.c3d19d5c5449d4b04254c60d9dcddf0314b46fa5.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/roadie-rails/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/roadie-rails/roadie-rails-3.0.0-r1.ebuild X-VCS-Directories: dev-ruby/roadie-rails/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: c3d19d5c5449d4b04254c60d9dcddf0314b46fa5 X-VCS-Branch: master Date: Mon, 18 Apr 2022 12:14:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 04304881-efb1-4e7e-9321-3cbb5fccd1a9 X-Archives-Hash: 46deb6bce447579605775c0964e1203e commit: c3d19d5c5449d4b04254c60d9dcddf0314b46fa5 Author: Hans de Graaff gentoo org> AuthorDate: Mon Apr 18 08:57:13 2022 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Mon Apr 18 12:14:29 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3d19d5c dev-ruby/roadie-rails: fix roadie dependency Closes: https://bugs.gentoo.org/838838 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/roadie-rails/roadie-rails-3.0.0-r1.ebuild | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/dev-ruby/roadie-rails/roadie-rails-3.0.0-r1.ebuild b/dev-ruby/roadie-rails/roadie-rails-3.0.0-r1.ebuild new file mode 100644 index 000000000000..8163df599dfb --- /dev/null +++ b/dev-ruby/roadie-rails/roadie-rails-3.0.0-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby26 ruby27" +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_RECIPE_DOC="yard" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Hooks Roadie into your Rails application to help with email generation" +HOMEPAGE="https://github.com/Mange/roadie-rails" +SRC_URI="https://github.com/Mange/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64" + +ruby_add_rdepend "dev-ruby/roadie:5 + || ( dev-ruby/railties:7.0 dev-ruby/railties:6.1 dev-ruby/railties:6.0 dev-ruby/railties:5.2 )" +ruby_add_bdepend " + test? ( + dev-ruby/bundler + || ( dev-ruby/rails:7.0 dev-ruby/rails:6.1 dev-ruby/rails:6.0 dev-ruby/rails:5.2 ) + dev-ruby/rspec-rails + dev-ruby/rspec-collection_matchers + dev-ruby/sass-rails )" + +all_ruby_prepare() { + sed -i -e '/\(simplecov\|standard\)/ s:^:#:' Gemfile || die + sed -i -e 's/git ls-files/find * -print/' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid already removed rails version + sed -i -e '/rails_51/ s:^:#:' spec/integration_spec.rb || die + + # Avoid dependency on optional bootsnap + sed -i -e '/bootsnap/ s:^:#:' spec/railsapps/rails_*/Gemfile spec/railsapps/rails_*/config/boot.rb || die + + # Fix versioned sass-rails dependency + sed -i -e '/sass-rails/ s/>= 6/>=5/' spec/railsapps/*/Gemfile || die + + # Revert https://github.com/Mange/roadie-rails/commit/03acd8fddf651d43919e92db35d541ec4281c5fc for now + # Fragile test which is affected by dependency versions (unclear which) + sed -e 's/cd95a25e70dfe61add5a96e11d3fee0f29e9ba2b05099723d57bba7dfa725c8a/322506f9917889126e81df2833a6eecdf2e394658d53dad347e9882dd4dbf28e/' \ + -i spec/integration_spec.rb || die + +} + +each_ruby_prepare() { + sed -i -e '/run_in_app_context/ s:bin/rails:'${RUBY}' -S bin/rails:' spec/support/rails_app.rb || die +} + +each_ruby_test() { + ${RUBY} -S bundle exec rspec-3 spec || die +}