[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#66001] [PATCH v2 3/4] gnu: ucsim: Move documentation to "doc" outpu
From: |
Simon South |
Subject: |
[bug#66001] [PATCH v2 3/4] gnu: ucsim: Move documentation to "doc" output. |
Date: |
Wed, 27 Sep 2023 10:55:36 -0400 |
* gnu/packages/embedded.scm (ucsim)[arguments]<#:phases>: Expand
"patch-makefiles" phase to set correct documentation-installation path.
[outputs]: Add with "out", "doc".
---
gnu/packages/embedded.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
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 @@ (define-public ucsim
(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 @@ (define-public ucsim
(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
--
2.41.0
- [bug#66001] [PATCH 0/4] gnu: ucsim: Update to 0.8.0; other improvements., Simon South, 2023/09/15
- [bug#66001] [PATCH 4/4] gnu: ucsim: Update to 0.8.0., Simon South, 2023/09/15
- [bug#66001] [PATCH 3/4] gnu: ucsim: Move documentation to "doc" output., Simon South, 2023/09/15
- [bug#66001] [PATCH 1/4] gnu: ucsim: Use gexps., Simon South, 2023/09/15
- [bug#66001] [PATCH 2/4] gnu: ucsim: Disable tests., Simon South, 2023/09/15
- [bug#66001] [PATCH v2 0/4] gnu: ucsim: Update to 0.8.0; other improvements., Simon South, 2023/09/27