[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
66/69: gnu: texlive-axodraw2: Build binary separately.
From: |
guix-commits |
Subject: |
66/69: gnu: texlive-axodraw2: Build binary separately. |
Date: |
Fri, 31 May 2024 19:05:00 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 9543fe6638a7f4e3b3be07ea01bd63f0f2a85553
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue May 28 21:55:12 2024 +0200
gnu: texlive-axodraw2: Build binary separately.
* gnu/packages/tex.scm (texlive-axodraw2-bin): New variable.
(texlive-axodraw2): Use source from TEXLIVE-SOURCE and make it a regular TeX
Live package.
[arguments]: Remove it.
[inputs]: Remove OPENLIBM.
[propagated-inputs]: Add TEXLIVE-AXODRAW2-BIN.
Change-Id: I119617e48ef419e4e09887002a29a591eaa27e9e
---
gnu/packages/tex.scm | 74 ++++++++++++++++++++++++++++++++++------------------
1 file changed, 48 insertions(+), 26 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index d3e4e7202b..7705d1e30c 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -4251,7 +4251,6 @@ other parts.")
"This package provides binaries for @code{texlive-autosp}.")
(license (package-license texlive-autosp))))
-
(define-public texlive-axodraw2
(package
(name "texlive-axodraw2")
@@ -4267,31 +4266,7 @@ other parts.")
"0x1cskdm3kmf08gdrvgasd1b3l0dri9mdmk13880dz4g2rdgbvi2")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
- (arguments
- (list
- #:tests? #true
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'build-axohelp
- (lambda* (#:key tests? #:allow-other-keys)
- (with-directory-excursion "source/latex/axodraw2"
- ;; Autoreconf.
- (invoke "autoreconf" "-vfi")
- ;; Configure.
- (let ((sh (which "sh")))
- (setenv "CONFIG_SHELL" sh)
- (setenv "SHELL" sh)
- (invoke sh "configure" (string-append "--prefix=" #$output)))
- ;; Build.
- (invoke "make")
- ;; Tests.
- (when tests?
- (patch-shebang "axohelp.test") ;Bash script
- (invoke "make" "check"))
- ;; Install.
- (invoke "make" "install")))))))
- (native-inputs (list autoconf automake pkg-config))
- (inputs (list openlibm))
+ (propagated-inputs (list texlive-axodraw2-bin))
(home-page "https://ctan.org/pkg/axodraw2")
(synopsis "Feynman diagrams in a LaTeX document")
(description
@@ -4309,6 +4284,53 @@ the pdf code inserted in the output file. The
processing involves a run of
@command{pdflatex}.")
(license license:gpl3+)))
+(define-public texlive-axodraw2-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-axodraw2-bin")
+ (source
+ (origin
+ (inherit texlive-source)
+ (modules '((guix build utils)
+ (ice-9 ftw)))
+ (snippet
+ #~(let ((delete-other-directories
+ (lambda (root keep)
+ (with-directory-excursion root
+ (for-each
+ delete-file-recursively
+ (scandir
+ "."
+ (lambda (file)
+ (and (not (member file (append keep '("." ".."))))
+ (eq? 'directory (stat:type (stat file)))))))))))
+ (delete-other-directories "libs" '())
+ (delete-other-directories "utils" '("axodraw2"))
+ (delete-other-directories "texk" '())))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons "--enable-axodraw2" (delete "--enable-web2c" #$flags)))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "utils/axodraw2"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "utils/axodraw2"
+ (invoke "make" "install"))))))))
+ (native-inputs '())
+ (inputs '())
+ (propagated-inputs '())
+ (home-page (package-home-page texlive-axodraw2))
+ (synopsis "Binary for @code{texlive-axodraw2}")
+ (description
+ "This package provides the binary for @code{texlive-axodraw2}.")
+ (license (package-license texlive-axodraw2))))
+
(define-public texlive-b1encoding
(package
(name "texlive-b1encoding")
- 44/69: gnu: Add texlive-cjkutils-bin., (continued)
- 44/69: gnu: Add texlive-cjkutils-bin., guix-commits, 2024/05/31
- 43/69: gnu: Add texlive-vlna-bin., guix-commits, 2024/05/31
- 42/69: gnu: Add texlive-metapost-bin., guix-commits, 2024/05/31
- 52/69: gnu: Add texlive-dvisvgm-bin., guix-commits, 2024/05/31
- 53/69: gnu: Add texlive-lcdftypetools-bin., guix-commits, 2024/05/31
- 54/69: gnu: Add texlive-lacheck-bin., guix-commits, 2024/05/31
- 49/69: gnu: Add texlive-dvidvi-bin., guix-commits, 2024/05/31
- 55/69: gnu: Add texlive-seetexk-bin., guix-commits, 2024/05/31
- 56/69: gnu: Add texlive-ps2eps-bin., guix-commits, 2024/05/31
- 58/69: gnu: texlive-texdoctk: Fix runtime error., guix-commits, 2024/05/31
- 66/69: gnu: texlive-axodraw2: Build binary separately.,
guix-commits <=
- 69/69: gnu: Update commentary section in "tex.scm"., guix-commits, 2024/05/31
- 61/69: gnu: Add texlive-xml2pmx-bin., guix-commits, 2024/05/31
- 60/69: gnu: texlive-kpathsea: Propagate the binaries., guix-commits, 2024/05/31
- 62/69: gnu: texlive-dviout-util: Build binaries separately., guix-commits, 2024/05/31
- 64/69: gnu: texlive-dvipos: Build binaries separately., guix-commits, 2024/05/31
- 63/69: gnu: texlive-ps2pk: Build binaries separately., guix-commits, 2024/05/31
- 67/69: gnu: texlive-xindy: Build binary separately., guix-commits, 2024/05/31
- 59/69: gnu: Add texlive-xpdfopen-bin., guix-commits, 2024/05/31
- 65/69: gnu: texlive-musixtnt: Build binary separately., guix-commits, 2024/05/31
- 68/69: gnu: texlive importer: Propagate binaries when necessary., guix-commits, 2024/05/31