From c90c1698e1e256f8c42558caed077850e92c6434 Mon Sep 17 00:00:00 2001 From: Philip McGrath Date: Mon, 25 Jul 2022 08:16:35 -0400 Subject: gnu: anystyle: Use GDBM by default. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- gnu/packages/ruby.scm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gnu/packages/ruby.scm') 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 -- cgit v1.2.3