diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-06-05 07:46:26 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-06-05 07:46:26 +0200 |
commit | 05cad4f7c7d452ef538335d507355cffebda4d0b (patch) | |
tree | 33e5b08be2f5e978987247b2b690e42055ab5021 /dev-ruby/sassc | |
parent | dev-ruby/tins: add 1.29.1 (diff) | |
download | gentoo-05cad4f7c7d452ef538335d507355cffebda4d0b.tar.gz gentoo-05cad4f7c7d452ef538335d507355cffebda4d0b.tar.bz2 gentoo-05cad4f7c7d452ef538335d507355cffebda4d0b.zip |
dev-ruby/sassc: add 2.4.0
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/sassc')
-rw-r--r-- | dev-ruby/sassc/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/sassc/sassc-2.4.0.ebuild | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-ruby/sassc/Manifest b/dev-ruby/sassc/Manifest index 30aeadcbad3f..d55ceba045f7 100644 --- a/dev-ruby/sassc/Manifest +++ b/dev-ruby/sassc/Manifest @@ -1 +1,2 @@ DIST sassc-2.2.1.gem 302080 BLAKE2B 626601d2b22f91f354a4ddf7a68e4463b0a56b0a79e5d2ca122a083101146dac32699e348fd4573ef4ba76a430470ecd39427a8542caec931a8e16b26a23bb70 SHA512 728ad274363fd79aedee74fb6d4dbfc60f31b334e1a8054943ccf9cfa534fa3465abb00a2bd3020e198d287327058890411bb1983da6dc5dc3c4413b1936e2eb +DIST sassc-2.4.0.gem 304640 BLAKE2B a4cd96859855cfd26e78a35becba30af8b7ee52d8ba67f7dcbc6354786f26e60a312be4e773f515f6edda6623142249a4a470f418d9fae3db734f8ae11498dc8 SHA512 835ba03d0fc5a791b2d620367f63202973f778bd8ebaa87c27f6a1de75b5895270205e8746fbb242d2739c9830a27d72453a75c1b536090840de581c52caade6 diff --git a/dev-ruby/sassc/sassc-2.4.0.ebuild b/dev-ruby/sassc/sassc-2.4.0.ebuild new file mode 100644 index 000000000000..3040ccc0c12f --- /dev/null +++ b/dev-ruby/sassc/sassc-2.4.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +USE_RUBY="ruby25 ruby26 ruby27" + +RUBY_FAKEGEM_RECIPE_DOC="none" +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="README.md" + +inherit ruby-fakegem + +DESCRIPTION="Use libsass with Ruby" +HOMEPAGE="https://github.com/sass/sassc-ruby" +LICENSE="MIT" + +KEYWORDS="~amd64 ~arm64" +SLOT="2" +IUSE="" + +RDEPEND+=">=dev-libs/libsass-3.6.1" + +ruby_add_rdepend " + >=dev-ruby/ffi-1.9.6 +" + +ruby_add_bdepend "test? ( + dev-ruby/test_construct + dev-ruby/minitest-around +)" + +all_ruby_prepare() { + # Use unbundled libsass + rm -rf ext || die + + sed -i -e '/ffi_lib/ s:__dir__:"'${ESYSROOT}'/usr/'$(get_libdir)'":' \ + lib/sassc/native.rb || die + + # Avoid version-specific test so newer libsass versions can be used. + sed -i -e '/test_it_reports_the_libsass_version/,/end/ s:^:#:' test/native_test.rb || die + + sed -i -e '/pry/ s:^:#:' test/test_helper.rb || die +} + +each_ruby_test() { + ${RUBY} -Ilib:.:test -e 'Dir["test/**/*_test.rb"].each{|f| require f}' || die +} |