summaryrefslogtreecommitdiff
path: root/gnu/packages/kde.scm
diff options
context:
space:
mode:
authorZheng Junjie <873216071@qq.com>2020-12-15 17:01:23 +0800
committerLeo Famulari <leo@famulari.name>2020-12-15 15:35:28 -0500
commita387cbab4f64c17713c8e438bf4e70fb54d2d961 (patch)
treea4f3439ae9427218ef976bba03301549e842ea10 /gnu/packages/kde.scm
parenta0c40af447cf57a676c94f52a4326703da04ff91 (diff)
gnu: Add Okular.
* gnu/packages/kde.scm (okular): New variable. Signed-off-by: Leo Famulari <leo@famulari.name>
Diffstat (limited to 'gnu/packages/kde.scm')
-rw-r--r--gnu/packages/kde.scm71
1 files changed, 71 insertions, 0 deletions
diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index 3a15aa6554..2718acac9a 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -47,8 +47,11 @@
#:use-module (gnu packages cpp)
#:use-module (gnu packages compression)
#:use-module (gnu packages curl)
+ #:use-module (gnu packages djvu)
#:use-module (gnu packages documentation)
+ #:use-module (gnu packages ebook)
#:use-module (gnu packages flex)
+ #:use-module (gnu packages fontutils)
#:use-module (gnu packages gettext)
#:use-module (gnu packages ghostscript)
#:use-module (gnu packages gl)
@@ -60,6 +63,7 @@
#:use-module (gnu packages kde-plasma)
#:use-module (gnu packages linux)
#:use-module (gnu packages llvm)
+ #:use-module (gnu packages markup)
#:use-module (gnu packages maths)
#:use-module (gnu packages pdf)
#:use-module (gnu packages perl)
@@ -766,6 +770,73 @@ Python, PHP, and Perl.")
(description "Runtime library for kdegames")
(license (list license:gpl2+ license:fdl1.2+))))
+(define-public okular
+ (package
+ (name "okular")
+ (version "20.12.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "mirror://kde/stable/release-service/" version
+ "/src/" name "-" version ".tar.xz"))
+ (sha256
+ (base32 "1kib8zqfd9qgqn7bz88hay2j3kcvarnlfyr3a417pi6rvaam6b4p"))))
+ (build-system qt-build-system)
+ ;; The tests fail because they can't find the proper mimetype plugins:
+ ;; "org.kde.okular.core: No plugin for mimetype '"image/jpeg"'."
+ ;; The built program seems to work okay, so we skip the tests for now.
+ (arguments
+ `(#:tests? #f
+ #:configure-flags
+ (list "-DBUILD_TESTING=OFF")))
+ (native-inputs
+ `(("extra-cmake-modules" ,extra-cmake-modules)
+ ("kdoctools" ,kdoctools)
+ ("pkg-config" ,pkg-config)))
+ (inputs
+ `(("ebook-tools" ,ebook-tools)
+ ("breeze-icons" ,breeze-icons)
+ ("discount" ,discount)
+ ("djvulibre" ,djvulibre)
+ ("kactivities" ,kactivities)
+ ("khtml" ,khtml)
+ ("chmlib" ,chmlib)
+ ("kdegraphics-mobipocket" ,kdegraphics-mobipocket)
+ ("karchive" ,karchive)
+ ("kbookmarks" ,kbookmarks)
+ ("kcompletion" ,kcompletion)
+ ("kconfig" ,kconfig)
+ ("qtbase" ,qtbase)
+ ("libjpeg-turbo" ,libjpeg-turbo)
+ ("libtiff" ,libtiff)
+ ("kirigami" ,kirigami)
+ ("purpose" ,purpose)
+ ("freetype" ,freetype)
+ ("kiconthemes" ,kiconthemes)
+ ("kio" ,kio)
+ ("kparts" ,kparts)
+ ("kpty" ,kpty)
+ ("qtspeech" ,qtspeech)
+ ("kwallet" ,kwallet)
+ ("kwindowsystem" ,kwindowsystem)
+ ("libkexiv2" ,libkexiv2)
+ ("libspectre" ,libspectre)
+ ("libzip" ,libzip)
+ ("phonon" ,phonon)
+ ("poppler-qt5" ,poppler-qt5)
+ ("qca" ,qca)
+ ("qtdeclarative" ,qtdeclarative)
+ ("qtsvg" ,qtsvg)
+ ("threadweaver" ,threadweaver)
+ ("kcrash" ,kcrash)
+ ("kjs" ,kjs)))
+ (home-page "https://kde.org/applications/graphics/okular/")
+ (synopsis "Document Viewer")
+ (description "Okular is a universal document viewer developed by KDE.
+ Okular works on multiple platforms, including but not limited to
+ Linux, Windows, macOS, *BSD, etc.")
+ (license license:gpl2+)))
+
(define-public kdegraphics-mobipocket
(package
(name "kdegraphics-mobipocket")