commit:     f4689d65220573dde89c32798e3d71f5ac1571fa
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  8 07:01:29 2019 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Fri Feb  8 08:03:54 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4689d65

dev-ruby/sass-listen: add ruby26

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 .../sass-listen/files/listen-3.1.5-ruby26.patch    | 33 ++++++++++++++++++++++
 dev-ruby/sass-listen/sass-listen-4.0.0.ebuild      |  6 ++--
 2 files changed, 37 insertions(+), 2 deletions(-)

diff --git a/dev-ruby/sass-listen/files/listen-3.1.5-ruby26.patch 
b/dev-ruby/sass-listen/files/listen-3.1.5-ruby26.patch
new file mode 100644
index 00000000000..f90ab1ed213
--- /dev/null
+++ b/dev-ruby/sass-listen/files/listen-3.1.5-ruby26.patch
@@ -0,0 +1,33 @@
+From 2908365366792ac3ba010fa32bc3be2beaed451a Mon Sep 17 00:00:00 2001
+From: Samuel Williams <[email protected]>
+Date: Sun, 16 Dec 2018 11:32:45 +1300
+Subject: [PATCH] Use raw Pathname to fix Linux specs.
+
+---
+ lib/listen/adapter/linux.rb           |  2 +-
+ spec/lib/listen/adapter/linux_spec.rb | 12 +-----------
+ 2 files changed, 2 insertions(+), 12 deletions(-)
+
+diff --git a/spec/lib/listen/adapter/linux_spec.rb 
b/spec/lib/listen/adapter/linux_spec.rb
+index d77f0c0..da48319 100644
+--- a/spec/lib/listen/adapter/linux_spec.rb
++++ b/spec/lib/listen/adapter/linux_spec.rb
+@@ -10,17 +10,7 @@
+   end
+ 
+   if linux?
+-    let(:dir1) do
+-      instance_double(
+-        Pathname,
+-        'dir1',
+-        to_s: '/foo/dir1',
+-        cleanpath: real_dir1
+-      )
+-    end
+-
+-    # just so cleanpath works in above double
+-    let(:real_dir1) { instance_double(Pathname, 'dir1', to_s: '/foo/dir1') }
++    let(:dir1) {Pathname.new("/foo/dir1")}
+ 
+     let(:config) { instance_double(Listen::Adapter::Config) }
+     let(:queue) { instance_double(Queue) }

diff --git a/dev-ruby/sass-listen/sass-listen-4.0.0.ebuild 
b/dev-ruby/sass-listen/sass-listen-4.0.0.ebuild
index 7d102181fac..3e6486958d1 100644
--- a/dev-ruby/sass-listen/sass-listen-4.0.0.ebuild
+++ b/dev-ruby/sass-listen/sass-listen-4.0.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-USE_RUBY="ruby23 ruby24 ruby25"
+USE_RUBY="ruby23 ruby24 ruby25 ruby26"
 
 RUBY_FAKEGEM_RECIPE_TEST="rspec3"
 
@@ -24,6 +24,8 @@ SLOT="4"
 KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~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 )"

Reply via email to