ngz pushed a commit to branch tex-team in repository guix. commit 76a8ed123babc6c91bea6afe1ef602a4e6d64e7a Author: Nicolas Goaziou <m...@nicolasgoaziou.fr> AuthorDate: Mon May 13 09:59:17 2024 +0200
gnu: texlive-bibtexu: Build executable. * gnu/packages/tex.scm (texlive-bibtexu-bin): New variable. (texlive-bibtexu)[arguments]<#:phases>: Include executable. [native-inputs]: Add TEXLIVE-BIBTEXU-BIN. Change-Id: I618af3e0f6d647d000f00349def6ba6ca203c2e2 --- gnu/packages/tex.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index e893b50348..31524c4ce3 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -33695,6 +33695,28 @@ capacity and 8-bit support extensions. National character set and sorting order are controlled by an external configuration file.") (license license:gpl3+))) +(define texlive-bibtexu-bin + (package + (inherit texlive-bibtex8-bin) + (name "texlive-bibtexu-bin") + (arguments + (substitute-keyword-arguments (package-arguments texlive-bibtex8-bin) + ((#:configure-flags flags) + #~(cons* "--enable-bibtexu" + "--disable-bibtex8" + (delete "--enable-bibtex8" + (delete "--disable-bibtexu" #$flags)))) + ((#:phases phases) + #~(modify-phases #$phases + (delete 'skip-bibtexu-test) + (add-after 'unpack 'skip-bibtex8-test + ;; This package does not build "bibtex8" binary; the test below + ;; is therefore bound to fail. Skip that part. + (lambda _ + (substitute* "texk/bibtex-x/tests/bibtex8u-mem.test" + (("\\./bibtex8 .*") "exit 0\n")))))))) + (inputs (list icu4c)))) + (define-public texlive-bibtexu (package (name "texlive-bibtexu") @@ -33707,6 +33729,16 @@ order are controlled by an external configuration file.") "19bp8wn0ssz7gczxp0imbpgi1zwz9x3ya67f072rjzg2zmfpphqg"))) (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-bibtexu-bin"))) + (copy-recursively (string-append source "/bin") + (string-append #$output "/bin")))))))) + (native-inputs (list texlive-bibtexu-bin)) (home-page "https://ctan.org/pkg/bibtexu") (synopsis "BibTeX variant supporting Unicode (UTF-8), via ICU") (description