From fbe0e28111a91b1697cc352f2f21bd5e2117a595 Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Mon, 5 Feb 2018 12:02:01 +0100 Subject: gnu: Add ruby-listen. --- gnu/packages/ruby.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 21e1bbc42f..1437054d78 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -7526,3 +7526,44 @@ https://github.com/flavorjones/loofah-activerecord).") "") (home-page "") (license license:expat))) ;? + +(define-public ruby-listen +(package + (name "ruby-listen") + (version "3.1.5") + (source + (origin + (method url-fetch) + ;; The gem does not include a Rakefile, so we fetch the tarball from + ;; Github. + (uri (string-append "https://github.com/guard/listen/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0f0mx4nzpd17svvmkcb2q66w3gdvs1zkrpc0p3wq1s2va5b5cnss")) + (patches (search-patches "ruby-listen-patch-gemspec.patch")))) + (build-system ruby-build-system) + (arguments + `(#:test-target "spec" + #:phases + (modify-phases %standard-phases + (add-before 'check 'fix-dependencies' + (lambda _ + (substitute* "Rakefile" + ((".*rubocop.*") "")) + #t))))) + (native-inputs + `(("bundler" ,bundler) + ("ruby-rspec" ,ruby-rspec) + ("ruby-coveralls" ,ruby-coveralls))) + (propagated-inputs + `(("ruby-rb-fsevent" ,ruby-rb-fsevent) + ("ruby-rb-inotify" ,ruby-rb-inotify) + ("ruby-ruby-dep" ,ruby-ruby-dep))) + (synopsis + "The Listen gem listens to file modifications and notifies you about the changes. Works everywhere!") + (description + "The Listen gem listens to file modifications and notifies you about the changes. Works everywhere!") + (home-page "https://github.com/guard/listen") + (license license:expat))) -- cgit v1.2.3