1 |
commit: 160386ae6470f1f600f773203e89d6569b006935 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 1 06:26:58 2022 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 1 06:49:44 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=160386ae |
7 |
|
8 |
dev-ruby/sassc-rails: EAPI 6->8, add ruby30, restrict rails versions |
9 |
|
10 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
11 |
|
12 |
dev-ruby/sassc-rails/sassc-rails-2.1.2-r2.ebuild | 45 ++++++++++++++++++++++++ |
13 |
1 file changed, 45 insertions(+) |
14 |
|
15 |
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 |
16 |
new file mode 100644 |
17 |
index 000000000000..19e25b0708f4 |
18 |
--- /dev/null |
19 |
+++ b/dev-ruby/sassc-rails/sassc-rails-2.1.2-r2.ebuild |
20 |
@@ -0,0 +1,45 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+USE_RUBY="ruby26 ruby27 ruby30" |
26 |
+ |
27 |
+RUBY_FAKEGEM_TASK_DOC="" |
28 |
+RUBY_FAKEGEM_EXTRADOC="README.md" |
29 |
+ |
30 |
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
31 |
+ |
32 |
+inherit ruby-fakegem |
33 |
+ |
34 |
+DESCRIPTION="Integrate SassC-Ruby with Rails" |
35 |
+HOMEPAGE="https://github.com/sass/sassc-rails" |
36 |
+ |
37 |
+LICENSE="MIT" |
38 |
+SLOT="$(ver_cut 1)" |
39 |
+KEYWORDS="~amd64" |
40 |
+ |
41 |
+IUSE="" |
42 |
+ |
43 |
+ruby_add_rdepend " |
44 |
+ >=dev-ruby/sassc-2.0 |
45 |
+ dev-ruby/tilt:* |
46 |
+ || ( dev-ruby/railties:5.2 dev-ruby/railties:6.0 dev-ruby/railties:6.1 ) |
47 |
+ >=dev-ruby/sprockets-3.0:* |
48 |
+ dev-ruby/sprockets-rails:* |
49 |
+" |
50 |
+ |
51 |
+ruby_add_bdepend " |
52 |
+ test? ( dev-ruby/bundler dev-ruby/mocha )" |
53 |
+ |
54 |
+all_ruby_prepare() { |
55 |
+ sed -e '/rake/ s/,.*$//' \ |
56 |
+ -e '/pry/ s:^:#:' \ |
57 |
+ -e "/railties/ s/$/, '<7'/" \ |
58 |
+ -e 's/git ls-files -z/find * -print0/' \ |
59 |
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die |
60 |
+ sed -i -e '/pry/ s:^:#:' test/test_helper.rb || die |
61 |
+} |
62 |
+ |
63 |
+each_ruby_test() { |
64 |
+ ${RUBY} -S bundle exec rake test || die |
65 |
+} |