[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/16: gnu: Add stddoc.
From: |
guix-commits |
Subject: |
06/16: gnu: Add stddoc. |
Date: |
Thu, 11 Apr 2024 06:56:36 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit f607663864dc021ed9ac84a1b755f02201ccd359
Author: Christina O'Donnell <cdo@mutix.org>
AuthorDate: Wed Apr 3 23:46:34 2024 +0100
gnu: Add stddoc.
* gnu/packages/documentation.scm (stddoc): New variable.
Change-Id: I0f60126ef78a45733ad7395352e9bad49561437b
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/documentation.scm | 57 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/gnu/packages/documentation.scm b/gnu/packages/documentation.scm
index 507a326f6e..12fbaf1d0c 100644
--- a/gnu/packages/documentation.scm
+++ b/gnu/packages/documentation.scm
@@ -521,3 +521,60 @@ markdeep/latest/markdeep\\.min\\.js\\?\"></script>")
be displayed in any web browser, whether local or remote. It supports
diagrams,
calendars, equations, and other features as extensions of Markdown syntax.")
(license license:bsd-2)))
+
+(define-public stddoc
+ (let ((commit "6eef9deaf2e36bae812f50e448a8012b3e5efb14")
+ (revision "1"))
+ (package
+ (name "stddoc")
+ (version (git-version "1.0.2" revision commit))
+ (home-page "https://github.com/r-lyeh/stddoc.c")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "06phjp7wbf4x1sagxwfapgv6iyiixmijxxbg2clb48kyvjg5mlwn"))
+ (snippet #~(delete-file "stddoc.c.html"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list #:tests? #f ; no tests
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'configure
+ (lambda _
+ (substitute* "stddoc.c"
+ ;; Note: For some reason quote characters are being
+ ;; inserted into urls and tags, eg.
+ ;;
'https://morgan3d.github.io/m""arkdeep/latest/markdeep.min.js?'
+ (("https://casual-effects.com/m\"*arkdeep/latest/")
+ (string-append #$markdeep "/share/markdeep/latest/"))
+ (("https://morgan3d.github.io/m\"*arkdeep/latest/")
+ (string-append #$markdeep
"/share/markdeep/latest/")))))
+ (replace 'build
+ (lambda _
+ (invoke #$(cc-for-target)
+ "-O2" "-g" "-o" "stddoc" "stddoc.c")
+ (with-input-from-file "stddoc.c"
+ (lambda _
+ (with-output-to-file "stddoc.c.html"
+ (lambda _
+ (invoke #$(if (%current-target-system)
+ "stddoc"
+ "./stddoc"))))))))
+ (replace 'install
+ (lambda _
+ (install-file "stddoc"
+ (string-append #$output "/bin"))
+ (install-file "stddoc.c.html"
+ (string-append #$output
+ "/share/doc")))))))
+ (native-inputs (if (%current-target-system) (list this-package) '()))
+ (synopsis "Documentation generator for multiple programming languages")
+ (description "@code{stddoc.c} is a tiny documentation generator with many
+supported programming languages. Markdeep code comments are extracted from
stdin and
+printed into stdout as a HTML file.")
+ (license license:unlicense))))
- branch master updated (d564e04ded -> 4e7337536b), guix-commits, 2024/04/11
- 04/16: gnu: speech-dispatcher: Update to 0.11.5., guix-commits, 2024/04/11
- 10/16: gnu: racket: Update to 8.12., guix-commits, 2024/04/11
- 05/16: gnu: Add markdeep., guix-commits, 2024/04/11
- 08/16: gnu: Add durden., guix-commits, 2024/04/11
- 11/16: gnu: chez-scheme: Reorganize package definitions., guix-commits, 2024/04/11
- 13/16: gnu: Deprecate chez-scheme-for-system.in favor of chez-scheme., guix-commits, 2024/04/11
- 06/16: gnu: Add stddoc.,
guix-commits <=
- 01/16: gnu: pt-scotch: Include <stdint.h> so ‘parmetis.h’ is usable., guix-commits, 2024/04/11
- 02/16: gnu: superlu-dist: Fix linking with the ParMETIS shim of pt-scotch., guix-commits, 2024/04/11
- 09/16: gnu: zuo: Update to 1.9., guix-commits, 2024/04/11
- 07/16: gnu: Add nuklear., guix-commits, 2024/04/11
- 12/16: gnu: chez-scheme: Update to 10.0.0., guix-commits, 2024/04/11
- 03/16: gnu: gdb: Update to 14.2., guix-commits, 2024/04/11
- 14/16: gnu: Fix uses of deprecated chez-scheme-for-system., guix-commits, 2024/04/11
- 15/16: gnu: chez-scheme: Update and simplify machine-type handling., guix-commits, 2024/04/11
- 16/16: gnu: chez-scheme: Bootstrap from source., guix-commits, 2024/04/11