guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

43/45: gnu: anystyle: Use GDBM by default.


From: guix-commits
Subject: 43/45: gnu: anystyle: Use GDBM by default.
Date: Thu, 4 Aug 2022 06:07:11 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit c90c1698e1e256f8c42558caed077850e92c6434
Author: Philip McGrath <philip@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 <ludo@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]