[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#56759] [PATCH 20/20] gnu: anystyle: Use GDBM by default.
From: |
Philip McGrath |
Subject: |
[bug#56759] [PATCH 20/20] gnu: anystyle: Use GDBM by default. |
Date: |
Mon, 25 Jul 2022 08:16:35 -0400 |
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'.
---
gnu/packages/ruby.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 8991eb0927..655f49e725 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13620,6 +13620,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
--
2.32.0
- [bug#56759] [PATCH 03/20] gnu: Add itex2mml., (continued)
- [bug#56759] [PATCH 03/20] gnu: Add itex2mml., Philip McGrath, 2022/07/25
- [bug#56759] [PATCH 09/20] gnu: Add ruby-bibtex-ruby., Philip McGrath, 2022/07/25
- [bug#56759] [PATCH 05/20] gnu: Add ruby-latex-decode., Philip McGrath, 2022/07/25
- [bug#56759] [PATCH 10/20] gnu: Add ruby-unicode-scripts., Philip McGrath, 2022/07/25
- [bug#56759] [PATCH 12/20] gnu: Add ruby-edtf., Philip McGrath, 2022/07/25
- [bug#56759] [PATCH 13/20] gnu: Add ruby-gli., Philip McGrath, 2022/07/25
- [bug#56759] [PATCH 15/20] gnu: Add ruby-anystyle., Philip McGrath, 2022/07/25
- [bug#56759] [PATCH 17/20] gnu: ruby-anystyle-data: Don't write to installed gem., Philip McGrath, 2022/07/25
- [bug#56759] [PATCH 11/20] gnu: Add ruby-citeproc., Philip McGrath, 2022/07/25
- [bug#56759] [PATCH 16/20] gnu: Add anystyle., Philip McGrath, 2022/07/25
- [bug#56759] [PATCH 20/20] gnu: anystyle: Use GDBM by default.,
Philip McGrath <=
- [bug#56759] [PATCH 14/20] gnu: Add ruby-anystyle-data., Philip McGrath, 2022/07/25
- [bug#56759] [PATCH 18/20] gnu: ruby-anystyle: Initialize dictionary files., Philip McGrath, 2022/07/25
- [bug#56759] [PATCH 19/20] gnu: anystyle: Add tests for dictionary adapters., Philip McGrath, 2022/07/25
- [bug#56759] [PATCH v2 05/20] gnu: Add ruby-latex-decode., Philip McGrath, 2022/07/25