guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: unison: Fix manual generation.


From: guix-commits
Subject: 02/02: gnu: unison: Fix manual generation.
Date: Sun, 17 Mar 2019 13:37:55 -0400 (EDT)

roptat pushed a commit to branch master
in repository guix.

commit 50ab554bd5b8f81c1d3a52901bdfbdac143b86f4
Author: Julien Lepiller <address@hidden>
Date:   Sun Mar 17 18:36:02 2019 +0100

    gnu: unison: Fix manual generation.
    
    * gnu/packages/ocaml.scm (unison)[arguments]: Fix documentation
    generation.
---
 gnu/packages/ocaml.scm | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index ec1c080..801611b 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -816,14 +816,10 @@ libpanel, librsvg and quartz.")
                (let ((doc (string-append (assoc-ref outputs "doc")
                                          "/share/doc/unison")))
                  (mkdir-p doc)
-                 ;; This is a workaround to prevent a build failure. Running
-                 ;; make docs somehow allows it to pass, but the generated
-                 ;; documentation is not pretty.
-                 (catch #t
-                   (lambda _
-                     (invoke "make" "docs"
-                             "TEXDIRECTIVES=\\\\draftfalse"))
-                   (lambda _ #t))
+                 ;; Remove an '\n' that prevents the doc to be generated
+                 ;; correctly with newer hevea.
+                 (substitute* "doc/local.tex"
+                   (("----SNIP----.*") "----SNIP----"))
                  ;; This file needs write-permissions, because it's
                  ;; overwritten by 'docs' during documentation generation.
                  (chmod "src/strings.ml" #o600)



reply via email to

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