ngz pushed a commit to branch tex-team
in repository guix.

commit facd8dc268ad90eda8c9a2c8c0efd4858ccc2c58
Author: Nicolas Goaziou <m...@nicolasgoaziou.fr>
AuthorDate: Mon May 27 23:56:13 2024 +0200

    gnu: Add texlive-bibtexu-bin.
    
    * gnu/packages/tex.scm (texlive-bibtexu-bin): New variable.
    (texlive-bibtexu)[propagated-inputs]: Add TEXLIVE-BIBTEXu-BIN.
    
    Change-Id: Iafd01d42aee35030e30a761a2f8f42b8908e82b0
---
 gnu/packages/tex.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 22c07c3748..59cffa6858 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -33798,6 +33798,7 @@ order are controlled by an external configuration 
file.")
               "19bp8wn0ssz7gczxp0imbpgi1zwz9x3ya67f072rjzg2zmfpphqg")))
     (outputs '("out" "doc"))
     (build-system texlive-build-system)
+    (propagated-inputs (list texlive-bibtexu-bin))
     (home-page "https://ctan.org/pkg/bibtexu";)
     (synopsis "BibTeX variant supporting Unicode (UTF-8), via ICU")
     (description
@@ -33805,6 +33806,34 @@ order are controlled by an external configuration 
file.")
 supported via the ICU library.")
     (license license:gpl3+)))
 
+(define-public 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"))))))))
+    (native-inputs (list pkg-config))
+    (inputs (list icu4c texlive-libkpathsea))
+    (home-page (package-home-page texlive-bibtexu))
+    (synopsis "Binary for @code{texlive-bibtexu}")
+    (description
+     "This package provides the binary for @code{texlive-bibtexu}.")
+    (license (package-license texlive-bibtexu))))
+
 (define-public texlive-bundledoc
   (package
     (name "texlive-bundledoc")

Reply via email to