diff options
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r-- | gnu/packages/ruby.scm | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 561cd8d732..70cf8cfb86 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -4099,18 +4099,38 @@ a native C extension.") (source (origin (method url-fetch) - (uri (rubygems-uri "listen" version)) + ;; 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 - "01v5mrnfqm6sgm8xn2v5swxsn1wlmq7rzh2i48d4jzjsc7qvb6mx")))) + "0f0mx4nzpd17svvmkcb2q66w3gdvs1zkrpc0p3wq1s2va5b5cnss")) + (patches (search-patches "ruby-listen-patch-gemspec.patch")))) (build-system ruby-build-system) - (arguments '(#:tests? #f)) ; no tests + (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))) + (inputs + `(("ruby-thor" ,ruby-thor))) (propagated-inputs - `(("ruby-rb-inotify" ,ruby-rb-inotify) - ("ruby-rb-fsevent" ,ruby-rb-fsevent))) - (synopsis "Listen to file modifications") - (description "The Listen gem listens to file modifications and notifies -you about the changes.") + `(("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))) |