civodul pushed a commit to branch master in repository guix. commit c90c1698e1e256f8c42558caed077850e92c6434 Author: Philip McGrath <phi...@philipmcgrath.com> AuthorDate: Mon Jul 25 08:16:35 2022 -0400
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 <l...@gnu.org> --- gnu/packages/ruby.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 2dba81c2a1..cc95bd8d6e 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -13622,6 +13622,14 @@ though the later has not yet been packaged for Guix.") (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