guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

52/55: gnu: texlive-bibtexu: Build executable.


From: guix-commits
Subject: 52/55: gnu: texlive-bibtexu: Build executable.
Date: Sat, 18 May 2024 10:33:42 -0400 (EDT)

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

commit bc8ad5990affa46f1d1f5af20c01f31a955c2719
Author: Nicolas Goaziou <mail@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 41d94f9964..e7f56e724f 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -33708,6 +33708,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")
@@ -33720,6 +33742,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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]