mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ruby-ttfunk: Update to 1.7.0.
* gnu/packages/ruby.scm (ruby-ttfunk): Update to 1.7.0. [source]: Fix indentation. Use complete sentences for comments. [arguments]: Use gexps. Add comment next to #:test-target. Delete remove-rubocop and remove-ssh phases. Add remove-missing-key-directive phase. [native-inputs]: Remove ruby-rspec, ruby-yard and bundler. Add ruby-prawn-dev.
This commit is contained in:
parent
ad6350ab8b
commit
c16e11bb2f
1 changed files with 15 additions and 25 deletions
|
@ -9719,40 +9719,30 @@ binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
|
||||||
(define-public ruby-ttfunk
|
(define-public ruby-ttfunk
|
||||||
(package
|
(package
|
||||||
(name "ruby-ttfunk")
|
(name "ruby-ttfunk")
|
||||||
(version "1.6.2.1")
|
(version "1.7.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
;; fetch from github as the gem does not contain testing code
|
;; Fetch from github as the gem does not contain testing code.
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/prawnpdf/ttfunk")
|
(url "https://github.com/prawnpdf/ttfunk")
|
||||||
(commit version)))
|
(commit version)))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0rsf4j6s97wbcnjbvmmh6xrc7imw4g9lrlcvn945wh400lc8r53z"))))
|
"1jyxn928mpyb1sikjd93s3v8fmh33232pq41ziaph513j7am6fi5"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:test-target "spec"
|
(list #:test-target "spec" ;avoid the rubocop target
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-before 'build 'remove-ssh
|
(add-after 'unpack 'remove-missing-key-directive
|
||||||
(lambda _
|
;; This seem to be a common problem in Ruby projects (see:
|
||||||
;; remove dependency on an ssh key pair that doesn't exist
|
;; https://github.com/prawnpdf/ttfunk/issues/99).
|
||||||
(substitute* "ttfunk.gemspec"
|
(lambda _
|
||||||
(("spec.signing_key.*") ""))
|
(substitute* "ttfunk.gemspec"
|
||||||
#t))
|
((".*spec.signing_key.*") "")))))))
|
||||||
(add-before 'check 'remove-rubocop
|
(native-inputs (list ruby-prawn-dev))
|
||||||
(lambda _
|
|
||||||
;; remove rubocop as a dependency as not needed for testing
|
|
||||||
(substitute* "ttfunk.gemspec"
|
|
||||||
(("spec.add_development_dependency\\('rubocop'.*") ""))
|
|
||||||
(substitute* "Rakefile"
|
|
||||||
(("require 'rubocop/rake_task'") "")
|
|
||||||
(("RuboCop::RakeTask.new") ""))
|
|
||||||
#t)))))
|
|
||||||
(native-inputs
|
|
||||||
(list ruby-rspec ruby-yard bundler))
|
|
||||||
(synopsis "Font metrics parser for the Prawn PDF generator")
|
(synopsis "Font metrics parser for the Prawn PDF generator")
|
||||||
(description
|
(description
|
||||||
"TTFunk is a TrueType font parser written in pure Ruby. It is used as
|
"TTFunk is a TrueType font parser written in pure Ruby. It is used as
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue