You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ruby/listen/listen-3.6.0.ebuild

48 lines
1.2 KiB

# 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_RECIPE_DOC="none"
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
inherit ruby-fakegem
SRC_URI="https://github.com/guard/listen/archive/v${PV}.tar.gz -> ${P}.tar.gz"
DESCRIPTION="Listens to file modifications and notifies you about the changes"
HOMEPAGE="https://github.com/guard/listen"
LICENSE="MIT"
SLOT="3"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
IUSE="test"
# Block on other packages trying to install a /usr/bin/listen
RDEPEND+="!!media-radio/ax25-apps !!<dev-ruby/listen-2.8.6-r1:2"
ruby_add_rdepend ">=dev-ruby/rb-inotify-0.9.10"
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/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
}