From baf12f8e152acd4304b0b8aa31c5656a778daa2d Mon Sep 17 00:00:00 2001 From: Ashvith Shetty Date: Sat, 28 Dec 2024 17:23:01 +0530 Subject: [PATCH] gnu: tumbler: Switch to git source. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/xfce.scm (tumbler)[source]: Switch to git-fetch. [home-page]: Set to docs.xfce.org. [native-inputs]: Add xfce4-dev-tools. Change-Id: I993fda97eeea44c529cc04359f2e2ab36068962c Signed-off-by: 宋文武 --- gnu/packages/xfce.scm | 58 +++++++++++++++++-------------------------- 1 file changed, 23 insertions(+), 35 deletions(-) diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm index 9cdf67b75c..230a2788a9 100644 --- a/gnu/packages/xfce.scm +++ b/gnu/packages/xfce.scm @@ -375,42 +375,30 @@ merging features essential for loading menus modified with menu editors.") (package (name "tumbler") (version "4.20.0") - (source (origin - (method url-fetch) - (uri (string-append "https://archive.xfce.org/src/xfce/" - "tumbler/" (version-major+minor version) "/" - "tumbler-" version ".tar.bz2")) - (sha256 - (base32 - "102qwa8an7wdqf0hrqd5k51aiib3zww0iizsigllfrcjamyn9cbl")))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.xfce.org/xfce/tumbler") + (commit (string-append name "-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "18bp1ckv6mzbxhbk7aqp2mxbni1pw8hv8rzxmc9xx488dxs0qq8s")))) (build-system gnu-build-system) - (arguments - (list #:phases - #~(modify-phases %standard-phases - (add-before 'configure 'patch-configure - (lambda _ - (substitute* "configure" - ;; XDG_CHECK_PACKAGE_BINARY requires an absolute path. - (("\\$PKG_CONFIG --variable=gdbus_codegen gio-2.0") - "type -p gdbus-codegen"))))))) - (native-inputs - (list pkg-config intltool - `(,glib "bin"))) ; need glib-genmarshal and gdbus-codegen - (propagated-inputs - (list glib)) ; required by tumbler-1.pc - (inputs - (list dbus - gdk-pixbuf - cairo ;; Needed for pdf thumbnails (poppler-glibc.pc) - freetype - libjpeg-turbo - libgsf - libxfce4util - poppler - ;; FIXME Provide gstreamer and gstreamer-tag to get video thumbnails - ;; ("gstreamer" ,gstreamer) - )) - (home-page "https://www.xfce.org/") + (native-inputs (list xfce4-dev-tools)) + (propagated-inputs (list glib)) ;required by tumbler-1.pc + (inputs (list dbus + gdk-pixbuf + cairo ;Needed for pdf thumbnails (poppler-glibc.pc) + freetype + libjpeg-turbo + libgsf + libxfce4util + poppler + ;; FIXME Provide gstreamer and gstreamer-tag to get video thumbnails + ;; ("gstreamer" ,gstreamer) + )) + (home-page "https://docs.xfce.org/xfce/tumbler/") (synopsis "D-Bus service for applications to request thumbnails") (description "Tumbler is a D-Bus service for applications to request thumbnails for