[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
61/75: gnu: Add texlive-xpdfopen-bin.
From: |
guix-commits |
Subject: |
61/75: gnu: Add texlive-xpdfopen-bin. |
Date: |
Mon, 10 Jun 2024 12:24:49 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit a407fc2f88570d6d12af58ef971c4afd6223830a
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 e0d513e860..c2258d4d26 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")
- 48/75: gnu: Add texlive-detex-bin., (continued)
- 48/75: gnu: Add texlive-detex-bin., guix-commits, 2024/06/10
- 49/75: gnu: Add texlive-dtl-bin., guix-commits, 2024/06/10
- 51/75: gnu: Add texlive-dvidvi-bin., guix-commits, 2024/06/10
- 52/75: gnu: Add texlive-dviljk-bin., guix-commits, 2024/06/10
- 54/75: gnu: Add texlive-dvisvgm-bin., guix-commits, 2024/06/10
- 57/75: gnu: Add texlive-seetexk-bin., guix-commits, 2024/06/10
- 53/75: gnu: Add texlive-dvipng-bin., guix-commits, 2024/06/10
- 55/75: gnu: Add texlive-lcdftypetools-bin., guix-commits, 2024/06/10
- 56/75: gnu: Add texlive-lacheck-bin., guix-commits, 2024/06/10
- 58/75: gnu: Add texlive-ps2eps-bin., guix-commits, 2024/06/10
- 61/75: gnu: Add texlive-xpdfopen-bin.,
guix-commits <=
- 66/75: gnu: texlive-dviout-util: Build binaries separately., guix-commits, 2024/06/10
- 50/75: gnu: Add texlive-dvi2tty-bin., guix-commits, 2024/06/10
- 60/75: gnu: texlive-texdoctk: Fix runtime error., guix-commits, 2024/06/10
- 62/75: gnu: texlive-kpathsea: Propagate the binaries., guix-commits, 2024/06/10
- 63/75: gnu: Add texlive-xml2pmx-bin., guix-commits, 2024/06/10
- 64/75: gnu: Add texlive-luajittex-bin., guix-commits, 2024/06/10
- 65/75: gnu: Add texlive-mflua-bin., guix-commits, 2024/06/10
- 71/75: gnu: texlive-xindy: Build binary separately., guix-commits, 2024/06/10
- 74/75: gnu: texlive-xits: Fix typo in description., guix-commits, 2024/06/10
- 68/75: gnu: texlive-dvipos: Build binaries separately., guix-commits, 2024/06/10