[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/53: gnu: texlive-autosp: Build executable.
From: |
guix-commits |
Subject: |
21/53: gnu: texlive-autosp: Build executable. |
Date: |
Mon, 13 May 2024 04:50:05 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 6b3db4137ebb0789ca710cc0b2c7d2532cbba15d
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sat May 11 15:55:39 2024 +0200
gnu: texlive-autosp: Build executable.
* gnu/packages/tex.scm (texlive-autosp-bin): New variable.
(texlive-autosp)[arguments]<#:phases>: Include executable.
[native-inputs]: Add TEXLIVE-AUTOSP-BIN.
* gnu/packages/tex.scm (texlive-bin): Do not build autosp.
Change-Id: I12a1336c473a267dba47200c4a066ff1841876a1
---
gnu/packages/tex.scm | 71 +++++++++++++++++++++++++++++++++++++++++++++-------
1 file changed, 62 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index cf9c95b0d4..c0c0d4b7aa 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -763,6 +763,7 @@ and should be preferred to it whenever a package would
otherwise depend on
;; Disable tools built in other packages.
#$@(map (lambda (p) (string-append "--disable-" p))
'("afm2pl"
+ "autosp"
"axodraw2"
"chktex"
"cjkutils"
@@ -4159,21 +4160,72 @@ package tries to put breaks at adequate places. It is
suitable for
computer-generated long formulae with many terms.")
(license license:lppl1.3+)))
+(define texlive-autosp-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-autosp-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" '("autosp"))
+ (delete-other-directories "texk" '())))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--disable-all-pkgs"
+ "--enable-autosp"
+ (delete "--disable-autosp" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "utils/autosp"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda* (#:key inputs native-inputs #:allow-other-keys)
+ (with-directory-excursion "utils/autosp"
+ (invoke "make" "install"))))))))
+ (inputs '())))
+
(define-public texlive-autosp
(package
(name "texlive-autosp")
(version (number->string %texlive-revision))
- (source (texlive-origin
- name version
- (list "doc/generic/autosp/"
- "doc/man/man1/autosp.1"
- "doc/man/man1/autosp.man1.pdf"
- "doc/man/man1/tex2aspc.1"
- "doc/man/man1/tex2aspc.man1.pdf")
- (base32
- "16szmbffp9pwzv7zq3l4yvnsfk4m7w57wib7pqpgv1v5fzhlaahs")))
+ (source
+ (texlive-origin name version
+ (list "doc/generic/autosp/" "doc/man/man1/autosp.1"
+ "doc/man/man1/autosp.man1.pdf"
+ "doc/man/man1/tex2aspc.1"
+ "doc/man/man1/tex2aspc.man1.pdf")
+ (base32
+ "16szmbffp9pwzv7zq3l4yvnsfk4m7w57wib7pqpgv1v5fzhlaahs")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'install-bin
+ (lambda* (#:key inputs native-inputs #:allow-other-keys)
+ (let ((bin #$(this-package-native-input
"texlive-autosp-bin"))
+ (target (string-append #$output "/bin")))
+ (mkdir-p target)
+ (copy-recursively (string-append bin "/bin")
+ target)))))))
+ (native-inputs (list texlive-autosp-bin))
(home-page "https://ctan.org/pkg/autosp")
(synopsis
"Preprocessor generating note-spacing commands for MusiXTeX scores")
@@ -4187,6 +4239,7 @@ concern for note-spacing changes within the part or
spacing requirements of
other parts.")
(license license:gpl2+)))
+
(define-public texlive-axodraw2
(package
(name "texlive-axodraw2")
- 18/53: gnu: texlive-afm2pl: Build executable., (continued)
- 18/53: gnu: texlive-afm2pl: Build executable., guix-commits, 2024/05/13
- 20/53: gnu: texlive-dvi2tty: Build executables., guix-commits, 2024/05/13
- 35/53: gnu: texlive-tex4ht: Build executables., guix-commits, 2024/05/13
- 23/53: gnu: texlive-ps2eps: Build executables., guix-commits, 2024/05/13
- 31/53: gnu: texlive-m-tx: Build executable., guix-commits, 2024/05/13
- 27/53: gnu: texlive-xml2pmx: Build executable., guix-commits, 2024/05/13
- 41/53: gnu: texlive-gregoriotex: Build executables., guix-commits, 2024/05/13
- 43/53: gnu: texlive-dvipos: Build executables., guix-commits, 2024/05/13
- 22/53: gnu: texlive-velthuis: Build executable., guix-commits, 2024/05/13
- 40/53: gnu: texlive-gsftopk: Build executables., guix-commits, 2024/05/13
- 21/53: gnu: texlive-autosp: Build executable.,
guix-commits <=
- 24/53: gnu: texlive-xpdfopen: 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
- 32/53: gnu: texlive-bin: Ignore "utils" directory., guix-commits, 2024/05/13
- 36/53: gnu: texlive-seetexk: Build executables., guix-commits, 2024/05/13
- 37/53: gnu: texlive-ps2pk: Build executables., guix-commits, 2024/05/13
- 39/53: gnu: texlive-makeindex: Build executables., guix-commits, 2024/05/13
- 38/53: gnu: texlive-ptex: Build executables., guix-commits, 2024/05/13
- 42/53: gnu: texlive-dvips: Build executables., guix-commits, 2024/05/13
- 47/53: gnu: texlive-dvidvi: Build executable., guix-commits, 2024/05/13