Commit | Line | Data |
---|---|---|
d1a5b200 | 1 | ;;; GNU Guix --- Functional package management for GNU |
198f560f | 2 | ;;; Copyright © 2013, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> |
d1a5b200 AK |
3 | ;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net> |
4 | ;;; Copyright © 2015, 2016 Alex Kost <alezost@gmail.com> | |
0e773da0 | 5 | ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il> |
f7e9f1ca | 6 | ;;; Copyright © 2017 Alex Griffin <a@ajgrf.com> |
47956fa0 | 7 | ;;; Copyright © 2017 ng0 <ng0@n0.is> |
ed3a9ec5 | 8 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> |
4ee81d37 | 9 | ;;; Copyright © 2017 nee <nee-git@hidamari.blue> |
51a8fc8b | 10 | ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr> |
027f97b1 | 11 | ;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net> |
87036462 | 12 | ;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr> |
52bb05c7 | 13 | ;;; Copyright © 2019 Guy Fleury Iteriteka <hoonandon@gmail.com> |
9943d238 | 14 | ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com> |
eb55f018 | 15 | ;;; |
d1a5b200 AK |
16 | ;;; This file is part of GNU Guix. |
17 | ;;; | |
eb55f018 EF |
18 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
19 | ;;; under the terms of the GNU General Public License as published by | |
20 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
21 | ;;; your option) any later version. | |
22 | ;;; | |
23 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
24 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
25 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
26 | ;;; GNU General Public License for more details. | |
27 | ;;; | |
28 | ;;; You should have received a copy of the GNU General Public License | |
29 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
30 | ||
31 | (define-module (gnu packages image-viewers) | |
32 | #:use-module ((guix licenses) #:prefix license:) | |
33 | #:use-module (guix download) | |
92f08e14 | 34 | #:use-module (guix git-download) |
eb55f018 EF |
35 | #:use-module (guix packages) |
36 | #:use-module (guix build-system gnu) | |
9016dbc2 | 37 | #:use-module (guix build-system cmake) |
307cdd66 | 38 | #:use-module (guix build-system meson) |
4ee81d37 | 39 | #:use-module (guix build-system python) |
eb55f018 | 40 | #:use-module (gnu packages autotools) |
e79bfa18 | 41 | #:use-module (gnu packages algebra) |
e79bfa18 LC |
42 | #:use-module (gnu packages boost) |
43 | #:use-module (gnu packages compression) | |
d1a5b200 | 44 | #:use-module (gnu packages curl) |
6c162d0e | 45 | #:use-module (gnu packages fontutils) |
307cdd66 | 46 | #:use-module (gnu packages gettext) |
d1a5b200 | 47 | #:use-module (gnu packages ghostscript) |
eb55f018 EF |
48 | #:use-module (gnu packages glib) |
49 | #:use-module (gnu packages gnome) | |
50 | #:use-module (gnu packages gtk) | |
e79bfa18 | 51 | #:use-module (gnu packages graphics) |
023f0fb0 | 52 | #:use-module (gnu packages image) |
9016dbc2 | 53 | #:use-module (gnu packages imagemagick) |
e79bfa18 | 54 | #:use-module (gnu packages maths) |
83a7a88f | 55 | #:use-module (gnu packages perl) |
5ccde207 | 56 | #:use-module (gnu packages perl-check) |
d1a5b200 AK |
57 | #:use-module (gnu packages photo) |
58 | #:use-module (gnu packages pkg-config) | |
4ee81d37 | 59 | #:use-module (gnu packages python) |
44d10b1f | 60 | #:use-module (gnu packages python-xyz) |
e79bfa18 LC |
61 | #:use-module (gnu packages qt) |
62 | #:use-module (gnu packages xorg) | |
63 | #:use-module (gnu packages)) | |
d1a5b200 AK |
64 | |
65 | (define-public feh | |
66 | (package | |
67 | (name "feh") | |
63e8df38 | 68 | (version "3.3") |
d1a5b200 AK |
69 | (home-page "https://feh.finalrewind.org/") |
70 | (source (origin | |
71 | (method url-fetch) | |
72 | (uri (string-append home-page | |
73 | name "-" version ".tar.bz2")) | |
74 | (sha256 | |
75 | (base32 | |
63e8df38 | 76 | "04c8cgwzkax481sz7lbzy23mk79bqmjy3qpvr7vxa4c14mc9k5gk")))) |
d1a5b200 AK |
77 | (build-system gnu-build-system) |
78 | (arguments | |
dc1d3cde | 79 | '(#:phases (modify-phases %standard-phases (delete 'configure)) |
83a7a88f | 80 | #:test-target "test" |
dc1d3cde | 81 | #:make-flags |
0de33cb3 LF |
82 | (list "CC=gcc" (string-append "PREFIX=" (assoc-ref %outputs "out")) |
83 | "exif=1"))) | |
83a7a88f MB |
84 | (native-inputs |
85 | `(("perl" ,perl) | |
86 | ("perl-test-command" ,perl-test-command))) | |
d1a5b200 AK |
87 | (inputs `(("imlib2" ,imlib2) |
88 | ("curl" ,curl) | |
0de33cb3 | 89 | ("libexif" ,libexif) |
d1a5b200 AK |
90 | ("libpng" ,libpng) |
91 | ("libxt" ,libxt) | |
92 | ("libx11" ,libx11) | |
93 | ("libxinerama" ,libxinerama))) | |
3c41b992 MB |
94 | (native-search-paths |
95 | ;; Feh allows overriding the libcurl builtin CA path (unset in Guix) | |
96 | ;; with the same variable as the `curl` command line HTTP tool. | |
dc138d6d | 97 | (package-native-search-paths curl)) |
d1a5b200 AK |
98 | (synopsis "Fast and light imlib2-based image viewer") |
99 | (description | |
100 | "feh is an X11 image viewer aimed mostly at console users. | |
101 | Unlike most other viewers, it does not have a fancy GUI, but simply | |
102 | displays images. It can also be used to set the desktop wallpaper. | |
103 | It is controlled via commandline arguments and configurable key/mouse | |
104 | actions.") | |
105 | ||
106 | ;; The license is really the Expat license, with additional wording in the | |
107 | ;; 2nd paragraph: "acknowledgment shall be given in the documentation and | |
108 | ;; software packages that this Software was used." | |
109 | (license (license:x11-style | |
110 | "file://COPYING" | |
111 | "See 'COPYING' in the distribution.")))) | |
112 | ||
113 | (define-public geeqie | |
9156396f LC |
114 | ;; The latest release, 1.4, fails to build with Exiv2 0.27.1. The upstream |
115 | ;; repo has several fixes for that, so take a snapshot. | |
116 | (let ((commit "c220ddefb1b6b11b54f7598f0d44dd0723325ed4") | |
117 | (revision "1")) | |
118 | (package | |
119 | (name "geeqie") | |
120 | (version (git-version "1.4" revision commit)) | |
121 | (source (origin | |
122 | (method git-fetch) | |
123 | (uri (git-reference | |
124 | (url "https://github.com/BestImageViewer/geeqie") | |
125 | (commit commit))) | |
126 | (sha256 | |
127 | (base32 | |
128 | "07424nzrnwbksgalgg1a6ig2snd986w79kca1cfnv1q9kc7x2h3x")) | |
129 | (file-name (git-file-name name version)))) | |
130 | (build-system gnu-build-system) | |
131 | (arguments | |
132 | `( ;; Enable support for a "map" pane using GPS data. | |
133 | #:configure-flags '("--enable-map") | |
048175e2 | 134 | |
198f560f LC |
135 | ;; Parallel builds fail with something like: |
136 | ;; image-load.c:143:9: error: ‘gq_marshal_VOID__INT_INT_INT_INT’ undeclared | |
137 | ;; due to unexpressed makefile dependencies. | |
138 | #:parallel-build? #f | |
139 | ||
9156396f LC |
140 | #:phases |
141 | (modify-phases %standard-phases | |
142 | (add-before 'bootstrap 'pre-bootstrap | |
143 | (lambda _ | |
144 | (define (write-dummy-changelog port) | |
145 | (display "See Git history for a change log.\n" port)) | |
146 | ;; Create ChangeLog{,.html} to placate the makefile, which would | |
147 | ;; otherwise require access to the Git repo. | |
148 | (call-with-output-file "ChangeLog" | |
149 | write-dummy-changelog) | |
150 | (call-with-output-file "ChangeLog.html" | |
151 | write-dummy-changelog) | |
152 | (setenv "NOCONFIGURE" "true") | |
153 | ||
154 | ;; Don't try to run 'git' for the version number. | |
155 | (substitute* "configure.ac" | |
156 | (("m4_esyscmd_s\\([^)]+\\)") | |
157 | (string-append "[" ,version "]"))) | |
158 | ||
159 | ;; Remove references to non-existent files. | |
160 | (substitute* "po/POTFILES.in" | |
161 | (("^plugins/import/.*") "")) | |
162 | #t))))) | |
163 | (inputs | |
164 | `(("clutter" ,clutter) | |
165 | ("libchamplain" ,libchamplain) | |
166 | ("lcms" ,lcms) | |
167 | ("exiv2" ,exiv2) | |
168 | ("libpng" ,libpng) | |
169 | ("gtk+" ,gtk+))) | |
170 | (native-inputs | |
171 | `(("autoconf" ,autoconf) | |
172 | ("automake" ,automake) | |
173 | ("glib" ,glib "bin") ; glib-gettextize | |
174 | ("intltool" ,intltool) | |
175 | ("pkg-config" ,pkg-config))) | |
176 | (home-page "http://www.geeqie.org/") | |
177 | (synopsis "Lightweight GTK+ based image viewer") | |
178 | (description | |
179 | "Geeqie is a lightweight GTK+ based image viewer for Unix like operating | |
d1a5b200 AK |
180 | systems. It features: EXIF, IPTC and XMP metadata browsing and editing |
181 | interoperability; easy integration with other software; geeqie works on files | |
182 | and directories, there is no need to import images; fast preview for many raw | |
183 | image formats; tools for image comparison, sorting and managing photo | |
184 | collection. Geeqie was initially based on GQview.") | |
9156396f | 185 | (license license:gpl2+)))) |
d1a5b200 | 186 | |
ed3a9ec5 MO |
187 | (define-public gpicview |
188 | (package | |
189 | (name "gpicview") | |
190 | (version "0.2.5") | |
191 | (source (origin | |
192 | (method url-fetch) | |
193 | (uri (string-append "mirror://sourceforge/lxde/" | |
194 | "GPicView%20%28image%20Viewer%29/0.2.x/" | |
195 | name "-" version ".tar.xz")) | |
196 | (sha256 | |
197 | (base32 | |
198 | "0hi9v0rdx47nys0wvm9xasdrafa34r5kq6crb074a0ipwmc60iiq")))) | |
199 | (build-system gnu-build-system) | |
200 | (inputs `(("gtk+" ,gtk+-2) | |
201 | ("libjpeg" ,libjpeg))) | |
202 | (native-inputs `(("intltool" ,intltool) | |
203 | ("pkg-config" ,pkg-config))) | |
204 | (synopsis "Simple and fast image viewer for X") | |
205 | (description "gpicview is a lightweight GTK+ 2.x based image viewer. | |
206 | It is the default image viewer on LXDE desktop environment.") | |
207 | (home-page "http://lxde.sourceforge.net/gpicview/") | |
208 | (license license:gpl2+))) | |
209 | ||
d1a5b200 AK |
210 | (define-public sxiv |
211 | (package | |
212 | (name "sxiv") | |
56d2007e | 213 | (version "25") |
d1a5b200 | 214 | (source (origin |
92f08e14 RW |
215 | (method git-fetch) |
216 | (uri (git-reference | |
217 | (url "https://github.com/muennich/sxiv.git") | |
218 | (commit (string-append "v" version)))) | |
219 | (file-name (git-file-name name version)) | |
d1a5b200 AK |
220 | (sha256 |
221 | (base32 | |
56d2007e | 222 | "13s1lfar142hq1j7xld0ri616p4bqs57b17yr4d0b9a9w7liz4hp")))) |
d1a5b200 AK |
223 | (build-system gnu-build-system) |
224 | (arguments | |
6c162d0e TGR |
225 | `(#:tests? #f ; no check target |
226 | #:make-flags | |
227 | (list (string-append "PREFIX=" %output) | |
228 | "CC=gcc" | |
229 | ;; Xft.h #includes <ft2build.h> (without ‘freetype2/’). The sxiv | |
230 | ;; Makefile works around this by hard-coding /usr/include instead. | |
56d2007e | 231 | (string-append "CPPFLAGS=-I" |
6c162d0e TGR |
232 | (assoc-ref %build-inputs "freetype") |
233 | "/include/freetype2") | |
234 | "V=1") | |
235 | #:phases | |
236 | (modify-phases %standard-phases | |
237 | (delete 'configure)))) ; no configure script | |
d1a5b200 | 238 | (inputs |
6c162d0e | 239 | `(("freetype" ,freetype) |
d1a5b200 | 240 | ("giflib" ,giflib) |
6c162d0e TGR |
241 | ("imlib2" ,imlib2) |
242 | ("libexif" ,libexif) | |
243 | ("libx11" ,libx11) | |
244 | ("libxft" ,libxft))) | |
d1a5b200 AK |
245 | (home-page "https://github.com/muennich/sxiv") |
246 | (synopsis "Simple X Image Viewer") | |
247 | (description | |
248 | "sxiv is an alternative to feh and qiv. Its primary goal is to | |
249 | provide the most basic features required for fast image viewing. It has | |
250 | vi key bindings and works nicely with tiling window managers. Its code | |
251 | base should be kept small and clean to make it easy for you to dig into | |
252 | it and customize it for your needs.") | |
253 | (license license:gpl2+))) | |
eb55f018 EF |
254 | |
255 | (define-public viewnior | |
256 | (package | |
257 | (name "viewnior") | |
307cdd66 | 258 | (version "1.7") |
eb55f018 EF |
259 | (source |
260 | (origin | |
83541fb6 EF |
261 | (method git-fetch) |
262 | (uri (git-reference | |
263 | (url "https://github.com/hellosiyan/Viewnior.git") | |
264 | (commit (string-append name "-" version)))) | |
265 | (file-name (git-file-name name version)) | |
eb55f018 EF |
266 | (sha256 |
267 | (base32 | |
83541fb6 | 268 | "0y4hk3vq8psba5k615w18qj0kbdfp5w0lm98nv5apy6hmcpwfyig")))) |
307cdd66 | 269 | (build-system meson-build-system) |
eb55f018 EF |
270 | (arguments |
271 | '(#:phases | |
272 | (modify-phases %standard-phases | |
307cdd66 | 273 | (add-after 'unpack 'patch-source |
ea77385c EF |
274 | (lambda _ |
275 | ;; Don't create 'icon-theme.cache' | |
307cdd66 EF |
276 | (substitute* "meson.build" |
277 | (("meson.add_install_script*") "")) | |
278 | #t))) | |
279 | #:tests? #f)) ; no tests | |
eb55f018 | 280 | (native-inputs |
307cdd66 | 281 | `(("gettext" ,gettext-minimal) |
eb55f018 | 282 | ("glib" ,glib "bin") ; glib-genmarshal |
eb55f018 | 283 | ("pkg-config" ,pkg-config) |
307cdd66 | 284 | ("shared-mime-info" ,shared-mime-info))) |
eb55f018 EF |
285 | (inputs |
286 | `(("exiv2" ,exiv2) | |
287 | ("gdk-pixbuf" ,gdk-pixbuf) | |
288 | ("gtk+-2" ,gtk+-2))) | |
307cdd66 | 289 | (home-page "http://siyanpanayotov.com/project/viewnior") |
eb55f018 EF |
290 | (synopsis "Simple, fast and elegant image viewer") |
291 | (description "Viewnior is an image viewer program. Created to be simple, | |
292 | fast and elegant. Its minimalistic interface provides more screenspace for | |
293 | your images. Among its features are: | |
294 | @enumerate | |
295 | @item Fullscreen & Slideshow | |
296 | @item Rotate, flip, crop, save, delete images | |
297 | @item Animation support | |
298 | @item Browse only selected images | |
299 | @item Navigation window | |
300 | @item Set image as wallpaper (Gnome 2, Gnome 3, XFCE, LXDE, FluxBox, Nitrogen) | |
301 | @item Simple interface | |
302 | @item EXIF and IPTC metadata | |
303 | @item Configurable mouse actions | |
304 | @end enumerate\n") | |
305 | (license license:gpl3+))) | |
9016dbc2 | 306 | |
307 | (define-public catimg | |
308 | (package | |
309 | (name "catimg") | |
0e773da0 | 310 | (version "2.6.0") |
9016dbc2 | 311 | (source |
312 | (origin | |
6f6f9267 RW |
313 | (method git-fetch) |
314 | (uri (git-reference | |
315 | (url "https://github.com/posva/catimg.git") | |
cdee738e | 316 | (commit version))) |
6f6f9267 | 317 | (file-name (git-file-name name version)) |
9016dbc2 | 318 | (sha256 |
0e773da0 | 319 | (base32 "0g9ywbgy162wiam9hc3yqpq5q4gyxa8fj4jskr3fdz8z8jjaabzz")))) |
9016dbc2 | 320 | (build-system cmake-build-system) |
321 | (arguments | |
1e5c056c | 322 | `(#:tests? #f ; no tests |
9016dbc2 | 323 | #:phases |
324 | (modify-phases %standard-phases | |
e2f47efe | 325 | (add-after 'unpack 'patch-convert |
9016dbc2 | 326 | (lambda _ |
e2f47efe RW |
327 | (substitute* "catimg" |
328 | ;; By replacing "convert", we also replace the "convert" | |
329 | ;; in the message 'The version of convert is too old, don't | |
330 | ;; expect good results :('. This should not happen, but in | |
331 | ;; practice this error message should not affect us. | |
332 | (("convert") (which "convert"))) | |
333 | #t)) | |
334 | (add-after 'install 'install-script | |
9016dbc2 | 335 | (lambda* (#:key outputs #:allow-other-keys) |
1e5c056c | 336 | ;; The bash script lacks an file extension. We have to rename |
9016dbc2 | 337 | ;; it so that the C program and the bash script can be happy |
338 | ;; side by side. | |
e2f47efe RW |
339 | (copy-file "../source/catimg" |
340 | (string-append (assoc-ref outputs "out") | |
341 | "/bin/catimg.sh")) | |
342 | #t))))) | |
9016dbc2 | 343 | (inputs |
1e5c056c | 344 | `(("imagemagick" ,imagemagick))) ; for the bash script version |
9016dbc2 | 345 | (home-page "https://github.com/posva/catimg") |
346 | (synopsis "Render images in the terminal") | |
347 | (description | |
348 | "Catimg is a little program that prints images in the terminal. | |
349 | It supports JPEG, PNG and GIF formats.") | |
350 | (license license:expat))) | |
e79bfa18 LC |
351 | |
352 | (define-public luminance-hdr | |
353 | (package | |
354 | (name "luminance-hdr") | |
355 | (version "2.4.0") | |
356 | (source (origin | |
357 | (method url-fetch) | |
358 | (uri (string-append | |
359 | "mirror://sourceforge/qtpfsgui/luminance/" | |
360 | version "/luminance-hdr-" version ".tar.bz2")) | |
361 | (sha256 | |
362 | (base32 | |
363 | "00fldbcizrx8jcnjgq74n3zmbm27dxzl96fxa7q49689mfnlw08l")) | |
364 | (patches (search-patches "luminance-hdr-qt-printer.patch")))) | |
365 | (build-system cmake-build-system) | |
366 | (native-inputs | |
367 | `(("pkg-config" ,pkg-config) | |
368 | ("qttools" ,qttools))) | |
369 | (inputs | |
370 | `(("qtbase" ,qtbase) | |
371 | ("qtdeclarative" ,qtdeclarative) | |
372 | ("qtwebkit" ,qtwebkit) | |
373 | ("boost" ,boost) | |
374 | ;; ("gtest" ,gtest) | |
375 | ("libraw" ,libraw) | |
376 | ("zlib" ,zlib) | |
377 | ("exiv2" ,exiv2) | |
378 | ("libpng" ,libpng) | |
379 | ("libjpeg" ,libjpeg) | |
380 | ("lcms" ,lcms) | |
381 | ("openexr" ,openexr) | |
382 | ("fftw" ,fftwf) | |
383 | ("gsl" ,gsl) | |
384 | ("libtiff" ,libtiff))) | |
385 | (arguments | |
386 | '(#:phases | |
387 | (modify-phases %standard-phases | |
388 | (add-after 'set-paths 'add-ilmbase-include-path | |
389 | (lambda* (#:key inputs #:allow-other-keys) | |
390 | ;; 'OpenEXR.pc' has a -I for IlmBase but 'FindOpenEXR.cmake' does | |
391 | ;; not use 'OpenEXR.pc'. Thus, we need to add | |
392 | ;; "$ilmbase/include/OpenEXR/" to the CPATH. | |
393 | (setenv "CPATH" | |
394 | (string-append (assoc-ref inputs "ilmbase") | |
395 | "/include/OpenEXR" | |
396 | ":" (or (getenv "CPATH") ""))) | |
397 | #t))))) | |
398 | (home-page "http://qtpfsgui.sourceforge.net") | |
399 | (synopsis "High dynamic range (HDR) imaging application") | |
400 | (description | |
401 | "Luminance HDR (formerly QtPFSGui) is a graphical user interface | |
402 | application that aims to provide a workflow for high dynamic range (HDR) | |
403 | imaging. It supports several HDR and LDR image formats, and it can: | |
404 | ||
405 | @itemize | |
406 | @item Create an HDR file from a set of images (formats: JPEG, TIFF 8bit and | |
407 | 16bit, RAW) of the same scene taken at different exposure setting; | |
408 | @item Save load HDR images; | |
409 | @item Rotate, resize and crop HDR images; | |
410 | @item Tone-map HDR images; | |
411 | @item Copy EXIF data between sets of images. | |
412 | @end itemize\n") | |
413 | (license license:gpl2+))) | |
4ee81d37 | 414 | |
415 | ;; CBR and RAR are currently unsupported, due to non-free dependencies. | |
416 | ;; For optional PDF support, you can install the mupdf package. | |
417 | (define-public mcomix | |
418 | (package | |
419 | (name "mcomix") | |
420 | (version "1.2.1") | |
421 | (source | |
422 | (origin | |
423 | (method url-fetch) | |
424 | (uri (string-append "mirror://sourceforge/mcomix/MComix-" version | |
425 | "/mcomix-" version ".tar.bz2")) | |
426 | (sha256 | |
427 | (base32 | |
428 | "0fzsf9pklhfs1rzwzj64c0v30b74nk94p93h371rpg45qnfiahvy")))) | |
429 | (build-system python-build-system) | |
430 | (inputs | |
431 | `(("p7zip" ,p7zip) | |
432 | ("python2-pillow" ,python2-pillow) | |
433 | ("python2-pygtk" ,python2-pygtk))) | |
434 | (arguments | |
435 | ;; Python 2.5 or newer (Python 3 and up is not supported) | |
436 | `(#:python ,python-2 | |
21169e31 | 437 | #:tests? #f ; there are no tests |
4ee81d37 | 438 | #:phases |
439 | (modify-phases %standard-phases | |
440 | (add-after 'unpack 'configure | |
441 | (lambda* (#:key inputs #:allow-other-keys) | |
442 | (let ((p7zip (assoc-ref inputs "p7zip"))) | |
443 | ;; insert absolute path to 7z executable | |
444 | (substitute* "mcomix/archive/sevenzip_external.py" | |
445 | (("_7z_executable = -1") | |
446 | (string-append "_7z_executable = u'" p7zip "/bin/7z'")))) | |
447 | #t))))) | |
448 | (home-page "https://sourceforge.net/p/mcomix/wiki/Home/") | |
449 | (synopsis "Image viewer for comics") | |
450 | (description "MComix is a customizable image viewer that specializes as | |
451 | a comic and manga reader. It supports a variety of container formats | |
452 | including CBZ, CB7, CBT, LHA.") | |
453 | (license license:gpl2+))) | |
87036462 NG |
454 | |
455 | (define-public qview | |
456 | (package | |
457 | (name "qview") | |
458 | (version "2.0") | |
459 | (source (origin | |
460 | (method git-fetch) | |
461 | (uri (git-reference | |
462 | (url "https://github.com/jurplel/qView.git") | |
463 | (commit version))) | |
f1d4d79f | 464 | (file-name (git-file-name name version)) |
87036462 NG |
465 | (sha256 |
466 | (base32 | |
467 | "1s29hz44rb5dwzq8d4i4bfg77dr0v3ywpvidpa6xzg7hnnv3mhi5")))) | |
468 | (build-system gnu-build-system) | |
469 | (arguments | |
470 | `(#:phases | |
471 | (modify-phases %standard-phases | |
472 | (replace 'configure | |
473 | (lambda _ | |
474 | (invoke "qmake"))) | |
475 | ;; Installation process hard-codes "/usr/bin", possibly | |
476 | ;; prefixed. | |
477 | (add-after 'configure 'fix-install-directory | |
478 | (lambda* (#:key outputs #:allow-other-keys) | |
479 | (let ((out (assoc-ref outputs "out"))) | |
480 | (substitute* "Makefile" | |
481 | (("\\$\\(INSTALL_ROOT\\)/usr") out)) | |
482 | #t))) | |
483 | ;; Don't phone home or show "Checking for updates..." in the | |
484 | ;; About menu. | |
485 | (add-before 'build 'disable-auto-update | |
486 | (lambda _ | |
487 | (substitute* "src/qvaboutdialog.cpp" | |
488 | (("ui->updateLabel->setText\\(updateText\\);") "") | |
489 | (("requestUpdates\\(\\);") "")) | |
490 | #t))))) | |
491 | (inputs | |
492 | `(("qtbase" ,qtbase) | |
493 | ("qtsvg" ,qtsvg) | |
494 | ("qtimageformats" ,qtimageformats))) | |
495 | (home-page "https://interversehq.com/qview/") | |
496 | (synopsis "Convenient and minimal image viewer") | |
497 | (description "qView is a Qt image viewer designed with visually | |
498 | minimalism and usability in mind. Its features include animated GIF | |
499 | controls, file history, rotation/mirroring, and multithreaded | |
500 | preloading.") | |
501 | (license license:gpl3+))) | |
52bb05c7 | 502 | |
503 | (define-public chafa | |
504 | (package | |
505 | (name "chafa") | |
29b60130 | 506 | (version "1.2.1") |
52bb05c7 | 507 | (source (origin |
508 | (method url-fetch) | |
509 | (uri (string-append "https://hpjansson.org/chafa/releases/chafa-" | |
510 | version ".tar.xz")) | |
511 | (sha256 | |
512 | (base32 | |
29b60130 | 513 | "1hj4vdyczby8h52ff23qxl8ng18p5jy549idngpiddwszf5s4drz")))) |
52bb05c7 | 514 | (build-system gnu-build-system) |
515 | (native-inputs | |
516 | `(("pkg-config" ,pkg-config))) | |
517 | (inputs | |
518 | `(("glib" ,glib) | |
519 | ("imagemagick" ,imagemagick))) | |
520 | (synopsis "Convert images to ANSI/Unicode characters") | |
521 | (description | |
522 | "Chafa is a command-line utility that converts all kinds of images, | |
523 | including animated GIFs, into ANSI/Unicode character output that can be | |
524 | displayed in a terminal.") | |
525 | (home-page "https://hpjansson.org/chafa/") | |
526 | (license license:lgpl3+))) |