From 125085025b40c1426b9871814b54abdf3b9174c9 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 28 May 2024 18:22:12 +0200 Subject: 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(+) (limited to 'gnu/packages') 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 @@ (define-public texlive-xpdfopen "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 @@ (define-public texlive-xpdfopen @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") -- cgit v1.2.3