mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-15 23:48:07 -05:00
gnu: ruby-temple: Update to 0.10.0.
* gnu/packages/ruby.scm (ruby-temple): Update to 0.10.0. [source]: Fetch via git. [arguments]: New field. [native-inputs]: Replace ruby-erubis with ruby-erubi. Add ruby-rspec.
This commit is contained in:
parent
9b0c794d2c
commit
513718fbd2
1 changed files with 30 additions and 13 deletions
|
@ -4233,21 +4233,38 @@ (define-public ruby-locale
|
||||||
(define-public ruby-temple
|
(define-public ruby-temple
|
||||||
(package
|
(package
|
||||||
(name "ruby-temple")
|
(name "ruby-temple")
|
||||||
(version "0.8.2")
|
(version "0.10.0")
|
||||||
(source
|
(source (origin
|
||||||
(origin
|
(method git-fetch) ;for tests
|
||||||
(method url-fetch)
|
(uri (git-reference
|
||||||
(uri (rubygems-uri "temple" version))
|
(url "https://github.com/judofyr/temple")
|
||||||
(sha256
|
(commit (string-append "v" version))))
|
||||||
(base32
|
(file-name (git-file-name name version))
|
||||||
"060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861"))))
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0rr9fnlcgj9nm3b6hzzjsvcw8x3y7z48j7slk7xxff2mh8s7y3y0"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(native-inputs
|
(arguments
|
||||||
(list ruby-tilt ruby-bacon ruby-erubis))
|
(list #:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'replace-git-ls-files 'replace-more-git-ls-files
|
||||||
|
(lambda _
|
||||||
|
(substitute* "temple.gemspec"
|
||||||
|
;; There no longer are test, spec or features
|
||||||
|
;; directories.
|
||||||
|
((".*`git ls-files -- \\{test,spec,features}/\\*`.*")
|
||||||
|
"")
|
||||||
|
;; There isn't any bin directory either.
|
||||||
|
((".*`git ls-files -- bin/\\*`.*")
|
||||||
|
""))))
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(invoke "rspec")))))))
|
||||||
|
(native-inputs (list ruby-bacon ruby-erubi ruby-rspec ruby-tilt))
|
||||||
(synopsis "Template compilation framework in Ruby")
|
(synopsis "Template compilation framework in Ruby")
|
||||||
(description
|
(description "Temple is an abstraction and framework for compiling
|
||||||
"Temple is an abstraction and framework for compiling templates to pure
|
templates to pure Ruby.")
|
||||||
Ruby.")
|
|
||||||
(home-page "https://github.com/judofyr/temple")
|
(home-page "https://github.com/judofyr/temple")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue