app-admin/awscli: Bump to 1.37.9
[gentoo/gentoo.git] / www-apps / jekyll-sass-converter / jekyll-sass-converter-2.2.0.ebuild
blob679ab00ab16cda480b058ebb810be7a0b0fc51c7
1 # Copyright 1999-2025 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
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"
11 inherit ruby-fakegem
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"
17 LICENSE="MIT"
18 SLOT="0"
19 KEYWORDS="~amd64 ~arm64"
21 ruby_add_rdepend ">=dev-ruby/sassc-2.0.1:2"
22 ruby_add_bdepend "test? ( >=www-apps/jekyll-2 )"
24 all_ruby_prepare() {
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