[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
36/72: gnu: Add texlive-xdvi-bin.
From: |
guix-commits |
Subject: |
36/72: gnu: Add texlive-xdvi-bin. |
Date: |
Mon, 3 Jun 2024 09:00:02 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit d82115f940bbb3b352e7e488c4576da5eb723af2
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue May 28 00:22:08 2024 +0200
gnu: Add texlive-xdvi-bin.
* gnu/packages/tex.scm (texlive-xdvi-bin): New variable.
(texlive-xdvi)[propagated-inputs]: Add TEXLIVE-XDVI-BIN.
Change-Id: I305992d58740cf23e89aa175fa81109fa1923f04
---
gnu/packages/tex.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index e3e8f93a9a..2249e8f703 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -74756,6 +74756,7 @@ itself may be shipped out to the DVI file.")
"1iidl3876vyi9k2dyfwd73q5kb53kwckivfyvvxh953n4axbqmi4")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
+ (propagated-inputs (list texlive-xdvi-bin))
(home-page "https://ctan.org/pkg/xdvi")
(synopsis "DVI previewer for the X Window System")
(description
@@ -74765,6 +74766,53 @@ that it will build with web2c out of the box.")
;; Xdvi is under MIT terms, whereas Xdvik extensions use BS2-2.
(license (list license:expat license:bsd-2))))
+(define-public texlive-xdvi-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-xdvi-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" '())
+ (delete-other-directories "texk" '("xdvik"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons "--enable-xdvik" (delete "--enable-web2c" #$flags)))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/xdvik"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda* (#:key inputs native-inputs #:allow-other-keys)
+ (mkdir-p (string-append #$output "/bin"))
+ (with-directory-excursion "texk/xdvik"
+ (invoke "make" "install"))))))))
+ (native-inputs (list pkg-config))
+ (inputs (list freetype ghostscript libxaw texlive-libkpathsea))
+ (propagated-inputs '())
+ (home-page (package-home-page texlive-xdvi))
+ (synopsis "Binaries for @code{texlive-xdvi}}")
+ (description
+ "This package provides the binaries for @code{texlive-xdvi}}.")
+ (license (package-license texlive-xdvi))))
+
(define-public texlive-xetexconfig
(package
(name "texlive-xetexconfig")
- 32/72: gnu: Add texlive-bibtexu-bin., (continued)
- 32/72: gnu: Add texlive-bibtexu-bin., guix-commits, 2024/06/03
- 33/72: gnu: Add texlive-dvips-bin., guix-commits, 2024/06/03
- 30/72: gnu: Add texlive-velthuis-bin., guix-commits, 2024/06/03
- 40/72: gnu: Add texlive-gsftopk-bin., guix-commits, 2024/06/03
- 39/72: gnu: Add texlive-upmendex-bin., guix-commits, 2024/06/03
- 38/72: gnu: Add texlive-ttfutils-bin., guix-commits, 2024/06/03
- 44/72: gnu: Add texlive-cjkutils-bin., guix-commits, 2024/06/03
- 45/72: gnu: Add texlive-chktex-bin., guix-commits, 2024/06/03
- 34/72: gnu: Add texlive-psutils-bin., guix-commits, 2024/06/03
- 35/72: gnu: Add texlive-tex4ht-bin., guix-commits, 2024/06/03
- 36/72: gnu: Add texlive-xdvi-bin.,
guix-commits <=
- 37/72: gnu: Add texlive-tpic2pdftex-bin., guix-commits, 2024/06/03
- 41/72: gnu: Add texlive-makeindex-bin., guix-commits, 2024/06/03
- 42/72: gnu: Add texlive-metapost-bin., guix-commits, 2024/06/03
- 43/72: gnu: Add texlive-vlna-bin., guix-commits, 2024/06/03
- 46/72: gnu: Add texlive-detex-bin., guix-commits, 2024/06/03
- 48/72: gnu: Add texlive-dvi2tty-bin., guix-commits, 2024/06/03
- 51/72: gnu: Add texlive-dvipng-bin., guix-commits, 2024/06/03
- 52/72: gnu: Add texlive-dvisvgm-bin., guix-commits, 2024/06/03
- 54/72: gnu: Add texlive-lacheck-bin., guix-commits, 2024/06/03
- 50/72: gnu: Add texlive-dviljk-bin., guix-commits, 2024/06/03