summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-07-12 21:46:11 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-07-17 23:01:27 -0400
commit34796d7a6cf777f4f78708d06a1ba661d27f029a (patch)
treeba33c2d1c75157d0ad221b66485f72f05fba4256
parentb377dd95b8fb3d77deff6101baae4c6e9a6be9ce (diff)
downloadguix-34796d7a6cf777f4f78708d06a1ba661d27f029a.tar.gz
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.
-rw-r--r--gnu/packages/ruby.scm20
1 files changed, 14 insertions, 6 deletions
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 @@ custom checks.  This gem provides a set of additional checks.")
     (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