diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-10-08 16:48:07 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-10-09 09:27:46 +0200 |
commit | 905a5b60141bded5d6d2c9ec3b3c254d7a3aa557 (patch) | |
tree | ae12d83c46b3f8d98dd159eea14f6a87d216b3fc /dev-ruby/sass-listen | |
parent | media-radio/xlog: Version bump (diff) | |
download | gentoo-905a5b60141bded5d6d2c9ec3b3c254d7a3aa557.tar.gz gentoo-905a5b60141bded5d6d2c9ec3b3c254d7a3aa557.tar.bz2 gentoo-905a5b60141bded5d6d2c9ec3b3c254d7a3aa557.zip |
dev-ruby/sass-listen: EAPI 8; add ruby30
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/sass-listen')
-rw-r--r-- | dev-ruby/sass-listen/sass-listen-4.0.0-r1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-ruby/sass-listen/sass-listen-4.0.0-r1.ebuild b/dev-ruby/sass-listen/sass-listen-4.0.0-r1.ebuild new file mode 100644 index 000000000000..341d0a1db1ba --- /dev/null +++ b/dev-ruby/sass-listen/sass-listen-4.0.0-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby26 ruby27 ruby30" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +SRC_URI="https://github.com/sass/listen/archive/v${PV}.tar.gz -> ${P}.tar.gz" +DESCRIPTION="Fork of guard/listen provides a stable API for users of the ruby Sass CLI" +HOMEPAGE="https://github.com/guard/listen" +RUBY_S="listen-${PV}" + +LICENSE="MIT" +SLOT="4" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" +IUSE="test" + +PATCHES=( "${FILESDIR}/listen-3.1.5-ruby26.patch" ) + +ruby_add_rdepend ">=dev-ruby/rb-inotify-0.9.7" + +ruby_add_bdepend "test? ( dev-ruby/thor )" + +all_ruby_prepare() { + rm -f Gemfile || die + sed -i -e "/git/,+3d" -e "/rb-fsevent/d" ${PN}.gemspec || die + sed -i -e "/rb-fsevent/d" lib/sass-listen/adapter/darwin.rb || die + rm -rf spec/lib/listen/adapter/darwin_spec.rb || die +} + +each_ruby_prepare() { + mkdir spec/.fixtures || die +} + +each_ruby_test() { + RSPEC_VERSION=3 ruby-ng_rspec + rm -rf spec/.fixtures || die +} |