diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2024-05-28 18:22:12 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 10:45:28 +0200 |
commit | 125085025b40c1426b9871814b54abdf3b9174c9 (patch) | |
tree | d2df20b85077777a760af82389d8bdb5631a587b /gnu/packages/tex.scm | |
parent | c2624353ff9be2c62513a825ae0ac715dcd11085 (diff) | |
download | guix-125085025b40c1426b9871814b54abdf3b9174c9.tar guix-125085025b40c1426b9871814b54abdf3b9174c9.tar.gz |
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
Diffstat (limited to 'gnu/packages/tex.scm')
-rw-r--r-- | gnu/packages/tex.scm | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 69cf1231ba..4a91f34de9 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -47218,6 +47218,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 @@ -47227,6 +47228,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") |