aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Woodcroft <donttrustben@gmail.com>2018-02-05 11:46:39 +0100
committerChristopher Baines <mail@cbaines.net>2018-05-18 11:54:02 +0100
commit7f975bf3572ebf1f87c1250457f20814bc36f8ea (patch)
tree18353e22be845c188775faa677e13406af0134ea
parent2292f1948be0a6c67f8e7dd17e13ecb29f03089f (diff)
downloadguix-7f975bf3572ebf1f87c1250457f20814bc36f8ea.tar
guix-7f975bf3572ebf1f87c1250457f20814bc36f8ea.tar.gz
gnu: Add ruby-pdf-reader.
-rw-r--r--gnu/packages/ruby.scm44
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index acee035854..4a259172ea 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6053,3 +6053,47 @@ using a strict syntax definition and supporting several common extensions.
(home-page
"http://prawn.majesticseacreature.com")
(license #f)))
+
+(define-public ruby-pdf-reader
+ (package
+ (name "ruby-pdf-reader")
+ (version "1.3.3")
+ (source
+ (origin
+ (method url-fetch)
+ ;; fetch from github as rubygem does not contain tests
+ (uri (string-append "https://github.com/yob/pdf-reader/archive/v"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1bvrjr93nhfhm652s6fc0i5kvs44y1bqa6dq5dyms38nfqnsym5b"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ;; remove gems that are not actually required for running tests
+ (add-before 'check 'remove-dependency-checking
+ (lambda _
+ (substitute* "pdf-reader.gemspec"
+ ((".*spec.add_development_dependency.*ZenTest.*") "")
+;; ((".*spec.add_development_dependency.*cane.*") "")
+ ((".*spec.add_development_dependency.*morecane.*") "")
+ ((".*spec.add_development_dependency.*ir_b.*") ""))
+ #t)))))
+ (propagated-inputs
+ `(("ruby-afm" ,ruby-afm)
+ ("ruby-ascii85" ,ruby-ascii85)
+ ("ruby-hashery" ,ruby-hashery)
+ ("ruby-rc4" ,ruby-rc4)
+ ("ruby-ttfunk" ,ruby-ttfunk)))
+ (native-inputs
+ `(("bundler" ,bundler)
+ ("ruby-rspec" ,ruby-rspec-2)))
+ (synopsis
+ "The PDF::Reader library implements a PDF parser conforming as much as possible to the PDF specification from Adobe")
+ (description
+ "The PDF::Reader library implements a PDF parser conforming as much as possible to the PDF specification from Adobe")
+ (home-page "http://github.com/yob/pdf-reader")
+ (license #f)))
+