mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: emacs-pdf-tools: Update to 0.91.
* gnu/packages/emacs-xyz.scm (emacs-pdf-tools): Update to 0.91.
This commit is contained in:
parent
d3819cd23a
commit
15fd8dacb5
1 changed files with 64 additions and 69 deletions
|
@ -3324,79 +3324,74 @@ during idle time, while Emacs is doing nothing else.")
|
||||||
(license license:gpl3+)))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
(define-public emacs-pdf-tools
|
(define-public emacs-pdf-tools
|
||||||
;; XXX: Development branch fixes an incompatibility with Emacs 27+. See
|
(package
|
||||||
;; <https://github.com/politza/pdf-tools/issues/616>.
|
(name "emacs-pdf-tools")
|
||||||
(let ((commit "5f77dae43eb8f71e52e10ba8cf994883f74c3fb7")
|
(version "0.91")
|
||||||
(revision "2"))
|
(source
|
||||||
(package
|
(origin
|
||||||
(name "emacs-pdf-tools")
|
(method git-fetch)
|
||||||
(version (git-version "0.90" revision commit))
|
(uri (git-reference
|
||||||
(source
|
(url "https://github.com/vedang/pdf-tools")
|
||||||
(origin
|
(commit (string-append "v" version))))
|
||||||
(method git-fetch)
|
(file-name (git-file-name name version))
|
||||||
(uri (git-reference
|
(sha256
|
||||||
(url "https://github.com/vedang/pdf-tools")
|
(base32 "07ixspgn4s1jg66w7m2f3sh43giakz9srhp7rpw389z32g57i1rx"))))
|
||||||
(commit commit)))
|
(build-system gnu-build-system)
|
||||||
(file-name (git-file-name name version))
|
(arguments
|
||||||
(sha256
|
`(#:tests? #f ; there are no tests
|
||||||
(base32 "0hzqcnxi66d0c3dq7y3dn28f3yri4zcx46yylhy0xnm3f1yja0rm"))))
|
#:modules ((guix build gnu-build-system)
|
||||||
(build-system gnu-build-system)
|
((guix build emacs-build-system) #:prefix emacs:)
|
||||||
(arguments
|
(guix build utils)
|
||||||
`(#:tests? #f ; there are no tests
|
(guix build emacs-utils))
|
||||||
#:modules ((guix build gnu-build-system)
|
#:imported-modules (,@%gnu-build-system-modules
|
||||||
((guix build emacs-build-system) #:prefix emacs:)
|
(guix build emacs-build-system)
|
||||||
(guix build utils)
|
(guix build emacs-utils))
|
||||||
(guix build emacs-utils))
|
#:phases
|
||||||
#:imported-modules (,@%gnu-build-system-modules
|
(modify-phases %standard-phases
|
||||||
(guix build emacs-build-system)
|
;; Build server side using 'gnu-build-system'.
|
||||||
(guix build emacs-utils))
|
(add-after 'unpack 'enter-server-dir
|
||||||
#:phases
|
(lambda _ (chdir "server")))
|
||||||
(modify-phases %standard-phases
|
(add-after 'enter-server-dir 'autogen
|
||||||
;; Build server side using 'gnu-build-system'.
|
(lambda _
|
||||||
(add-after 'unpack 'enter-server-dir
|
(invoke "bash" "autogen.sh")))
|
||||||
(lambda _ (chdir "server")))
|
;; Build emacs side using 'emacs-build-system'.
|
||||||
(add-after 'enter-server-dir 'autogen
|
(add-after 'compress-documentation 'enter-lisp-dir
|
||||||
(lambda _
|
(lambda _ (chdir "../lisp")))
|
||||||
(invoke "bash" "autogen.sh")))
|
(add-after 'enter-lisp-dir 'emacs-patch-variables
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(for-each make-file-writable (find-files "."))
|
||||||
|
|
||||||
;; Build emacs side using 'emacs-build-system'.
|
;; Set path to epdfinfo program.
|
||||||
(add-after 'compress-documentation 'enter-lisp-dir
|
(emacs-substitute-variables "pdf-info.el"
|
||||||
(lambda _ (chdir "../lisp")))
|
("pdf-info-epdfinfo-program"
|
||||||
(add-after 'enter-lisp-dir 'emacs-patch-variables
|
(string-append (assoc-ref outputs "out")
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
"/bin/epdfinfo")))
|
||||||
(for-each make-file-writable (find-files "."))
|
;; Set 'pdf-tools-handle-upgrades' to nil to avoid "auto
|
||||||
|
;; upgrading" that pdf-tools tries to perform.
|
||||||
;; Set path to epdfinfo program.
|
(emacs-substitute-variables "pdf-tools.el"
|
||||||
(emacs-substitute-variables "pdf-info.el"
|
("pdf-tools-handle-upgrades" '()))))
|
||||||
("pdf-info-epdfinfo-program"
|
(add-after 'emacs-patch-variables 'emacs-expand-load-path
|
||||||
(string-append (assoc-ref outputs "out")
|
(assoc-ref emacs:%standard-phases 'expand-load-path))
|
||||||
"/bin/epdfinfo")))
|
(add-after 'emacs-expand-load-path 'emacs-install
|
||||||
;; Set 'pdf-tools-handle-upgrades' to nil to avoid "auto
|
(assoc-ref emacs:%standard-phases 'install))
|
||||||
;; upgrading" that pdf-tools tries to perform.
|
(add-after 'emacs-install 'emacs-build
|
||||||
(emacs-substitute-variables "pdf-tools.el"
|
(assoc-ref emacs:%standard-phases 'build))
|
||||||
("pdf-tools-handle-upgrades" '()))))
|
(add-after 'emacs-install 'emacs-make-autoloads
|
||||||
(add-after 'emacs-patch-variables 'emacs-expand-load-path
|
(assoc-ref emacs:%standard-phases 'make-autoloads)))))
|
||||||
(assoc-ref emacs:%standard-phases 'expand-load-path))
|
(native-inputs
|
||||||
(add-after 'emacs-expand-load-path 'emacs-install
|
(list autoconf automake emacs-minimal pkg-config))
|
||||||
(assoc-ref emacs:%standard-phases 'install))
|
(inputs
|
||||||
(add-after 'emacs-install 'emacs-build
|
(list cairo glib libpng poppler zlib))
|
||||||
(assoc-ref emacs:%standard-phases 'build))
|
(propagated-inputs
|
||||||
(add-after 'emacs-install 'emacs-make-autoloads
|
(list emacs-tablist))
|
||||||
(assoc-ref emacs:%standard-phases 'make-autoloads)))))
|
(home-page "https://github.com/politza/pdf-tools")
|
||||||
(native-inputs
|
(synopsis "Emacs support library for PDF files")
|
||||||
(list autoconf automake emacs-minimal pkg-config))
|
(description
|
||||||
(inputs
|
"PDF Tools is, among other things, a replacement of DocView for PDF
|
||||||
(list cairo glib libpng poppler zlib))
|
|
||||||
(propagated-inputs
|
|
||||||
(list emacs-tablist))
|
|
||||||
(home-page "https://github.com/politza/pdf-tools")
|
|
||||||
(synopsis "Emacs support library for PDF files")
|
|
||||||
(description
|
|
||||||
"PDF Tools is, among other things, a replacement of DocView for PDF
|
|
||||||
files. The key difference is that pages are not pre-rendered by
|
files. The key difference is that pages are not pre-rendered by
|
||||||
e.g. ghostscript and stored in the file-system, but rather created on-demand
|
e.g. ghostscript and stored in the file-system, but rather created on-demand
|
||||||
and stored in memory.")
|
and stored in memory.")
|
||||||
(license license:gpl3+))))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
(define-public emacs-saveplace-pdf-view
|
(define-public emacs-saveplace-pdf-view
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue