gnu: kiwix-desktop: Update to 2.2.2.
* gnu/packages/web.scm (kiwix-desktop): Update to 2.2.2. [arguments]: Delete enable-print-support and substitute-source phases. Use search-input-file. Do not return #t from phases. [native-inputs]: Remove labels.
This commit is contained in:
parent
ff564de64c
commit
93d8523487
1 changed files with 7 additions and 21 deletions
|
@ -8032,7 +8032,7 @@ It contains the code shared by all Kiwix ports.")
|
||||||
(define-public kiwix-desktop
|
(define-public kiwix-desktop
|
||||||
(package
|
(package
|
||||||
(name "kiwix-desktop")
|
(name "kiwix-desktop")
|
||||||
(version "2.0.5")
|
(version "2.2.2")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append
|
(uri (string-append
|
||||||
|
@ -8041,7 +8041,7 @@ It contains the code shared by all Kiwix ports.")
|
||||||
".tar.gz"))
|
".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1a9h4qmh6fkfscyp6lax0ri07dvvzw2wp4kr1sm86n0bdk3cwwha"))))
|
"0ani12d91azcwwys499848ws7rx0m7c23nalcm5fanjak76bg6n6"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
|
@ -8051,28 +8051,14 @@ It contains the code shared by all Kiwix ports.")
|
||||||
(invoke "qmake"
|
(invoke "qmake"
|
||||||
(string-append "PREFIX="
|
(string-append "PREFIX="
|
||||||
(assoc-ref outputs "out")))))
|
(assoc-ref outputs "out")))))
|
||||||
(add-before 'configure 'enable-print-support
|
|
||||||
(lambda _
|
|
||||||
(substitute* "kiwix-desktop.pro"
|
|
||||||
(("webenginewidgets") "webenginewidgets printsupport"))
|
|
||||||
#t))
|
|
||||||
(add-before 'configure 'substitute-source
|
|
||||||
;; Looks like .pro file is missing a feature.
|
|
||||||
;; See https://github.com/kiwix/kiwix-desktop/issues/556.
|
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
|
||||||
(substitute* "kiwix-desktop.pro"
|
|
||||||
(("webenginewidgets" all) (string-append all " printsupport")))
|
|
||||||
#t))
|
|
||||||
(add-after 'install 'wrap-qt-process-path
|
(add-after 'install 'wrap-qt-process-path
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(bin (string-append out "/bin/kiwix-desktop"))
|
(bin (string-append out "/bin/kiwix-desktop"))
|
||||||
(qt-process-path (string-append
|
(qt-process-path (search-input-file
|
||||||
(assoc-ref inputs "qtwebengine-5")
|
inputs "/lib/qt5/libexec/QtWebEngineProcess")))
|
||||||
"/lib/qt5/libexec/QtWebEngineProcess")))
|
|
||||||
(wrap-program bin
|
(wrap-program bin
|
||||||
`("QTWEBENGINEPROCESS_PATH" = (,qt-process-path)))
|
`("QTWEBENGINEPROCESS_PATH" = (,qt-process-path)))))))))
|
||||||
#t))))))
|
|
||||||
(inputs
|
(inputs
|
||||||
(list curl
|
(list curl
|
||||||
icu4c
|
icu4c
|
||||||
|
@ -8088,8 +8074,8 @@ It contains the code shared by all Kiwix ports.")
|
||||||
zlib
|
zlib
|
||||||
`(,zstd "lib")))
|
`(,zstd "lib")))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)
|
(list pkg-config
|
||||||
("qmake" ,qtbase-5)))
|
qtbase-5))
|
||||||
(home-page "https://wiki.kiwix.org/wiki/Software")
|
(home-page "https://wiki.kiwix.org/wiki/Software")
|
||||||
(synopsis "Viewer and manager of ZIM files")
|
(synopsis "Viewer and manager of ZIM files")
|
||||||
(description "Kiwix Desktop allows you to enjoy a lot of different content
|
(description "Kiwix Desktop allows you to enjoy a lot of different content
|
||||||
|
|
Reference in a new issue