summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorSimon South <simon@simonsouth.net>2023-09-27 10:55:36 -0400
committerLudovic Courtès <ludo@gnu.org>2023-09-28 11:44:09 +0200
commit06b4aa57b735c6603084ca5568cd79db4888eae3 (patch)
tree94fcd93ccafa5900cba43a0d4d742bec5a9d0b3f /gnu/packages
parent9698a23f52a7b7ecc53b1aa4ab43ab846fc230d7 (diff)
downloadguix-06b4aa57b735c6603084ca5568cd79db4888eae3.tar.gz
gnu: ucsim: Move documentation to "doc" output.
* gnu/packages/embedded.scm (ucsim)[arguments]<#:phases>: Expand
"patch-makefiles" phase to set correct documentation-installation path.
[outputs]: Add with "out", "doc".

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/embedded.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm
index 517e5bcbf2..6a21a71d07 100644
--- a/gnu/packages/embedded.scm
+++ b/gnu/packages/embedded.scm
@@ -1610,7 +1610,13 @@ handling communication with eBUS devices connected to a 2-wire bus system
           (add-after 'unpack 'patch-makefiles
             (lambda _
               (substitute* (find-files "." "(\\.mk$|\\.in$)")
-                (("/bin/sh") (which "sh"))))))
+                (("/bin/sh") (which "sh")))
+
+              ;; Ensure the documentation is installed to the correct path,
+              ;; without a duplicate "ucsim" segment (necessary as we are
+              ;; building μCsim outside of SDCC).
+              (substitute* "doc/Makefile.in"
+                (("@docdir@/ucsim") "@docdir@")))))
       ;; μCsim's regression-test suite is of little use in this context since
       ;; it doesn't stop or return an error code when it encounters a problem.
       #:tests? #f))
@@ -1618,6 +1624,7 @@ handling communication with eBUS devices connected to a 2-wire bus system
      (list ncurses))
     (native-inputs
      (list bison flex))
+    (outputs '("out" "doc"))
     (home-page "http://mazsola.iit.uni-miskolc.hu/ucsim/")
     (synopsis "Simulators for various microcontroller families")
     (description "μCsim is a collection of software simulators for