mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-14 02:50:45 +02:00
gnu: ruby-anystyle: Update to 1.4.2.
* gnu/packages/ruby.scm (ruby-anystyle): Update to 1.4.2. [native-inputs]: Add ruby-gdbm. * gnu/packages/patches/ruby-anystyle-fix-dictionary-populate.patch: Update patch. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
e68b589e96
commit
d129a6fdae
2 changed files with 87 additions and 90 deletions
|
@ -52,7 +52,7 @@ index 761ca36..b9529d0 100644
|
||||||
end
|
end
|
||||||
|
|
||||||
def open
|
def open
|
||||||
- if File.exists?(options[:path])
|
- if File.exist?(options[:path])
|
||||||
- @db = ::Marshal.load(File.open(options[:path]))
|
- @db = ::Marshal.load(File.open(options[:path]))
|
||||||
- else
|
- else
|
||||||
- @db = {}
|
- @db = {}
|
||||||
|
|
|
@ -17809,21 +17809,17 @@ the power of the built-in @code{OptionParser}.")
|
||||||
(license license:bsd-2)))
|
(license license:bsd-2)))
|
||||||
|
|
||||||
(define-public ruby-anystyle
|
(define-public ruby-anystyle
|
||||||
(let ((commit "50f1dd547d28ab4b830e45d70e840cb1898a37b0")
|
|
||||||
(revision "1"))
|
|
||||||
;; Releases point to specific commits, but recent releases haven't been
|
|
||||||
;; tagged in Git. Meanwhile, the rubygems archive lacks tests.
|
|
||||||
(package
|
(package
|
||||||
(name "ruby-anystyle")
|
(name "ruby-anystyle")
|
||||||
(version (git-version "1.3.14" revision commit))
|
(version "1.4.2")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/inukshuk/anystyle")
|
(url "https://github.com/inukshuk/anystyle")
|
||||||
(commit commit)))
|
(commit (string-append "v" version))))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0f4qcrywl1kl6qysn24lj3yp85ln4i7za7b7ld2fglyzwcggxwb0"))
|
"0xhy7wj8v7iahikck6vxbdpncaz5w2gb11b32kmvg5ckgi2kz23p"))
|
||||||
(snippet
|
(snippet
|
||||||
;; There is an optional dependency on
|
;; There is an optional dependency on
|
||||||
;; <https://github.com/feedbackmine/language_detector>, which
|
;; <https://github.com/feedbackmine/language_detector>, which
|
||||||
|
@ -17854,6 +17850,7 @@ the power of the built-in @code{OptionParser}.")
|
||||||
(list ruby-byebug
|
(list ruby-byebug
|
||||||
ruby-citeproc
|
ruby-citeproc
|
||||||
ruby-edtf
|
ruby-edtf
|
||||||
|
ruby-gdbm
|
||||||
ruby-rspec
|
ruby-rspec
|
||||||
ruby-unicode-scripts))
|
ruby-unicode-scripts))
|
||||||
(arguments
|
(arguments
|
||||||
|
@ -17881,7 +17878,7 @@ the power of the built-in @code{OptionParser}.")
|
||||||
;; XDG_DATA_DIRS.
|
;; XDG_DATA_DIRS.
|
||||||
(with-output-to-file "initialize-dictionaries.rb"
|
(with-output-to-file "initialize-dictionaries.rb"
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(display "
|
(display "\
|
||||||
require 'anystyle/dictionary' # must come before 'anystyle/data'
|
require 'anystyle/dictionary' # must come before 'anystyle/data'
|
||||||
require 'anystyle/data'
|
require 'anystyle/data'
|
||||||
[:marshal, :gdbm].each do |adapter|
|
[:marshal, :gdbm].each do |adapter|
|
||||||
|
@ -17910,7 +17907,7 @@ data that is relevant to your parsing needs.
|
||||||
This package provides the Ruby module @code{AnyStyle}. AnyStyle can also be
|
This package provides the Ruby module @code{AnyStyle}. AnyStyle can also be
|
||||||
used via the @command{anystyle} command-line utility or a web application,
|
used via the @command{anystyle} command-line utility or a web application,
|
||||||
though the later has not yet been packaged for Guix.")
|
though the later has not yet been packaged for Guix.")
|
||||||
(license license:bsd-2))))
|
(license license:bsd-2)))
|
||||||
|
|
||||||
(define-public anystyle
|
(define-public anystyle
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue