commit:     160386ae6470f1f600f773203e89d6569b006935
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  1 06:26:58 2022 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Fri Jul  1 06:49:44 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=160386ae

dev-ruby/sassc-rails: EAPI 6->8, add ruby30, restrict rails versions

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/sassc-rails/sassc-rails-2.1.2-r2.ebuild | 45 ++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/dev-ruby/sassc-rails/sassc-rails-2.1.2-r2.ebuild 
b/dev-ruby/sassc-rails/sassc-rails-2.1.2-r2.ebuild
new file mode 100644
index 000000000000..19e25b0708f4
--- /dev/null
+++ b/dev-ruby/sassc-rails/sassc-rails-2.1.2-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Integrate SassC-Ruby with Rails"
+HOMEPAGE="https://github.com/sass/sassc-rails";
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+
+IUSE=""
+
+ruby_add_rdepend "
+       >=dev-ruby/sassc-2.0
+       dev-ruby/tilt:*
+       || ( dev-ruby/railties:5.2 dev-ruby/railties:6.0 dev-ruby/railties:6.1 )
+       >=dev-ruby/sprockets-3.0:*
+       dev-ruby/sprockets-rails:*
+"
+
+ruby_add_bdepend "
+       test? ( dev-ruby/bundler dev-ruby/mocha )"
+
+all_ruby_prepare() {
+       sed -e '/rake/ s/,.*$//' \
+               -e '/pry/ s:^:#:' \
+               -e "/railties/ s/$/, '<7'/" \
+               -e 's/git ls-files -z/find * -print0/' \
+               -i ${RUBY_FAKEGEM_GEMSPEC} || die
+       sed -i -e '/pry/ s:^:#:' test/test_helper.rb || die
+}
+
+each_ruby_test() {
+       ${RUBY} -S bundle exec rake test || die
+}

Reply via email to