gnu: ruby-autoprefixer-rails: Update to 10.4.13.0.
* gnu/packages/rails.scm (ruby-autoprefixer-rails): Update to 10.4.13.0. [source]: Fetch via git. [phases]: Rename remove-unnecessary-dependencies to relax-requirements and update phase. [native-inputs]: Remove ruby-sass. Add ruby-sassc-rails, ruby-sprockets and ruby-standard.
This commit is contained in:
parent
7a07d96c1b
commit
4688809ab4
@ -231,45 +231,42 @@ API.")
|
|||||||
(define-public ruby-autoprefixer-rails
|
(define-public ruby-autoprefixer-rails
|
||||||
(package
|
(package
|
||||||
(name "ruby-autoprefixer-rails")
|
(name "ruby-autoprefixer-rails")
|
||||||
(version "9.4.7")
|
(version "10.4.13.0")
|
||||||
(source
|
(source (origin
|
||||||
(origin
|
(method git-fetch) ;for tests
|
||||||
(method url-fetch)
|
(uri (git-reference
|
||||||
(uri (rubygems-uri "autoprefixer-rails" version))
|
(url "https://github.com/ai/autoprefixer-rails")
|
||||||
(sha256
|
(commit version)))
|
||||||
(base32
|
(file-name (git-file-name name version))
|
||||||
"0fxbfl3xrrjj84n98x24yzxbz4nvm6c492dxj41kkrl9z97ga13i"))))
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1i34apjlav1qz8mdg2fyf0hvs5z32inv1snycdkhmqpkfj2ri2hh"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:test-target "spec"
|
'(#:test-target "spec"
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'extract-gemspec 'remove-unnecessary-dependencies
|
(add-after 'extract-gemspec 'relax-requirements
|
||||||
(lambda _
|
(lambda _
|
||||||
;; Remove the testing of compass, as its use is deprecated, and
|
|
||||||
;; it's unpackaged for Guix.
|
|
||||||
(substitute* "autoprefixer-rails.gemspec"
|
|
||||||
((".*%q<compass>.*") "\n")
|
|
||||||
(("\"spec/compass_spec\\.rb\"\\.freeze, ") ""))
|
|
||||||
(delete-file "spec/compass_spec.rb")
|
|
||||||
|
|
||||||
(substitute* "Gemfile"
|
(substitute* "Gemfile"
|
||||||
;; Remove overly strict requirement on sprockets
|
;; Remove overly strict requirement on sprockets
|
||||||
((", '>= 4\\.0\\.0\\.beta1'") "")
|
((", '>= 4\\.0\\.0\\.beta1'") "")
|
||||||
;; The mini_racer gem isn't packaged yet, and it's not directly
|
;; The mini_racer gem isn't packaged yet, and it's not directly
|
||||||
;; required, as other backends for ruby-execjs can be used.
|
;; required, as other backends for ruby-execjs can be used.
|
||||||
(("gem 'mini_racer'") "")
|
(("gem \"mini_racer\"") "")
|
||||||
;; For some reason, this is required for the gems to be picked
|
;; For some reason, this is required for the tzinfo-data gem to
|
||||||
;; up
|
;; be picked up.
|
||||||
(("gemspec") "gemspec\ngem 'tzinfo-data'\ngem 'sass'"))
|
(("gemspec") "gemspec\ngem 'tzinfo-data'\n"))
|
||||||
#t)))))
|
(substitute* "autoprefixer-rails.gemspec"
|
||||||
|
((".*rubocop.*") ""))))))) ;provided by 'standard'
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list bundler
|
(list bundler
|
||||||
ruby-rails
|
ruby-rails
|
||||||
ruby-rspec-rails
|
ruby-rspec-rails
|
||||||
;; This is needed for a test, but I'm unsure why
|
ruby-sassc-rails
|
||||||
ruby-sass
|
ruby-sprockets
|
||||||
;; This is used as the ruby-execjs runtime
|
ruby-standard
|
||||||
|
;; This is used at runtime by ruby-execjs.
|
||||||
node))
|
node))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list ruby-execjs))
|
(list ruby-execjs))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user