From 426ef5b46f0e826ceb26a2e20d64ecf39cbf7562 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sun, 27 Nov 2022 17:39:52 +0100 Subject: gnu: libreoffice: Update to 7.3.5.2. * gnu/packages/libreoffice.scm (libreoffice): Update to 7.3.5.2. [arguments]: Override DRAGONBOX_CFLAGS; set CPPFLAGS to force c++17 during the configure phase. [inputs]: Add dragonbox-for-libreoffice, libfixmath, libtiff, and libwebp. * gnu/packages/hunspell.scm (hunspell-dictionary): Update hash. --- gnu/packages/hunspell.scm | 2 +- gnu/packages/libreoffice.scm | 18 ++++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/gnu/packages/hunspell.scm b/gnu/packages/hunspell.scm index 65ff90b4b9..48df196e17 100644 --- a/gnu/packages/hunspell.scm +++ b/gnu/packages/hunspell.scm @@ -46,7 +46,7 @@ (define* (hunspell-dictionary dict-name full-name #:key synopsis home-page licen (string-append "libreoffice-" version)))) (file-name (git-file-name "libreoffice-dictionaries" version)) (sha256 - (base32 "1qyn56kcn2scdlssjgi5b33hnsh20mmnd60w78z0gp7bs0mv0wcs")))) + (base32 "115p29ywyn7ncq664gxmcrrz55v23s34asd2hmrg4ahjp7ycrnmy")))) (build-system trivial-build-system) (native-inputs `(("source" ,source))) diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index de3c4aa050..530396213a 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -67,6 +67,7 @@ (define-module (gnu packages libreoffice) #:use-module (gnu packages gnome) #:use-module (gnu packages gperf) #:use-module (gnu packages gnupg) + #:use-module (gnu packages graphics) #:use-module (gnu packages gstreamer) #:use-module (gnu packages gtk) #:use-module (gnu packages icu4c) @@ -1145,7 +1146,7 @@ (define dtoa (define-public libreoffice (package (name "libreoffice") - (version "7.3.5.2") + (version "7.4.3.2") (source (origin (method url-fetch) @@ -1154,7 +1155,7 @@ (define-public libreoffice "https://download.documentfoundation.org/libreoffice/src/" (version-prefix version 3) "/libreoffice-" version ".tar.xz")) (sha256 - (base32 "14g9873x8m5yakpq7v9f7lhc5fkxh6yhjhgh0pm30cqmxsqhsglv")))) + (base32 "0fyvd4ydh72lmn005h190xa563d4h376pi1fx9lfr5i25qcbpg7z")))) (build-system glib-or-gtk-build-system) (arguments (list @@ -1187,13 +1188,18 @@ (define-public libreoffice (("GPGMEPP_CFLAGS=-I/usr/include/gpgme\\+\\+") (string-append "GPGMEPP_CFLAGS=-I" (search-input-directory inputs - "include/gpgme++")))) + "include/gpgme++"))) + (("DRAGONBOX_CFLAGS=-I/usr/include/dragonbox-1.0.0") + (string-append "DRAGONBOX_CFLAGS=-I" + (search-input-directory inputs + "include/dragonbox-1.0.0")))) ;; /usr/bin/xdg-open doesn't exist on Guix System. (substitute* '("shell/source/unix/exec/shellexec.cxx" "shell/source/unix/misc/senddoc.sh") (("/usr/bin/xdg-open") - (search-input-file inputs "/bin/xdg-open"))))) + (search-input-file inputs "/bin/xdg-open"))) + (setenv "CPPFLAGS" "-std=c++17"))) (add-after 'install 'reset-zip-timestamps (lambda _ (for-each (lambda (file) @@ -1295,6 +1301,7 @@ (define (install-appdata app) clucene cups dbus-glib + dragonbox-for-libreoffice firebird fontconfig fontforge @@ -1315,6 +1322,7 @@ (define (install-appdata app) libcdr libcmis libcuckoo + libfixmath libjpeg-turbo libe-book libepubgen @@ -1331,7 +1339,9 @@ (define (install-appdata app) libpagemaker libqxp libstaroffice + libtiff libvisio + libwebp libwpg libwps libxrandr -- cgit v1.2.3