diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-07-07 08:04:57 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-07-07 08:53:34 +0200 |
commit | b39cc62ca924b0db4c246b6657d0139439055c4d (patch) | |
tree | 6a55c6932d3fe95c8fbfe0405810318e838611e3 /dev-ruby/coffee-rails | |
parent | dev-ruby/rspectacular: cleanup (diff) | |
download | gentoo-b39cc62ca924b0db4c246b6657d0139439055c4d.tar.gz gentoo-b39cc62ca924b0db4c246b6657d0139439055c4d.tar.bz2 gentoo-b39cc62ca924b0db4c246b6657d0139439055c4d.zip |
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@gentoo.org>
Diffstat (limited to 'dev-ruby/coffee-rails')
-rw-r--r-- | dev-ruby/coffee-rails/coffee-rails-5.0.0-r1.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
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 000000000000..3d85d5704de6 --- /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 +} |