[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
59/73: gnu: Add texlive-xpdfopen-bin.
From: |
guix-commits |
Subject: |
59/73: gnu: Add texlive-xpdfopen-bin. |
Date: |
Tue, 4 Jun 2024 16:40:11 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 1e65dd96c459593511e024fdf064ff9f52612e8b
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue May 28 18:22:12 2024 +0200
gnu: Add texlive-xpdfopen-bin.
* gnu/packages/tex.scm (texlive-xpdfopen-bin): New variable.
(texlive-xpdfopen)[propagated-inputs]: Add TEXLIVE-XPDFOPEN-BIN.
Change-Id: I1dc9aced9c0a601be60e60157deb36a752bea6f9
---
gnu/packages/tex.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 8999d844a6..d4cd46d3a3 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -47196,6 +47196,7 @@ integer (given as a string) as a Cistercian numeral.")
"130wvaypfrg9sav0pdcdy1g10fll8pqcsqsy70fxlzzr937glsh1")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
+ (propagated-inputs (list texlive-xpdfopen-bin))
(home-page "https://ctan.org/pkg/xpdfopen")
(synopsis "Commands to control PDF readers, under X11")
(description
@@ -47205,6 +47206,52 @@ command line or from within a (shell) script. The
programs work with
@command{xpdf} and @command{evince}.")
(license license:public-domain)))
+(define-public texlive-xpdfopen-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-xpdfopen-bin")
+ (source
+ (origin
+ (inherit texlive-source)
+ (modules '((guix build utils)
+ (ice-9 ftw)))
+ (snippet
+ #~(let ((delete-other-directories
+ (lambda (root dirs)
+ (with-directory-excursion root
+ (for-each
+ delete-file-recursively
+ (scandir "."
+ (lambda (file)
+ (and (not (member file (append '("." "..")
dirs)))
+ (eq? 'directory (stat:type (stat
file)))))))))))
+ (delete-other-directories "libs" '())
+ (delete-other-directories "utils" '("xpdfopen"))
+ (delete-other-directories "texk" '())))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons "--enable-xpdfopen" (delete "--enable-web2c" #$flags)))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "utils/xpdfopen"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "utils/xpdfopen"
+ (invoke "make" "install"))))))))
+ (native-inputs (list pkg-config))
+ (inputs (list libxt))
+ (propagated-inputs '())
+ (home-page (package-home-page texlive-xpdfopen))
+ (synopsis "Binaries for @code{texlive-xpdfopen}")
+ (description
+ "This package provides the binaries for @code{texlive-xpdfopen}.")
+ (license (package-license texlive-xpdfopen))))
+
(define-public texlive-xpicture
(package
(name "texlive-xpicture")
- 36/73: gnu: Add texlive-xdvi-bin., (continued)
- 36/73: gnu: Add texlive-xdvi-bin., guix-commits, 2024/06/04
- 37/73: gnu: Add texlive-tpic2pdftex-bin., guix-commits, 2024/06/04
- 38/73: gnu: Add texlive-ttfutils-bin., guix-commits, 2024/06/04
- 42/73: gnu: Add texlive-metapost-bin., guix-commits, 2024/06/04
- 45/73: gnu: Add texlive-chktex-bin., guix-commits, 2024/06/04
- 47/73: gnu: Add texlive-dtl-bin., guix-commits, 2024/06/04
- 52/73: gnu: Add texlive-dvisvgm-bin., guix-commits, 2024/06/04
- 50/73: gnu: Add texlive-dviljk-bin., guix-commits, 2024/06/04
- 49/73: gnu: Add texlive-dvidvi-bin., guix-commits, 2024/06/04
- 60/73: gnu: texlive-kpathsea: Propagate the binaries., guix-commits, 2024/06/04
- 59/73: gnu: Add texlive-xpdfopen-bin.,
guix-commits <=
- 35/73: gnu: Add texlive-tex4ht-bin., guix-commits, 2024/06/04
- 40/73: gnu: Add texlive-gsftopk-bin., guix-commits, 2024/06/04
- 70/73: gnu: texlive importer: Propagate binaries when necessary., guix-commits, 2024/06/04
- 51/73: gnu: Add texlive-dvipng-bin., guix-commits, 2024/06/04
- 62/73: gnu: Add texlive-luajittex-bin., guix-commits, 2024/06/04
- 69/73: gnu: texlive-xindy: Build binary separately., guix-commits, 2024/06/04
- 21/73: gnu: Add texlive-dvipdfmx-bin., guix-commits, 2024/06/04
- 55/73: gnu: Add texlive-seetexk-bin., guix-commits, 2024/06/04
- 57/73: gnu: Add texlive-t1utils-bin., guix-commits, 2024/06/04
- 61/73: gnu: Add texlive-xml2pmx-bin., guix-commits, 2024/06/04