From 34796d7a6cf777f4f78708d06a1ba661d27f029a Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 12 Jul 2020 21:46:11 -0400 Subject: gnu: ruby-pdf-reader: Actually run tests. * gnu/packages/ruby.scm (ruby-pdf-reader)[source]: Use git-fetch. [phases]{do-not-use-bundler}: Add phase. [native-inputs]{bundler}: Delete input. --- gnu/packages/ruby.scm | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 5be2e6e192..f87caa1545 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -9564,16 +9564,24 @@ (define-public ruby-pdf-reader (name "ruby-pdf-reader") (version "2.4.0") (source (origin - (method url-fetch) - (uri (rubygems-uri "pdf-reader" version)) + (method git-fetch) ;no test in distributed gem archive + (uri (git-reference + (url "https://github.com/yob/pdf-reader.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 (base32 - "1g3gr2m46275hjv6fv4jwq3qlvdbnhf1jxir9vzgxhv45ncnhffy")))) + "1yh8yrlssf5ppnkvk4m78vmh5r5vqwdcd0gm3lqipw162llz0rai")))) (build-system ruby-build-system) - (arguments `(#:test-target "spec")) + (arguments `(#:test-target "spec" + #:phases (modify-phases %standard-phases + (add-after 'unpack 'do-not-use-bundler + (lambda _ + (substitute* "spec/spec_helper.rb" + ((".*[Bb]undler.*") "")) + #t))))) (native-inputs - `(("bundler" ,bundler) - ("ruby-rspec" ,ruby-rspec) + `(("ruby-rspec" ,ruby-rspec) ("ruby-cane" ,ruby-cane) ("ruby-morecane" ,ruby-morecane))) (propagated-inputs -- cgit v1.2.3