[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
41/55: gnu: texlive-gregoriotex: Build executables.
From: |
guix-commits |
Subject: |
41/55: gnu: texlive-gregoriotex: Build executables. |
Date: |
Sat, 18 May 2024 10:33:37 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit e455dacbb5d687196e336bbff5cebdcb79196237
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun May 12 17:48:05 2024 +0200
gnu: texlive-gregoriotex: Build executables.
* gnu/packages/tex.scm (texlive-gregoriotex-bin): New variable.
(texlive-gregoriotex)[arguments]<#:phases>: Include executables.
[native-inputs]: Add TEXLIVE-GREGORIOTEX-BIN.
Change-Id: Idc863a24aa9e096a8988516f696744ca4511bf6b
---
gnu/packages/tex.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index f96be0c63a..2acf2e605e 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -15683,6 +15683,46 @@ known as @emph{Der Grune Punkt} (``The Green Point'').
In Austria, it can be
found on nearly every bottle. It should not be confused with the Recycle
logo.")
(license license:gpl3+)))
+(define texlive-gregoriotex-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-gregoriotex-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" '("gregorio"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--disable-all-pkgs"
+ "--enable-gregorio"
+ (delete "--disable-gregorio" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/gregorio"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/gregorio"
+ (invoke "make" "install"))))))))
+ (inputs '())))
(define-public texlive-gregoriotex
(package
@@ -15701,6 +15741,17 @@ logo.")
"0lnpq6rfdb6dg543cmbsm817ziim6arxnzxzbn0wn8i8aw681idr")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'install-bin
+ (lambda _
+ (let ((source
+ #$(this-package-native-input "texlive-gregoriotex-bin")))
+ (copy-recursively (string-append source "/bin")
+ (string-append #$output "/bin"))))))))
+ (native-inputs (list texlive-gregoriotex-bin))
(home-page "https://ctan.org/pkg/gregoriotex")
(synopsis "Engraving gregorian chant scores")
(description
- 51/55: gnu: texlive-bibtex8: Build executable., (continued)
- 51/55: gnu: texlive-bibtex8: Build executable., guix-commits, 2024/05/18
- 43/55: gnu: texlive-dvipos: Build executables., guix-commits, 2024/05/18
- 49/55: gnu: texlive-detex: Build executable., guix-commits, 2024/05/18
- 52/55: gnu: texlive-bibtexu: Build executable., guix-commits, 2024/05/18
- 53/55: gnu: Update commentary in "tex.scm"., guix-commits, 2024/05/18
- 54/55: gnu: texlive-libkpathsea: Allow LuaLaTeX finding fonts on the system., guix-commits, 2024/05/18
- 39/55: gnu: texlive-makeindex: Build executables., guix-commits, 2024/05/18
- 40/55: gnu: texlive-gsftopk: Build executables., guix-commits, 2024/05/18
- 44/55: gnu: texlive-dvipdfmx: Build executables., guix-commits, 2024/05/18
- 46/55: gnu: texlive-dviljk: Build executables., guix-commits, 2024/05/18
- 41/55: gnu: texlive-gregoriotex: Build executables.,
guix-commits <=
- 47/55: gnu: texlive-dvidvi: Build executable., guix-commits, 2024/05/18
- 48/55: gnu: texlive-dtl: Build executables., guix-commits, 2024/05/18
- 55/55: gnu: texlive: Fix ConTeXt., guix-commits, 2024/05/18