From af5bbe630cb990daf9f29b307572f965ee9fa099 Mon Sep 17 00:00:00 2001 From: Runciter Date: Mon, 28 Oct 2024 02:19:54 +0800 Subject: Initial. A .guix-authorizations A .guix-channel A COPYING A README A whispers/packages/dict.scm A whispers/packages/doc.scm A whispers/packages/pdf.scm A whispers/packages/sh.scm A whispers/packages/whispers.scm A whispers/services/console.scm A whispers/services/dict.scm A whispers/services/finance.scm A whispers/services/gps.scm A whispers/services/proton.scm A whispers/services/ssh-agent.scm A whispers/services/ssh-tunneler.scm A whispers/services/whispers.scm A whispers/services/whispers/finance.scm A whispers/services/whispers/gps.scm A whispers/services/whispers/mail.scm A whispers/services/whispers/ssh.scm A whispers/services/whispers/vpn.scm A whispers/services/whispers/xdg.scm A whispers/tests/ssh-tunneler.scm --- whispers/packages/pdf.scm | 158 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 whispers/packages/pdf.scm (limited to 'whispers/packages/pdf.scm') diff --git a/whispers/packages/pdf.scm b/whispers/packages/pdf.scm new file mode 100644 index 0000000..00c6485 --- /dev/null +++ b/whispers/packages/pdf.scm @@ -0,0 +1,158 @@ +;;; Whispers --- Stealth VPN and ssh tunneler +;;; Copyright © 2013, 2015, 2016 Andreas Enge +;;; Copyright © 2014 Mark H Weaver +;;; Copyright © 2014, 2015, 2016, 2018, 2019, 2021, 2024 Ricardo Wurmus +;;; Copyright © 2015 Paul van der Walt +;;; Copyright © 2016 Roel Janssen +;;; Copyright © 2016 Nikita +;;; Copyright © 2016-2020, 2022, 2023 Efraim Flashner +;;; Copyright © 2016, 2017, 2022 Marius Bakke +;;; Copyright © 2016, 2017, 2019 Ludovic Courtès +;;; Copyright © 2016 Julien Lepiller +;;; Copyright © 2016, 2019 Arun Isaac +;;; Copyright © 2017, 2018 Leo Famulari +;;; Copyright © 2017 Alex Vong +;;; Copyright © 2017, 2018 Rene Saavedra +;;; Copyright © 2017–2022 Tobias Geerinckx-Rice +;;; Copyright © 2019 Alex Griffin +;;; Copyright © 2019 Ben Sturmfels +;;; Copyright © 2019,2020 Hartmut Goebel +;;; Copyright © 2020-2024 Nicolas Goaziou +;;; Copyright © 2020, 2022 Michael Rohleder +;;; Copyright © 2020, 2024 Timotej Lazar +;;; Copyright © 2020, 2022, 2023 Maxim Cournoyer +;;; Copyright © 2021 Maxime Devos +;;; Copyright © 2022 Paul A. Patience +;;; Copyright © 2022 Petr Hodina +;;; Copyright © 2023 Felix Gruber +;;; Copyright © 2024 dan +;;; Copyright © 2023 Benjamin Slade +;;; +;;; Copyright © 2024 Runciter +;;; +;;; This file is part of Whispers. +;;; +;;; Whispers is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; Whispers is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with Whispers. If not, see . + +(define-module (whispers packages pdf) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (guix gexp) + #:use-module (guix utils) + #:use-module (guix build-system meson) + #:use-module (gnu packages) + #:use-module (gnu packages pdf) + #:use-module (gnu packages ghostscript) + #:use-module (gnu packages djvu) + #:use-module (gnu packages tls) + #:use-module (gnu packages sphinx) + #:use-module (gnu packages javascript) + #:use-module (gnu packages autotools) + #:use-module (gnu packages gettext) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages glib) + #:use-module (gnu packages check) + #:use-module (gnu packages web) + #:use-module (gnu packages xorg) + #:use-module (gnu packages gtk) + #:use-module (gnu packages gnome) + #:use-module (gnu packages ocr) + #:use-module (gnu packages image) + #:use-module (gnu packages sqlite) + #:use-module (gnu packages backup) + #:use-module (gnu packages tex)) + +(define-public zathura-synctex + (package + (inherit zathura) + (name "zathura-synctex") + (arguments + (list + #:configure-flags + #~(list "-Dsynctex=enabled") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'start-xserver + ;; Tests require a running X server. + (lambda* (#:key inputs #:allow-other-keys) + (let ((display ":1")) + (setenv "DISPLAY" display) + + ;; On busy machines, tests may take longer than + ;; the default of four seconds. + (setenv "CK_DEFAULT_TIMEOUT" "20") + + ;; Don't fail due to missing '/etc/machine-id'. + (setenv "DBUS_FATAL_WARNINGS" "0") + (zero? (system (string-append + (search-input-file inputs "/bin/Xvfb") + " " display " &"))))))))) + (native-inputs + (list pkg-config + gettext-minimal + (list glib "bin") + + ;; For building documentation. + python-sphinx + + ;; For building icons. + (librsvg-for-system) + + ;; For tests. + check + xorg-server-for-tests + + ;; For synctex. + texlive-bin)))) + +(define-public zathura-cb-synctex + (package + (inherit zathura-cb) + (name "zathura-cb-synctex") + (inputs (list libarchive zathura-synctex)))) + +(define-public zathura-ps-synctex + (package + (inherit zathura-ps) + (name "zathura-ps-synctex") + (inputs (list libspectre zathura-synctex)))) + +(define-public zathura-djvu-synctex + (package + (inherit zathura-djvu) + (name "zathura-djvu-synctex") + (inputs + (list djvulibre zathura-synctex)))) + +(define-public zathura-pdf-mupdf-synctex + (package + (inherit zathura-pdf-mupdf) + (inputs + (list gumbo-parser + jbig2dec + libjpeg-turbo + mujs + mupdf + openjpeg + openssl + tesseract-ocr + zathura-synctex)))) + +(define-public zathura-pdf-poppler-synctex + (package + (inherit zathura-pdf-poppler) + (name "zathura-pdf-poppler-synctex") + (inputs + (list poppler zathura-synctex)))) -- cgit v1.2.3