[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
42/59: gnu: ruby-tilt: Update to 2.0.11.
From: |
guix-commits |
Subject: |
42/59: gnu: ruby-tilt: Update to 2.0.11. |
Date: |
Wed, 28 Jun 2023 05:55:17 -0400 (EDT) |
cbaines pushed a commit to branch ruby-team
in repository guix.
commit 9e0b221246beca6a12c48c340b9339c80dae1a36
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 4eb64365d9..6565a8946b 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
- 15/59: gnu: ruby-introspection: Adjust inputs., (continued)
- 15/59: gnu: ruby-introspection: Adjust inputs., guix-commits, 2023/06/28
- 19/59: gnu: ruby-test-construct: Update to 2.0.2., guix-commits, 2023/06/28
- 20/59: gnu: Add ruby-psych-3., guix-commits, 2023/06/28
- 21/59: gnu: ruby-stackprof: Update to 0.2.25., guix-commits, 2023/06/28
- 22/59: gnu: ruby-hoe: Update to 4.0.4., guix-commits, 2023/06/28
- 26/59: gnu: ruby-json-pure: Update to 2.6.3., guix-commits, 2023/06/28
- 25/59: gnu: ruby-tzinfo-data: Update to 1.2023.3., guix-commits, 2023/06/28
- 27/59: gnu: ruby-markaby: Fix tests., guix-commits, 2023/06/28
- 32/59: gnu: ruby-term-ansicolor: Fix build., guix-commits, 2023/06/28
- 35/59: gnu: ruby-http-cookie: Update to 1.0.5., guix-commits, 2023/06/28
- 42/59: gnu: ruby-tilt: Update to 2.0.11.,
guix-commits <=
- 33/59: gnu: ruby-listen: Update to 3.8.0., guix-commits, 2023/06/28
- 37/59: gnu: Add ruby-http-accept-1., guix-commits, 2023/06/28
- 49/59: gnu: %ruby-rails-version: Update to 7.0.5.1., guix-commits, 2023/06/28
- 18/59: gnu: ruby-mocha: Update to 2.0.4., guix-commits, 2023/06/28
- 23/59: gnu: ruby-sqlite3: Update to 1.6.3., guix-commits, 2023/06/28
- 24/59: gnu: ruby-rack: Update to 2.2.7., guix-commits, 2023/06/28
- 28/59: gnu: ruby-minitest: Update to 5.18.1., guix-commits, 2023/06/28
- 29/59: gnu: ruby-thor: Update to 1.2.2., guix-commits, 2023/06/28
- 31/59: gnu: ruby-minitest-bonus-assertions: Fix build., guix-commits, 2023/06/28
- 34/59: gnu: ruby-mime-types: Update to 3.4.1., guix-commits, 2023/06/28