4 |
4 |
EAPI=8
|
5 |
5 |
USE_RUBY="ruby30 ruby31 ruby32"
|
6 |
6 |
|
7 |
|
RUBY_FAKEGEM_TASK_DOC=""
|
8 |
7 |
RUBY_FAKEGEM_EXTRADOC="README.md"
|
9 |
8 |
|
10 |
9 |
RUBY_FAKEGEM_GEMSPEC="sprockets.gemspec"
|
11 |
10 |
|
12 |
|
RUBY_FAKEGEM_BINWRAP=""
|
13 |
|
|
14 |
11 |
inherit ruby-fakegem
|
15 |
12 |
|
16 |
13 |
DESCRIPTION="Ruby library for compiling and serving web assets"
|
... | ... | |
19 |
16 |
|
20 |
17 |
LICENSE="MIT"
|
21 |
18 |
SLOT="$(ver_cut 1)"
|
22 |
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
|
19 |
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
23 |
20 |
|
24 |
|
PATCHES=(
|
25 |
|
"${FILESDIR}/${P}-erb-deprecation.patch"
|
26 |
|
"${FILESDIR}/${P}-kwargs.patch"
|
27 |
|
"${FILESDIR}/${P}-ruby31-host-uri.patch"
|
28 |
|
)
|
|
21 |
IUSE=""
|
29 |
22 |
|
30 |
23 |
ruby_add_rdepend "
|
31 |
24 |
dev-ruby/concurrent-ruby:1
|
32 |
|
>=dev-ruby/rack-1:* <dev-ruby/rack-3:*"
|
|
25 |
>=dev-ruby/rack-2.2.4:3.0
|
|
26 |
"
|
33 |
27 |
|
34 |
28 |
ruby_add_bdepend "test? (
|
35 |
29 |
dev-ruby/json
|
36 |
30 |
dev-ruby/rack-test
|
37 |
31 |
=dev-ruby/coffee-script-2*
|
38 |
32 |
=dev-ruby/execjs-2*
|
39 |
|
dev-ruby/nokogiri
|
40 |
33 |
=dev-ruby/sass-3* >=dev-ruby/sass-3.1
|
|
34 |
dev-ruby/sassc
|
41 |
35 |
dev-ruby/uglifier
|
42 |
36 |
)"
|
43 |
37 |
|
... | ... | |
46 |
40 |
# eco and ejs.
|
47 |
41 |
sed -i -e '/eco templates/,/end/ s:^:#:' \
|
48 |
42 |
-e '/ejs templates/,/end/ s:^:#:' test/test_environment.rb || die
|
49 |
|
sed -i -e '/.ejs/ s:^:#:' test/test_asset.rb || die
|
50 |
|
rm -f test/test_require.rb test/test_{closure,eco,ejs,yui}_{compressor,processor}.rb || die
|
|
43 |
sed -i -e '/.ejs/ s:^:#:' -e '/\(es6_asset.js\|traceur.es6\)/ s:^:#:' test/test_asset.rb || die
|
|
44 |
sed -i -e '/compile babel source map/askip' test/test_source_maps.rb || die
|
|
45 |
sed -e '/change jst template namespace/askip' \
|
|
46 |
-e '/find_asset. does not raise an exception/askip' \
|
|
47 |
-e '/es6 asset/askip' \
|
|
48 |
-i test/test_environment.rb || die
|
|
49 |
rm -f test/test_require.rb test/test_{babel,closure,eco,ejs,jsminc,yui}_{compressor,processor}.rb || die
|
|
50 |
# Fails only within Gentoo test environment, not clear why
|
|
51 |
sed -i -e '/extension exporters/a skip' test/test_exporting.rb || die
|
51 |
52 |
sed -i -e "/bundler/d" Rakefile || die
|
52 |
53 |
|
53 |
54 |
sed -i -e 's/MiniTest/Minitest/' test/sprockets_test.rb test/test*.rb || die
|
54 |
|
sed -i -e '2igem "rack", "<3"' test/sprockets_test.rb || die
|
55 |
|
sed -i -e '5irequire "rack/lint"' test/test_server.rb || die
|
56 |
55 |
}
|
57 |
56 |
|
58 |
57 |
each_ruby_prepare() {
|