Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/listen/
Date: Thu, 03 May 2018 04:42:45
Message-Id: 1525322174.3a9c5a02e4480feb230a45eb8c3a90d73a32d4e1.graaff@gentoo
1 commit: 3a9c5a02e4480feb230a45eb8c3a90d73a32d4e1
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 3 04:36:14 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Thu May 3 04:36:14 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a9c5a02
7
8 dev-ruby/listen: add ruby25 revision
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 dev-ruby/listen/listen-3.1.5-r2.ebuild | 47 ++++++++++++++++++++++++++++++++++
13 1 file changed, 47 insertions(+)
14
15 diff --git a/dev-ruby/listen/listen-3.1.5-r2.ebuild b/dev-ruby/listen/listen-3.1.5-r2.ebuild
16 new file mode 100644
17 index 00000000000..3b3c982054d
18 --- /dev/null
19 +++ b/dev-ruby/listen/listen-3.1.5-r2.ebuild
20 @@ -0,0 +1,47 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +USE_RUBY="ruby23 ruby24 ruby25"
27 +
28 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
29 +
30 +RUBY_FAKEGEM_TASK_DOC=""
31 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
32 +
33 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
34 +
35 +inherit ruby-fakegem
36 +
37 +SRC_URI="https://github.com/guard/listen/archive/v${PV}.tar.gz -> ${P}.tar.gz"
38 +DESCRIPTION="Listens to file modifications and notifies you about the changes"
39 +HOMEPAGE="https://github.com/guard/listen"
40 +
41 +LICENSE="MIT"
42 +SLOT="3"
43 +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
44 +IUSE="test"
45 +
46 +# Block on other packages trying to install a /usr/bin/listen
47 +RDEPEND+="!!media-sound/listen !!media-radio/ax25 !!<dev-ruby/listen-2.8.6-r1:2"
48 +
49 +ruby_add_rdepend ">=dev-ruby/rb-inotify-0.9.7 >=dev-ruby/ruby_dep-1.2:1"
50 +
51 +ruby_add_bdepend "test? ( dev-ruby/thor )"
52 +
53 +all_ruby_prepare() {
54 + rm -f Gemfile || die
55 + sed -i -e "/git/,+3d" -e "/rb-fsevent/d" ${PN}.gemspec || die
56 + sed -i -e "/rb-fsevent/d" lib/listen/adapter/darwin.rb || die
57 + rm -rf spec/lib/listen/adapter/darwin_spec.rb || die
58 +}
59 +
60 +each_ruby_prepare() {
61 + mkdir spec/.fixtures || die
62 +}
63 +
64 +each_ruby_test() {
65 + RSPEC_VERSION=3 ruby-ng_rspec
66 + rm -rf spec/.fixtures || die
67 +}