commit: b39cc62ca924b0db4c246b6657d0139439055c4d Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Wed Jul 7 06:04:57 2021 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Wed Jul 7 06:53:34 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b39cc62c
dev-ruby/coffee-rails: add ruby27; fix tests; EAPI 7 Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/coffee-rails/coffee-rails-5.0.0-r1.ebuild | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/dev-ruby/coffee-rails/coffee-rails-5.0.0-r1.ebuild b/dev-ruby/coffee-rails/coffee-rails-5.0.0-r1.ebuild new file mode 100644 index 00000000000..3d85d5704de --- /dev/null +++ b/dev-ruby/coffee-rails/coffee-rails-5.0.0-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby25 ruby26 ruby27" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Coffee Script adapter for the Rails asset pipeline" +HOMEPAGE="https://github.com/rails/coffee-rails" +SRC_URI="https://github.com/rails/coffee-rails/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1-2)" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux" + +IUSE="" + +ruby_add_rdepend ">=dev-ruby/coffee-script-2.2.0 + >dev-ruby/railties-5.2:*" + +ruby_add_bdepend "test? ( dev-ruby/sprockets-rails dev-ruby/sprockets:3 )" + +all_ruby_prepare() { + # Avoid dependency on git and bundler. + sed -i -e 's/git ls-files/echo/' \ + -e '/bundler/I s:^:#:' Rakefile || die + + # Make sure a consistent rails version is loaded. + sed -i -e '4igem "railties" ; gem "sprockets", "<4"' -e '/bundler/ s:^:#:' test/test_helper.rb || die +}