[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
42/94: gnu: ruby-tilt: Update to 2.0.11.
From: |
guix-commits |
Subject: |
42/94: gnu: ruby-tilt: Update to 2.0.11. |
Date: |
Mon, 3 Jul 2023 06:06:28 -0400 (EDT) |
cbaines pushed a commit to branch ruby-team
in repository guix.
commit 2f6c918537b541c065449c7a3aa24fed5b51ca6c
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Wed Jun 28 08:25:51 2023 +0100
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.
---
gnu/packages/ruby.scm | 58 ++++++++++++++++++++++++++++++++-------------------
1 file changed, 37 insertions(+), 21 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 4c536ff828..306e3699d6 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -7061,7 +7061,7 @@ intended for use with event loops such as async.")
(define-public ruby-tilt
(package
(name "ruby-tilt")
- (version "2.0.10")
+ (version "2.0.11")
(source
(origin
(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))
(sha256
(base32
- "0adb7fg7925n2rd9a8kkqz3mgylw2skp9hkh9qc1rnph72mqsm6r"))))
+ "0a75s6ci2rwai5q1bnlqbz8kxqnfp2497jhkcry1n4g29lcxq9ja"))))
(build-system ruby-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'remove-some-dependencies
- (lambda _
- (substitute* "Gemfile"
- ;; 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"))
- #t)))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-tests
+ (lambda _
+ ;; Patch some tests
+ (substitute* "test/tilt_sasstemplate_test.rb"
+ (("}\",") "}
+\","))))
+ (add-after 'unpack 'remove-some-dependencies
+ (lambda _
+ (substitute* "Gemfile"
+ (("gem 'less'") "\n")
+ (("gem 'coffee-script'") "\n")
+ (("gem 'livescript'") "\n")
+ (("gem 'babel-transpiler'") "\n")
+ (("gem 'typescript-node'") "\n")
+ (("gem 'typescript-node'") "\n")
+ (("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
(list ruby-pandoc-ruby ruby-sassc))
(native-inputs
- 16/94: gnu: Remove ruby-instantiator., (continued)
- 16/94: gnu: Remove ruby-instantiator., guix-commits, 2023/07/03
- 62/94: gnu: ruby-awesome-print: Update to 1.9.2., guix-commits, 2023/07/03
- 65/94: gnu: ruby-multi-json: Fix build., guix-commits, 2023/07/03
- 66/94: gnu: ruby-jwt: Update to 2.7.1., guix-commits, 2023/07/03
- 68/94: gnu: ruby-sorbet-runtime: Remove ruby-pry-byebug input., guix-commits, 2023/07/03
- 72/94: gnu: ruby-connection-pool: Update to 2.4.1., guix-commits, 2023/07/03
- 76/94: gnu: ruby-slop: Update to 4.10.1., guix-commits, 2023/07/03
- 81/94: gnu: ruby-ruby-parser: Update to 3.20.2., guix-commits, 2023/07/03
- 84/94: gnu: ruby-mapping: Fix build., guix-commits, 2023/07/03
- 38/94: gnu: ruby-protobuf: Fix build., guix-commits, 2023/07/03
- 42/94: gnu: ruby-tilt: Update to 2.0.11.,
guix-commits <=
- 35/94: gnu: ruby-http-cookie: Update to 1.0.5., guix-commits, 2023/07/03
- 47/94: gnu: ruby-kpeg: Update to 1.3.3., guix-commits, 2023/07/03
- 40/94: gnu: ruby-delayed-job: Fix build., guix-commits, 2023/07/03
- 54/94: gnu: ruby-importmap-rails: Remove ruby-byebug dependency., guix-commits, 2023/07/03
- 56/94: gnu: ruby-maxitest: Update to 5.1.0., guix-commits, 2023/07/03
- 55/94: gnu: ruby-hydra: Fix build., guix-commits, 2023/07/03
- 59/94: gnu: ruby-rb-inotify: Update to 0.10.1., guix-commits, 2023/07/03
- 61/94: gnu: ronn-ng: Fix build., guix-commits, 2023/07/03
- 63/94: gnu: ruby-benchmark-ips: Update to 2.12.0., guix-commits, 2023/07/03
- 64/94: gnu: ruby-braintree: Update to 4.12.0., guix-commits, 2023/07/03