1 # Copyright 1999-2025 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 USE_RUBY="ruby31 ruby32"
7 RUBY_FAKEGEM_RECIPE_TEST="rspec3"
8 RUBY_FAKEGEM_EXTRADOC="README.md History.markdown"
9 RUBY_FAKEGEM_GEMSPEC="jekyll-sass-converter.gemspec"
13 DESCRIPTION="A basic Sass converter for Jekyll"
14 HOMEPAGE="https://github.com/jekyll/jekyll-sass-converter"
15 SRC_URI="https://github.com/jekyll/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
19 KEYWORDS="~amd64 ~arm64"
21 ruby_add_rdepend ">=dev-ruby/sassc-2.0.1:2"
22 ruby_add_bdepend "test? ( >=www-apps/jekyll-2 )"
25 sed -e 's/git ls-files -z/find * -type f -print0/' \
26 -e 's:_relative ": "./:' \
27 -i ${RUBY_FAKEGEM_GEMSPEC} || die
28 sed -i -e "1irequire 'tmpdir'" spec/scss_converter_spec.rb || die
30 # Avoid specs that require the minima theme
31 sed -i -e '/with valid sass paths in a theme/,/^ end/ s:^:#:' spec/scss_converter_spec.rb || die