mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ruby-tilt: Update to 2.0.11.
* gnu/packages/ruby.scm (ruby-tilt): Update to 2.0.11. [arguments]: Update style, patch some tests, remove more gems from the Gemfile, and set SASS_IMPLEMENTATION to sassc.
This commit is contained in:
parent
c6960691b8
commit
b35bd82a80
1 changed files with 37 additions and 21 deletions
|
@ -7061,7 +7061,7 @@ intended for use with event loops such as async.")
|
||||||
(define-public ruby-tilt
|
(define-public ruby-tilt
|
||||||
(package
|
(package
|
||||||
(name "ruby-tilt")
|
(name "ruby-tilt")
|
||||||
(version "2.0.10")
|
(version "2.0.11")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch) ;the distributed gem lacks tests
|
(method git-fetch) ;the distributed gem lacks tests
|
||||||
|
@ -7071,28 +7071,44 @@ intended for use with event loops such as async.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0adb7fg7925n2rd9a8kkqz3mgylw2skp9hkh9qc1rnph72mqsm6r"))))
|
"0a75s6ci2rwai5q1bnlqbz8kxqnfp2497jhkcry1n4g29lcxq9ja"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
(add-after 'unpack 'remove-some-dependencies
|
#~(modify-phases %standard-phases
|
||||||
(lambda _
|
(add-after 'unpack 'patch-tests
|
||||||
(substitute* "Gemfile"
|
(lambda _
|
||||||
;; TODO ronn is used for generating the manual
|
;; Patch some tests
|
||||||
(("gem 'ronn'.*") "\n")
|
(substitute* "test/tilt_sasstemplate_test.rb"
|
||||||
;; ruby-haml has a runtime dependency on ruby-tilt, so don't
|
(("}\",") "}
|
||||||
;; pass it in as a native-input
|
\","))))
|
||||||
(("gem 'haml'.*") "\n")
|
(add-after 'unpack 'remove-some-dependencies
|
||||||
;; TODO Not all of these gems are packaged for Guix yet:
|
(lambda _
|
||||||
;; less, coffee-script, livescript, babel-transpiler,
|
(substitute* "Gemfile"
|
||||||
;; typescript-node
|
(("gem 'less'") "\n")
|
||||||
(("if can_execjs") "if false")
|
(("gem 'coffee-script'") "\n")
|
||||||
;; Disable the secondary group to reduce the number of
|
(("gem 'livescript'") "\n")
|
||||||
;; dependencies. None of the normal approaches work, so patch
|
(("gem 'babel-transpiler'") "\n")
|
||||||
;; the Gemfile instead.
|
(("gem 'typescript-node'") "\n")
|
||||||
(("group :secondary") "[].each"))
|
(("gem 'typescript-node'") "\n")
|
||||||
#t)))))
|
(("gem 'duktape'.*") "\n")
|
||||||
|
;; TODO ronn is used for generating the manual
|
||||||
|
(("gem 'ronn'.*") "\n")
|
||||||
|
;; ruby-haml has a runtime dependency on ruby-tilt, so don't
|
||||||
|
;; pass it in as a native-input
|
||||||
|
(("gem 'haml'.*") "\n")
|
||||||
|
;; TODO Not all of these gems are packaged for Guix yet:
|
||||||
|
;; less, coffee-script, livescript, babel-transpiler,
|
||||||
|
;; typescript-node
|
||||||
|
(("if can_execjs") "if false")
|
||||||
|
;; Disable the secondary group to reduce the number of
|
||||||
|
;; dependencies. None of the normal approaches work, so patch
|
||||||
|
;; the Gemfile instead.
|
||||||
|
(("group :secondary") "[].each"))))
|
||||||
|
(add-before 'check 'set-SASS_IMPLEMENTATION
|
||||||
|
(lambda _
|
||||||
|
(setenv "SASS_IMPLEMENTATION" "sassc"))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list ruby-pandoc-ruby ruby-sassc))
|
(list ruby-pandoc-ruby ruby-sassc))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue