gnu: anystyle: Use GDBM by default.
Since we have GDBM available, it offers a smaller memory footprint and faster start-up. * gnu/packages/ruby.scm (anystyle)[arguments]<#:phases>: Add phase 'change-default-dictionary-adapter'. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
9c124671ce
commit
c90c1698e1
@ -13622,6 +13622,14 @@ though the later has not yet been packaged for Guix.")
|
|||||||
(substitute* "anystyle-cli.gemspec"
|
(substitute* "anystyle-cli.gemspec"
|
||||||
(("'bibtex-ruby', '[^']*'")
|
(("'bibtex-ruby', '[^']*'")
|
||||||
"'bibtex-ruby'"))))
|
"'bibtex-ruby'"))))
|
||||||
|
(add-before 'build 'change-default-dictionary-adapter
|
||||||
|
(lambda args
|
||||||
|
;; Since we always have gdbm available, using it will give a
|
||||||
|
;; faster startup time, which is particularly worth-while for
|
||||||
|
;; a command-line tool.
|
||||||
|
(substitute* "bin/anystyle"
|
||||||
|
(("default_value: 'ruby',")
|
||||||
|
"default_value: 'gdbm', # patched for Guix"))))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
;; There are no tests, but let's use this opportunity to do a
|
;; There are no tests, but let's use this opportunity to do a
|
||||||
|
Loading…
Reference in New Issue
Block a user