summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip McGrath <philip@philipmcgrath.com>2022-07-25 08:16:35 -0400
committerGuix Patches Tester <>2022-07-25 13:22:33 +0100
commit4354a490f50d740b0b7e86e5b3dea4fe9f816ae4 (patch)
tree450f1c56eabff2e6054b9bba55bad889a691aa3c
parent8241533fd7de0d7e4614e654547af9c3c50c28ff (diff)
downloadguix-patches-4354a490f50d740b0b7e86e5b3dea4fe9f816ae4.tar
guix-patches-4354a490f50d740b0b7e86e5b3dea4fe9f816ae4.tar.gz
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'.
-rw-r--r--gnu/packages/ruby.scm8
1 files changed, 8 insertions, 0 deletions
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 @@ 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