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