aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorBen Woodcroft <donttrustben@gmail.com>2018-02-05 11:46:39 +0100
committerChristopher Baines <mail@cbaines.net>2018-03-18 18:25:19 +0000
commit6abbf4202d95a597f0dc0982f2cee4431d2f4c42 (patch)
tree076b82abe12177f7df1c75862b2725e585375073 /gnu/packages
parent8dc947b255ecf4d3ecd0c0ff7765d1f45777d43e (diff)
downloadguix-6abbf4202d95a597f0dc0982f2cee4431d2f4c42.tar
guix-6abbf4202d95a597f0dc0982f2cee4431d2f4c42.tar.gz
gnu: Add ruby-pdf-reader.
Diffstat (limited to 'gnu/packages')
-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 a98fcc73fb..2bd0e09838 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)))
+