mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
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
1 changed files with 8 additions and 0 deletions
|
@ -13622,6 +13622,14 @@ (define-public anystyle
|
||||||
(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 a new issue