From 9c97342939c0d891295768fb39804fc5f8d954e4 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 20 Nov 2023 09:53:35 +0200 Subject: gnu: librsvg: Honor the #:tests flag. * gnu/packages/gnome.scm (librsvg)[arguments]: Adjust the custom 'check phase to honor the #:tests? flag. Change-Id: I53c2fac1c5625d9b73adf5929e148eb4ecf18b89 --- gnu/packages/gnome.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gnu/packages/gnome.scm') diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 0be935585d..e376929e22 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -3632,9 +3632,10 @@ for dealing with different structured file formats.") (replace 'build (assoc-ref gnu:%standard-phases 'build)) (replace 'check - (lambda* args - ((assoc-ref gnu:%standard-phases 'check) - #:test-target "check"))) + (lambda* (#:key tests? #:allow-other-keys #:rest args) + (when tests? + ((assoc-ref gnu:%standard-phases 'check) + #:test-target "check")))) (replace 'install (assoc-ref gnu:%standard-phases 'install))))) (native-inputs (list `(,glib "bin") gobject-introspection pkg-config vala)) -- cgit 1.4.1 From fc5677a018d0c075dce8e566bf50cc0f084ff5e9 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 20 Nov 2023 09:55:51 +0200 Subject: gnu: librsvg: Remove htmldir configure flag. * gnu/packages/gnome.scm (librsvg)[arguments]: Update configure-flags to remove the htmldir directory option. Change-Id: Ia8a0d73d00edf899eac8c9e12071b92c0eef5258 --- gnu/packages/gnome.scm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gnu/packages/gnome.scm') diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index e376929e22..1a746b066a 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -3620,9 +3620,7 @@ for dealing with different structured file formats.") (apply (assoc-ref gnu:%standard-phases 'configure) #:configure-flags (list "--disable-static" - "--enable-vala" - (string-append "--with-html-dir=" #$output - "/share/gtk-doc/html")) + "--enable-vala") args))) (add-after 'configure 'dont-vendor-self (lambda* (#:key vendor-dir #:allow-other-keys) -- cgit 1.4.1 From a90043cfe8db47b916913f9fa2a8e768587ac9a2 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 20 Nov 2023 11:42:29 +0200 Subject: gnu: librsvg: Enable cross compiling. * gnu/packages/gnome.scm (librsvg)[arguments]: Use this-package-input to find gdk-pixbuf in 'patch-gdk-pixbuf-thumbnailer phase. Adjust 'prepare-for-build phase to set PKG_CONFIG and RUST_TARGET when needed. Adjust configure-flags when cross-compiling. [native-inputs]: Add gdk-pixbuf. [inputs]: Add gobject-introspection. Change-Id: I977c48957a6f50a777b52ea59c0d1f8bd6edcc1b --- gnu/packages/gnome.scm | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'gnu/packages/gnome.scm') diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 1a746b066a..bd37b43901 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -3583,11 +3583,19 @@ for dealing with different structured file formats.") ;; https://gitlab.gnome.org/GNOME/librsvg/-/issues/955). (substitute* "gdk-pixbuf-loader/librsvg.thumbnailer.in" (("@bindir@/gdk-pixbuf-thumbnailer") - (search-input-file inputs "bin/gdk-pixbuf-thumbnailer"))))) + (string-append #$(this-package-input "gdk-pixbuf") + "/bin/gdk-pixbuf-thumbnailer"))))) (add-after 'unpack 'prepare-for-build (lambda _ ;; In lieu of #:make-flags (setenv "CC" #$(cc-for-target)) + (setenv "PKG_CONFIG" #$(pkg-config-for-target)) + (when #$(%current-target-system) + (setenv "RUST_TARGET" + (string-replace + #$(%current-target-system) + "-unknown-linux-gnu" + (string-index #$(%current-target-system) #\-)))) ;; Something about the build environment resists building ;; successfully with the '--locked' flag. (substitute* '("Makefile.am" "Makefile.in") @@ -3620,7 +3628,18 @@ for dealing with different structured file formats.") (apply (assoc-ref gnu:%standard-phases 'configure) #:configure-flags (list "--disable-static" - "--enable-vala") + #$@(if (%current-target-system) + #~(;; g-ir-scanner can't import its modules + ;; and vala currently can't be cross-compiled. + "--enable-introspection=no" + "--enable-vala=no" + ;; These two are necessary for cross-compiling. + (string-append + "--build=" #$(nix-system->gnu-triplet + (%current-system))) + (string-append + "--host=" #$(%current-target-system))) + #~("--enable-vala"))) args))) (add-after 'configure 'dont-vendor-self (lambda* (#:key vendor-dir #:allow-other-keys) @@ -3636,8 +3655,8 @@ for dealing with different structured file formats.") #:test-target "check")))) (replace 'install (assoc-ref gnu:%standard-phases 'install))))) - (native-inputs (list `(,glib "bin") gobject-introspection pkg-config vala)) - (inputs (list freetype harfbuzz libxml2 pango)) + (native-inputs (list gdk-pixbuf `(,glib "bin") gobject-introspection pkg-config vala)) + (inputs (list freetype gobject-introspection harfbuzz libxml2 pango)) (propagated-inputs (list cairo gdk-pixbuf glib)) (synopsis "SVG rendering library") (description "Librsvg is a library to render SVG images to Cairo surfaces. -- cgit 1.4.1 From 90cb402fbb752f7f39ef0de7d55ff80b4c056434 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 15 Dec 2023 13:50:51 +0100 Subject: gnu: Add libxml++-3. * gnu/packages/gnome.scm (libxml++-3): New variable. Change-Id: I2250766126f433b3f5dcc50cd7eaadec3acadad3 --- gnu/packages/gnome.scm | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'gnu/packages/gnome.scm') diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index f57579d0c9..69698cf4fc 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -8768,8 +8768,25 @@ the available networks and allows users to easily switch between them.") library.") (license license:lgpl2.1+))) -;; This is the last release providing the 2.6 API, hence the name. ;; This is needed by tascam-gtk +(define-public libxml++-3 + (package + (inherit libxml++) + (name "libxml++") + (version "3.2.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libxmlplusplus/libxmlplusplus") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "07f6l9ka63dnc85npxq5g7bn1ja7lad0w2wixqdlyabdvc4l2hp5")))) + (propagated-inputs (modify-inputs (package-propagated-inputs libxml++) + (append glibmm-2.64))))) + +;; This is the last release providing the 2.6 API, hence the name. (define-public libxml++-2 (package (inherit libxml++) -- cgit 1.4.1