From patchwork Sat Aug 6 22:57:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 41317 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A52C327BBEA; Sat, 6 Aug 2022 23:59:31 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6368127BBE9 for ; Sat, 6 Aug 2022 23:59:31 +0100 (BST) Received: from localhost ([::1]:37614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKSlW-000447-HR for patchwork@mira.cbaines.net; Sat, 06 Aug 2022 18:59:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKSl4-0003w5-Sn for guix-patches@gnu.org; Sat, 06 Aug 2022 18:59:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45823) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKSl4-00023X-Jx for guix-patches@gnu.org; Sat, 06 Aug 2022 18:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oKSl4-00007w-Fi for guix-patches@gnu.org; Sat, 06 Aug 2022 18:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56576] [PATCH 1/2] gnu: Add stddoc. References: <20220715145735.5752-1-antero@mailbox.org> In-Reply-To: <20220715145735.5752-1-antero@mailbox.org> Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 Aug 2022 22:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56576 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56576@debbugs.gnu.org Cc: Antero Mejr , iyzsong@envs.net Received: via spool by 56576-submit@debbugs.gnu.org id=B56576.1659826694405 (code B ref 56576); Sat, 06 Aug 2022 22:59:02 +0000 Received: (at 56576) by debbugs.gnu.org; 6 Aug 2022 22:58:14 +0000 Received: from localhost ([127.0.0.1]:35566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKSkI-00006P-1K for submit@debbugs.gnu.org; Sat, 06 Aug 2022 18:58:14 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:34496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKSkF-00006B-6L for 56576@debbugs.gnu.org; Sat, 06 Aug 2022 18:58:12 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4M0dCw5k8Rz9sT6; Sun, 7 Aug 2022 00:58:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1659826684; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=EXpQFE//rrqqrnOeJuFKvgKwm3iDcr/iT6aTw93Vifw=; b=D/dr9Dgg7fnvIgRod/GissRZ7RbV/jBUC0RRmqwngSVLpa4j9oOV7+cZuTua3WusckI+DS Tpq5i5My36k7g4M6Zv9MdjkLiauypSDf7tnzJCjkg8/4EcPm6fEKJ3ojYbviWewjS+iKqs jxxo0Tj5PEjp4LiivU0mZX87mYNnP5SExyAxOqMkTJGmrOaSDqN37RgYPSLvBYo71oFAg1 gGFMbH7qNk2IfKOETOm4h9o1zlXjhSJVBk9J7JpF/EiO1KSVOV3rSv22uJ5OYON58nmDtq DhgafQlZGAdhg/V4NNGbsFXFzG9fYAF+xmSafqKeldcRCWS9ZwCIq9rd5s6rSQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1659826682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=EXpQFE//rrqqrnOeJuFKvgKwm3iDcr/iT6aTw93Vifw=; b=S7Nme1Ues6wleM6Hqriy0MWCwhLF5i5E1VjdRpWhTqaHFgTqI5G9mKWou7jg8mZ5Ta5uo+ Zu5ZF8VaMdDn0u/8zVsjd5mpcJNjij9RMexd9U/BJXNcFpiEwOMGwaiJTb5q7E8bXBvW9B Sb0CJvuvRqKZLPop80YzySafjtip0O/40C/NbNyRoaqr6gwXRPJ961qIbO/pFOLyFBCLeQ AkgEo/w4TIeUWgbyfqdqbnpWpdRf7Q/txJOkEeHLCqnuyOOKCduvfdfG3U1D5idBHCDQLh wIi2jsyEjCNNpP3EiwTwhiHznC11xTxm5lI6JwgcCwh1ajkwYfaQ3dy6OBjA+w== Date: Sat, 6 Aug 2022 18:57:42 -0400 Message-Id: <20220806225743.422102-1-antero@mailbox.org> MIME-Version: 1.0 X-MBO-RS-ID: 1e2b85f6256603f536b X-MBO-RS-META: qwk9jpqf6o1qnm93b6m7t9yy1xo4zd6c X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches X-Patchwork-Original-From: Antero Mejr via Guix-patches via From: Antero Mejr X-getmail-retrieved-from-mailbox: Patches * gnu/packages/documentation.scm (stddoc): New variable. --- Need this to generate Nuklear's HTML doc from source (code comments). gnu/packages/documentation.scm | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/documentation.scm b/gnu/packages/documentation.scm index 6f24149b5d..9b98db4d40 100644 --- a/gnu/packages/documentation.scm +++ b/gnu/packages/documentation.scm @@ -393,3 +393,45 @@ (define-public zeal (description "Zeal is a simple offline documentation browser inspired by Dash.") (license gpl3+)))) + +(define-public stddoc + (let ((commit "6eef9deaf2e36bae812f50e448a8012b3e5efb14")) + (package + (name "stddoc") + (version "1.0.2") + (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 + (delete 'configure) + (replace 'build + (lambda _ + (invoke "gcc" "-O2" "-g" "-o" "stddoc" "stddoc.c") + (with-input-from-file "stddoc.c" + (lambda _ + (with-output-to-file "stddoc.c.html" + (lambda _ + (invoke "./stddoc"))))))) + (replace 'install + (lambda _ + (install-file "stddoc" + (string-append #$output "/bin")) + (install-file "stddoc.c.html" + (string-append #$output + "/share/doc"))))))) + (synopsis "Documentation generator for 60 programming languages") + (description "@code{stddoc.c} is a tiny documentation generator for 60 +programming languages. Markdeep code comments are extracted from stdin and +printed into stdout as a HTML file.") + (license unlicense))))