summaryrefslogtreecommitdiff
path: root/gnu/packages/ebook.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/ebook.scm')
-rw-r--r--gnu/packages/ebook.scm120
1 files changed, 77 insertions, 43 deletions
diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index abb04b6d93..207bbfcdaf 100644
--- a/gnu/packages/ebook.scm
+++ b/gnu/packages/ebook.scm
@@ -9,6 +9,7 @@
;;; Copyright © 2020, 2021 Vinicius Monego <[email protected]>
;;; Copyright © 2020 Zheng Junjie <[email protected]>
;;; Copyright © 2021 la snesne <[email protected]>
+;;; Copyright © 2021 Petr Hodina <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -35,6 +36,7 @@
#:use-module (guix build-system gnu)
#:use-module (guix build-system meson)
#:use-module (guix build-system python)
+ #:use-module (guix build-system qt)
#:use-module (gnu packages)
#:use-module (gnu packages autotools)
#:use-module (gnu packages compression)
@@ -108,7 +110,7 @@
"0wpn9ijlsmrpyiwg3drmgz4dms1i1i347adgqw37bkrh3vn6yq16"))))
(build-system python-build-system)
(inputs
- `(("chmlib" ,chmlib)))
+ (list chmlib))
(home-page "https://github.com/dottedmag/pychm")
(synopsis "Handle CHM files")
(description "This package provides a Python module for interacting
@@ -143,16 +145,17 @@ with Microsoft Compiled HTML (CHM) files")
(delete-file "resources/calibre-portable.bat")
(delete-file "resources/calibre-portable.sh")
#t))
- (patches (search-patches "calibre-no-updates-dialog.patch"
+ (patches (search-patches "calibre-fix-zeroconf.patch"
+ "calibre-no-updates-dialog.patch"
"calibre-remove-test-sqlite.patch" ; TODO: fix test.
"calibre-remove-test-unrar.patch"))))
(build-system python-build-system)
(native-inputs
- `(("pkg-config" ,pkg-config)
- ("qtbase" ,qtbase-5) ; for qmake
- ("python-flake8" ,python-flake8)
- ("python-pyqt-builder" ,python-pyqt-builder)
- ("xdg-utils" ,xdg-utils)))
+ (list pkg-config
+ qtbase-5 ; for qmake
+ python-flake8
+ python-pyqt-builder
+ xdg-utils))
(inputs
`(("fontconfig" ,fontconfig)
("font-liberation" ,font-liberation)
@@ -327,7 +330,7 @@ sip-include-dirs = [\"" pyqt "/share/sip" "\"]")))
;; rather than create ..calibre-real-real-s. For more
;; information see: https://issues.guix.gnu.org/43249.
(find-files "." (lambda (file stat)
- (not (wrapper? file)))))))
+ (not (wrapped-program? file)))))))
#t)))))
(home-page "https://calibre-ebook.com/")
(synopsis "E-book library management software")
@@ -366,16 +369,51 @@ e-books for convenient reading.")
`(#:tests? #f)) ; No 'test' target
(build-system cmake-build-system)
(native-inputs
- `(("pkg-config" ,pkg-config)))
+ (list pkg-config))
(inputs
- `(("libzip" ,libzip)
- ("libxml2" ,libxml2)))
+ (list libzip libxml2))
(home-page "http://ebook-tools.sourceforge.net")
(synopsis "Tools and library for dealing with various ebook file formats")
(description "This package provides command-line tools and a library for
accessing and converting various ebook file formats.")
(license license:expat)))
+(define-public inkbox
+ (package
+ (name "inkbox")
+ (version "1.7")
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://alpinekobox.ddns.net/InkBox/inkbox/")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "126cqn0ixcn608lv2hd9f7zmzj4g448bnpxc7wv9cvg83qqajh5n"))))
+ (build-system qt-build-system)
+ (arguments
+ '(#:tests? #f ; no test suite
+ #:make-flags
+ (list (string-append "PREFIX="
+ (assoc-ref %outputs "out")))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'prefix-opt
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "inkbox.pro"
+ (("/opt/\\$\\$\\{TARGET\\}") (string-append (assoc-ref outputs "out"))))))
+ (replace 'configure
+ (lambda* (#:key make-flags #:allow-other-keys)
+ (apply invoke (cons "qmake" make-flags)))))))
+ (native-inputs
+ (list qtbase-5))
+ (home-page "https://alpinekobox.ddns.net/InkBox/inkbox/")
+ (synopsis "EBook reader")
+ (description "This package provides InkBox eBook reader.")
+ (license license:gpl3)))
+
(define-public liblinebreak
(package
(name "liblinebreak")
@@ -514,12 +552,12 @@ following formats:
(libmagic-path (string-append
(assoc-ref %build-inputs "file")
"/lib"))
- (python-path (getenv "PYTHONPATH")))
+ (python-path (getenv "GUIX_PYTHONPATH")))
(wrap-program (string-append out "/bin/cozy")
`("LD_LIBRARY_PATH" ":" prefix (,libmagic-path))
`("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
`("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
- `("PYTHONPATH" ":" prefix (,python-path ,pylib)))))))))
+ `("GUIX_PYTHONPATH" ":" prefix (,python-path ,pylib)))))))))
(native-inputs
`(("desktop-file-utils" ,desktop-file-utils)
("gettext" ,gettext-minimal)
@@ -529,26 +567,26 @@ following formats:
("pkg-config" ,pkg-config)
("python" ,python-wrapper)))
(inputs
- `(("file" ,file)
- ("granite" ,granite)
- ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
- ("gst-libav" ,gst-libav)
- ("gst-plugins-bad" ,gst-plugins-bad)
- ("gst-plugins-good" ,gst-plugins-good)
- ("gst-plugins-ugly" ,gst-plugins-ugly)
- ("gtk+" ,gtk+)
- ("libdazzle" ,libdazzle)
- ("libgee" ,libgee)
- ("libhandy" ,libhandy)
- ("python-distro" ,python-distro)
- ("python-gst" ,python-gst)
- ("python-mutagen" ,python-mutagen)
- ("python-packaging" ,python-packaging)
- ("python-peewee" ,python-peewee)
- ("python-pycairo" ,python-pycairo)
- ("python-pygobject" ,python-pygobject)
- ("python-pytz" ,python-pytz)
- ("python-requests" ,python-requests)))
+ (list file
+ granite
+ gsettings-desktop-schemas
+ gst-libav
+ gst-plugins-bad
+ gst-plugins-good
+ gst-plugins-ugly
+ gtk+
+ libdazzle
+ libgee
+ libhandy
+ python-distro
+ python-gst
+ python-mutagen
+ python-packaging
+ python-peewee
+ python-pycairo
+ python-pygobject
+ python-pytz
+ python-requests))
(home-page "https://cozy.geigi.de/")
(synopsis "Modern audiobook player using GTK+")
(description
@@ -576,7 +614,7 @@ Some of the current features:
(define-public xchm
(package
(name "xchm")
- (version "1.32")
+ (version "1.33")
(source (origin
(method url-fetch)
(uri (string-append "https://github.com/rzvncj/xCHM"
@@ -584,13 +622,12 @@ Some of the current features:
version "/xchm-" version ".tar.gz"))
(sha256
(base32
- "0b12ym7cn65wy268kbksyhakicwb053c8xfn76q2dawrvbras9dj"))))
+ "0an09shap2wj9gzj5fsw5sc2i6paq3kc3mc52fnwg2bb2dan5qxk"))))
(build-system gnu-build-system)
(inputs
- `(("wxwidgets" ,wxwidgets)
- ("chmlib" ,chmlib)))
+ (list wxwidgets chmlib))
(native-inputs
- `(("pkg-config" ,pkg-config)))
+ (list pkg-config))
(home-page "https://github.com/rzvncj/xCHM")
(synopsis "CHM file viewer")
(description "xCHM is a graphical CHM file viewer. It is a frontend to
@@ -612,12 +649,9 @@ the CHM library CHMLIB.")
"0yps72cm609xn2k7alflkdhp9kgr1w7zzyxjygz0n1kqrdcplihh"))))
(build-system gnu-build-system)
(native-inputs
- `(("autoconf" ,autoconf)
- ("automake" ,automake)
- ("libtool" ,libtool)))
+ (list autoconf automake libtool))
(inputs
- `(("zlib" ,zlib)
- ("libxml2" ,libxml2)))
+ (list zlib libxml2))
(home-page "https://github.com/bfabiszewski/libmobi/")
(synopsis "C library for handling MOBI formats")
(description "Libmobi is a C library for handling MOBI ebook