[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
37/53: gnu: texlive-ps2pk: Build executables.
From: |
guix-commits |
Subject: |
37/53: gnu: texlive-ps2pk: Build executables. |
Date: |
Mon, 13 May 2024 10:02:26 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit d53d8107662ba49cfc39342187ca271d130fbdbd
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun May 12 15:21:19 2024 +0200
gnu: texlive-ps2pk: Build executables.
* gnu/packages/tex.scm (texlive-ps2pk): Inherit from TEXLIVE-BIN.
[source]: Build from a trimmed TEXLIVE-SOURCE.
[arguments]: Build `ps2pk' as a single package.
Change-Id: I8ec9e6eb3a5fb194a533d89c4a1ab254d77a617e
---
gnu/packages/tex.scm | 52 +++++++++++++++++++++++++++++++++++++---------------
1 file changed, 37 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index d105efc4ce..caab4b1974 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -42312,22 +42312,44 @@ produce bounding box values for Rawppm or Rawpbm
format files.")
(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* "--disable-all-pkgs"
+ "--enable-ps2pk"
+ (delete "--disable-ps2pk" #$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
- 50/53: gnu: texlive-bin: Only build "web2c" package., (continued)
- 50/53: gnu: texlive-bin: Only build "web2c" package., guix-commits, 2024/05/13
- 04/53: gnu: texlive-bin, texlive-kpathsea: Refer to TEXLIVE-SOURCE., guix-commits, 2024/05/13
- 15/53: gnu: texlive-lcdftypetools: Build executables., guix-commits, 2024/05/13
- 11/53: gnu: texlive-bin: Do not build Xindy., guix-commits, 2024/05/13
- 14/53: gnu: texlive-lacheck: Build executable., guix-commits, 2024/05/13
- 19/53: gnu: Add texlive-libptexenc., guix-commits, 2024/05/13
- 22/53: gnu: texlive-velthuis: Build executable., guix-commits, 2024/05/13
- 30/53: gnu: texlive-pmx: Build executables., guix-commits, 2024/05/13
- 32/53: gnu: texlive-bin: Ignore "utils" directory., guix-commits, 2024/05/13
- 35/53: gnu: texlive-tex4ht: Build executables., guix-commits, 2024/05/13
- 37/53: gnu: texlive-ps2pk: Build executables.,
guix-commits <=
- 39/53: gnu: texlive-makeindex: Build executables., guix-commits, 2024/05/13
- 43/53: gnu: texlive-dvipos: Build executables., guix-commits, 2024/05/13
- 51/53: gnu: texlive-bibtex8: Build executable., guix-commits, 2024/05/13
- 48/53: gnu: texlive-dtl: Build executables., guix-commits, 2024/05/13
- 26/53: gnu: texlive-texdoctk: Fix runtime error., guix-commits, 2024/05/13
- 25/53: gnu: texlive-libkpathsea: Tiny refactoring., guix-commits, 2024/05/13
- 34/53: gnu: texlive-ttfutils: Build executables., guix-commits, 2024/05/13
- 36/53: gnu: texlive-seetexk: Build executables., guix-commits, 2024/05/13
- 44/53: gnu: texlive-dvipdfmx: Build executables., guix-commits, 2024/05/13
- 45/53: gnu: texlive-dviout-util: Build executables., guix-commits, 2024/05/13