[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
- 11/45: gnu: Add libomp-11., (continued)
- 11/45: gnu: Add libomp-11., guix-commits, 2022/08/04
- 19/45: gnu: Add libomp-7., guix-commits, 2022/08/04
- 05/45: gnu: Add aocommon., guix-commits, 2022/08/04
- 24/45: gnu: Add ruby-wapiti., guix-commits, 2022/08/04
- 16/45: gnu: clang-toolchain-9: Use libomp-9., guix-commits, 2022/08/04
- 41/45: gnu: ruby-anystyle: Initialize dictionary files., guix-commits, 2022/08/04
- 34/45: gnu: Add ruby-citeproc., guix-commits, 2022/08/04
- 07/45: gnu: libomp-14: Reference llvm-14 version string., guix-commits, 2022/08/04
- 12/45: gnu: clang-toolchain-11: Use libomp-11., guix-commits, 2022/08/04
- 26/45: gnu: Add itex2mml., guix-commits, 2022/08/04
- 43/45: gnu: anystyle: Use GDBM by default.,
guix-commits <=
- 06/45: gnu: Add aoflagger., guix-commits, 2022/08/04
- 25/45: gnu: Add ruby-namae., guix-commits, 2022/08/04
- 13/45: gnu: Add libomp-10., guix-commits, 2022/08/04
- 37/45: gnu: Add ruby-anystyle-data., guix-commits, 2022/08/04
- 15/45: gnu: Add libomp-9., guix-commits, 2022/08/04
- 02/45: gnu: python-args: Patch reference to basestring., guix-commits, 2022/08/04
- 35/45: gnu: Add ruby-edtf., guix-commits, 2022/08/04
- 09/45: gnu: Add libomp-12., guix-commits, 2022/08/04
- 23/45: gnu: make-clang-toolchain: Require explicit libomp., guix-commits, 2022/08/04
- 10/45: gnu: clang-toolchain-12: Use libomp-12., guix-commits, 2022/08/04