Merge branch 'zotero-7.0.9' into 'master'

nongnu: zotero: Update to 7.0.9

See merge request nonguix/nonguix!569
This commit is contained in:
antlers 2025-02-17 01:51:40 +00:00
commit 13c59acb11

View File

@ -1,6 +1,7 @@
;;; SPDX-License-Identifier: GPL-3.0-or-later
;;; Copyright © 2023 Giacomo Leidi <goodoldpaul@autistici.org>
;;; Copyright © 2024 Karl Hallsby <karl@hallsby.com
;;; Copyright © 2024 antlers <antlers@illucid.net>
(define-module (nongnu packages productivity)
#:use-module (gnu packages base)
@ -123,7 +124,7 @@ synchronization.")
(define-public zotero
(package
(name "zotero")
(version "6.0.35")
(version "7.0.9")
(source
(origin
;; Can switch to git-fetch from Github too!
@ -133,16 +134,24 @@ synchronization.")
version "/Zotero-" version "_linux-x86_64.tar.bz2"))
(sha256
(base32
"17f9an43jwnqpcslbvnhg7hrzkvs2whzwg4ysdgy2gl4m6cln18w"))
"047q8d23fjvb1s7l116nvbarbf6myp3srfiwfb93g314n8xarjgn"))
(snippet
#~(begin
(use-modules (guix build utils))
(invoke (string-append #$unzip "/bin/unzip") "app/omni.ja"
"defaults/preferences/zotero.js")
;; Disable Zotero's automatic update feature.
(substitute* "defaults/preferences/prefs.js"
(substitute* "defaults/preferences/zotero.js"
(("pref\\(\"app.update.enabled\", true\\)")
"pref(\"app.update.enabled\", false)")
(("pref\\(\"app.update.auto\", true\\)")
"pref(\"app.update.auto\", false)"))))))
"pref(\"app.update.auto\", false)")
(("pref\\(\"extensions.zoteroOpenOfficeIntegration.skipInstallation\", false\\)")
"pref(\"extensions.zoteroOpenOfficeIntegration.skipInstallation\", true)"))
(invoke (string-append #$zip "/bin/zip") "-mf" "app/omni.ja"
"defaults/preferences/zotero.js")
(rmdir "defaults/preferences")
(rmdir "defaults")))))
(build-system chromium-binary-build-system)
(arguments
(list
@ -191,13 +200,13 @@ synchronization.")
(#f "Collect, organize, cite, and share your research sources")))))
(add-after 'install 'install-icons
(lambda _
(let ((icon-sizes (list 16 32 48 256)))
(let ((icon-sizes (list 32 64 128)))
(for-each
(lambda (size)
(mkdir-p (string-append #$output "/share/icons/hicolor/"
size "x" size "/apps"))
(copy-file
(string-append "chrome/icons/default/default" size ".png")
(string-append "icons/icon" size ".png")
(string-append #$output "/share/icons/hicolor/"
size "x" size "/apps/zotero.png")))
(map number->string icon-sizes))))))))