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:
Philip McGrath 2022-07-25 08:16:35 -04:00 committed by Ludovic Courtès
parent 9c124671ce
commit c90c1698e1
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -13622,6 +13622,14 @@ (define-public anystyle
(substitute* "anystyle-cli.gemspec"
(("'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
(lambda* (#:key tests? #:allow-other-keys)
;; There are no tests, but let's use this opportunity to do a