summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2018-05-03 06:36:14 +0200
committerHans de Graaff <graaff@gentoo.org>2018-05-03 06:36:14 +0200
commit3a9c5a02e4480feb230a45eb8c3a90d73a32d4e1 (patch)
tree362126e883f6498a7402ba5e0567958d2481a0a5 /dev-ruby
parentdev-ruby/bcrypt_pbkdf: add ruby25 (diff)
downloadgentoo-3a9c5a02e4480feb230a45eb8c3a90d73a32d4e1.tar.gz
gentoo-3a9c5a02e4480feb230a45eb8c3a90d73a32d4e1.tar.bz2
gentoo-3a9c5a02e4480feb230a45eb8c3a90d73a32d4e1.zip
dev-ruby/listen: add ruby25 revision
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/listen/listen-3.1.5-r2.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-ruby/listen/listen-3.1.5-r2.ebuild b/dev-ruby/listen/listen-3.1.5-r2.ebuild
new file mode 100644
index 000000000000..3b3c982054d9
--- /dev/null
+++ b/dev-ruby/listen/listen-3.1.5-r2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby23 ruby24 ruby25"
+
+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/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 ~hppa ~ppc ~ppc64 ~x86"
+IUSE="test"
+
+# Block on other packages trying to install a /usr/bin/listen
+RDEPEND+="!!media-sound/listen !!media-radio/ax25 !!<dev-ruby/listen-2.8.6-r1:2"
+
+ruby_add_rdepend ">=dev-ruby/rb-inotify-0.9.7 >=dev-ruby/ruby_dep-1.2:1"
+
+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
+}