summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorSergey Trofimov <sarg@sarg.org.ru>2025-12-29 11:20:33 +0100
committerCayetano Santos <csantosb@inventati.org>2025-12-29 15:19:13 +0100
commit0f78186bf2c922660a4211eb1aa99fb610db0f8a (patch)
tree05c5e24c4790d7a0117582cf0e8d187c14e1057b /gnu/packages
parentea031339ff219dff2b1a69c3a036bc9458194e74 (diff)
gnu: nomacs: Update to 3.22.0.
Note: plugins were moved into the repo, see: https://github.com/nomacs/nomacs/commit/326ce6257865c710464d818ed6a880a0116058be * gnu/packages/image-viewers.scm (nomacs): Update to 3.22.0. [arguments]<#:tests?>: Enable tests. <#:phases>: Remove 'copy-plugins, add custom 'check. [inputs]: Remove plugins, modernize, sort. [native-inputs]: Add googletest, modernize. Change-Id: I9a3a50df2e5984a0dc39cf44ce6549e30ed05ddc Signed-off-by: Cayetano Santos <csantosb@inventati.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/image-viewers.scm51
1 files changed, 18 insertions, 33 deletions
diff --git a/gnu/packages/image-viewers.scm b/gnu/packages/image-viewers.scm
index a5ec57b72d1..1c83078807c 100644
--- a/gnu/packages/image-viewers.scm
+++ b/gnu/packages/image-viewers.scm
@@ -1069,7 +1069,7 @@ archives.")
(define-public nomacs
(package
(name "nomacs")
- (version "3.21.1")
+ (version "3.22.0")
(source
(origin
(method git-fetch)
@@ -1079,7 +1079,7 @@ archives.")
(file-name (git-file-name name version))
(sha256
(base32
- "1by62r1g1clji7g539zyhm5z7h1ssp8pcb6vrm33p2gvz3vba5j5"))))
+ "1ps68xxdqz9r7w5cpicj461x06w0p6r54x1cbk38idl0vlrq65ya"))))
(build-system cmake-build-system)
(arguments
`(#:build-type "Release" ; fails to build with debug info
@@ -1087,40 +1087,25 @@ archives.")
"-DUSE_SYSTEM_QUAZIP=true"
"-DENABLE_QUAZIP=true"
"-DENABLE_OPENCV=true")
- #:tests? #f ; no rule for target 'test'
#:phases
(modify-phases %standard-phases
- (add-after 'unpack 'copy-plugins
- (lambda* (#:key inputs #:allow-other-keys)
- (copy-recursively (assoc-ref inputs "plugins")
- "ImageLounge/plugins")))
- (add-after 'copy-plugins 'cd-to-source-dir
- (lambda _ (chdir "ImageLounge") #t)))))
+ (add-after 'unpack 'cd-to-source-dir
+ (lambda _ (chdir "ImageLounge")))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests? (invoke "make" "check")))))))
(inputs
- `(("plugins"
- ,(origin
- (method git-fetch)
- (uri (git-reference
- ;; The original git repository at
- ;; https://github.com/novomesk/nomacs-plugins
- ;; is not updated any more, use a maintained fork.
- (url "https://github.com/novomesk/nomacs-plugins")
- (commit "20101da282f13d3184ece873388e1c234a79b5e7")))
- (sha256
- (base32
- "0nbrsxhggy15idvm5dlhxh2z14gvki7vljxqi90hw98nmbh5ri41"))))
- ("exiv2" ,exiv2)
- ("libraw" ,libraw)
- ("libtiff" ,libtiff)
- ("opencv" ,opencv)
- ("quazip" ,quazip)
- ("qtimageformats" ,qtimageformats)
- ("qtbase" ,qtbase)
- ("qt5compat" ,qt5compat)
- ("qtsvg" ,qtsvg)))
- (native-inputs
- `(("pkg-config" ,pkg-config)
- ("qttools" ,qttools)))
+ (list
+ exiv2
+ libraw
+ libtiff
+ opencv
+ quazip
+ qt5compat
+ qtbase
+ qtimageformats
+ qtsvg))
+ (native-inputs (list googletest pkg-config qttools))
(synopsis "Image viewer supporting all common formats")
(description "Nomacs is a simple to use image lounge featuring
semi-transparent widgets that display additional information such as metadata,