[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
59/81: gnu: Add texlive-ps2eps-bin.
From: |
guix-commits |
Subject: |
59/81: gnu: Add texlive-ps2eps-bin. |
Date: |
Tue, 18 Jun 2024 04:40:37 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 19aa6b537d250d4779bab9bb01178b0f0bbad583
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue May 28 16:27:52 2024 +0200
gnu: Add texlive-ps2eps-bin.
* gnu/packages/tex.scm (texlive-ps2eps-bin): New variable.
(texlive-ps2eps)[arguments]<#:link-scripts, #:phases>: Remove arguments.
[inputs]: Remove PERL.
[propagated-inputs]: Add TEXLIVE-PS2EPS-BIN.
Change-Id: Ie3152ae25c9444bd9839559a81fd68139e4f1df1
---
gnu/packages/tex.scm | 120 ++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 91 insertions(+), 29 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index a875f1e526..aea33d3c0a 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -43238,20 +43238,7 @@ and glued together. This will lead to a physical
product box.")
"1anrvgs0hd3790dwpxqal0c2drjmvh93vnyqap40rvp8axwi0a6n")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
- (arguments
- (list #:link-scripts #~(list "ps2eps.pl")
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'configure-ghostscript-executable
- ;; ps2eps.pl uses the "gswin32c" ghostscript executable on
- ;; Windows, and the "gs" ghostscript executable on Unix. It
- ;; detects Unix by checking for the existence of the
- ;; "/usr/bin" directory. Since Guix System does not have
- ;; "/usr/bin", it is also detected as Windows.
- (lambda _
- (substitute* "scripts/ps2eps/ps2eps.pl"
- (("gswin32c") "gs")))))))
- (inputs (list perl))
+ (propagated-inputs (list texlive-ps2eps-bin))
(home-page "https://ctan.org/pkg/ps2eps")
(synopsis "Produce Encapsulated PostScript from PostScript")
(description
@@ -43266,24 +43253,99 @@ Included in the distribution is the @command{bbox}
program, an application to
produce bounding box values for Rawppm or Rawpbm format files.")
(license license:gpl3+)))
+(define-public texlive-ps2eps-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-ps2eps-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" '("ps2eps"))
+ (delete-other-directories "texk" '())))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons "--enable-ps2eps" (delete "--enable-web2c" #$flags)))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (add-after 'unpack 'configure-ghostscript-executable
+ ;; ps2eps.pl uses the "gswin32c" ghostscript executable on
+ ;; Windows, and the "gs" ghostscript executable on Unix. It
+ ;; detects Unix by checking for the existence of the "/usr/bin"
+ ;; directory. Since Guix System does not have "/usr/bin", it is
+ ;; also detected as a Windows system :(.
+ (lambda _
+ (substitute* "utils/ps2eps/ps2eps-src/bin/ps2eps.pl"
+ (("gswin32c") "gs"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "utils/ps2eps"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "utils/ps2eps"
+ (invoke "make" "install"))))))))
+ (native-inputs '())
+ (inputs (list perl))
+ (propagated-inputs '())
+ (home-page (package-home-page texlive-ps2eps))
+ (synopsis "Binaries for @code{texlive-ps2eps}")
+ (description
+ "This package provides the binaries for @code{texlive-ps2eps}.")
+ (license (package-license texlive-ps2eps))))
+
(define-public texlive-ps2pk
(package
+ (inherit texlive-bin)
(name "texlive-ps2pk")
- (version (number->string %texlive-revision))
- (source (texlive-origin
- name version
- (list "doc/man/man1/mag.1"
- "doc/man/man1/mag.man1.pdf"
- "doc/man/man1/pfb2pfa.1"
- "doc/man/man1/pfb2pfa.man1.pdf"
- "doc/man/man1/pk2bm.1"
- "doc/man/man1/pk2bm.man1.pdf"
- "doc/man/man1/ps2pk.1"
- "doc/man/man1/ps2pk.man1.pdf")
- (base32
- "14xq9x5rf15ibzr41cm5rm4v3rpmj50rfsqp4zzvyhmpmyw4dsx3")))
- (outputs '("out" "doc"))
- (build-system texlive-build-system)
+ (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" '("ps2pk"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--enable-ps2pk" (delete "--enable-web2c" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/ps2pk"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/ps2pk"
+ (invoke "make" "install"))))))))
+ (inputs '())
(home-page "https://ctan.org/pkg/ps2pk")
(synopsis "Generate a PK font from an Adobe Type 1 font")
(description
- 49/81: gnu: Add texlive-detex-bin., (continued)
- 49/81: gnu: Add texlive-detex-bin., guix-commits, 2024/06/18
- 47/81: gnu: Add texlive-cjkutils-bin., guix-commits, 2024/06/18
- 50/81: gnu: Add texlive-dtl-bin., guix-commits, 2024/06/18
- 54/81: gnu: Add texlive-dvipng-bin., guix-commits, 2024/06/18
- 52/81: gnu: Add texlive-dvidvi-bin., guix-commits, 2024/06/18
- 55/81: gnu: Add texlive-dvisvgm-bin., guix-commits, 2024/06/18
- 56/81: gnu: Add texlive-lcdftypetools-bin., guix-commits, 2024/06/18
- 62/81: gnu: Add texlive-xpdfopen-bin., guix-commits, 2024/06/18
- 61/81: gnu: texlive-texdoctk: Fix runtime error., guix-commits, 2024/06/18
- 63/81: gnu: texlive-kpathsea: Propagate the binaries., guix-commits, 2024/06/18
- 59/81: gnu: Add texlive-ps2eps-bin.,
guix-commits <=
- 57/81: gnu: Add texlive-lacheck-bin., guix-commits, 2024/06/18
- 68/81: gnu: texlive-ps2pk: Build binaries separately., guix-commits, 2024/06/18
- 65/81: gnu: Add texlive-luajittex-bin., guix-commits, 2024/06/18
- 66/81: gnu: Add texlive-mflua-bin., guix-commits, 2024/06/18
- 71/81: gnu: texlive-axodraw2: Build binary separately., guix-commits, 2024/06/18
- 73/81: guix: import texlive: Propagate binaries when necessary., guix-commits, 2024/06/18
- 74/81: gnu: texlive-docstrip: Remove it., guix-commits, 2024/06/18
- 72/81: gnu: texlive-xindy: Build binary separately., guix-commits, 2024/06/18
- 81/81: guix: import texlive: Remove need for having "svn" binary in PATH., guix-commits, 2024/06/18
- 78/81: gnu: texlive-scripts: Add missing "mktexfmt" symlink., guix-commits, 2024/06/18