gnu: Add xffm+.

* gnu/packages/gnome.scm (xffm+): New variable.
This commit is contained in:
Danny Milosavljevic 2022-01-12 22:37:35 +01:00
parent 0052c3b045
commit 68f8dc32d6
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 45 additions and 0 deletions

View File

@ -12737,3 +12737,48 @@ successor of @code{libhandy} for GTK4.")
(description "@code{gnome-power-manager} is a tool for viewing present and
historical battery usage and related statistics.")
(license license:gpl2)))
(define-public xffm+
(package
(name "xffm+")
(version "0.94")
(source (origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/xffm/xffm+/xffm+-"
version ".tar.bz2"))
(sha256
(base32
"0gwbgmjzlgv9ba95cgaigjnc9njzi7qznhvzp0qrnnlq3nbcm1k1"))))
(build-system cmake-build-system)
(arguments
`(#:tests? #f ; No tests exist
#:configure-flags
(let ((shared-mime-info (assoc-ref %build-inputs "shared-mime-info"))
(out (assoc-ref %outputs "out")))
(list (string-append "-DFREEDESKTOP_GLOBS=" shared-mime-info
"/share/mime/globs")
(string-append "-DFREEDESKTOP_ALIAS=" shared-mime-info
"/share/mime/aliases")
(string-append "-DFREEDESKTOP_ICONS=" shared-mime-info
"/share/mime/generic-icons")
(string-append "-DCMAKE_INSTALL_PREFIX=" out)
(string-append "-DPREFIX_BIN=" out "/bin")))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-installation-destination
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "CMakeLists.txt"
;; This is done so we can override.
(("^set.CMAKE_INSTALL_PREFIX") "set(QCMAKE_INSTALL_PREFIX")
;; This is done so we can override.
(("`set.PREFIX_BIN") "set(QPREFIX_BIN")))))))
(native-inputs
(list cmake pkg-config intltool gnu-gettext))
(inputs
(list glib gtk+ libx11 libsm libxv libxaw libxcb libxkbfile
shared-mime-info))
(synopsis "File manager")
(description "This package provides a graphical file manager.")
(home-page "http://xffm.org/")
(license license:gpl3+)
(properties '((upstream-name . "xffm")))))