From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AJtHHU7y7mI7VwEAbAwnHQ (envelope-from ) for ; Sun, 07 Aug 2022 00:59:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UARXHU7y7mJITwAA9RJhRA (envelope-from ) for ; Sun, 07 Aug 2022 00:59:26 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 17E1B1681E for ; Sun, 7 Aug 2022 00:59:26 +0200 (CEST) Received: from localhost ([::1]:37614 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKSlQ-000447-QK for larch@yhetil.org; Sat, 06 Aug 2022 18:59:24 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches From: Antero Mejr via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659826766; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=EXpQFE//rrqqrnOeJuFKvgKwm3iDcr/iT6aTw93Vifw=; b=PtlYDNqLxHPq/1E++O3sWR4ajrpsDqLWLaDCJCRvw1yTHh+MmFi+cMJAj5OKmPfMDWOlk4 /L9XVez+gjsQbvLUnWwrdtm3n7IIpAGQ4umIelrreNmnLeB6Er9D4nQF+fiYt9uF15FIie Z12Td31kPAQnDMAtGfn9lgKCxJKWt86IfUpRbg3BQnquSzYXYcZlYJIe6zXnCOUMpIwz09 RsD8kOdfVyIRhOoXDr/HTS/F1QnFeXDG30/iQ8zg5CZ3nc0AXvjHQZScJyIjH1jj3SkyiJ 3fKWZnR3mmDNIDWr7bRjujcd1dunjJZddFVJ6I+7oXtMGyKtvPpHa+Cw5eYIMg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659826766; a=rsa-sha256; cv=none; b=rrBpWW7u3sgkHmcVjka+QBzMqNb2R6WHg1h4z1nLLkLoqsVxdl0XpjudcBY1Zr3xM78/9j ZAV+H2UdpRhYhsrK2azEhbGz0o27t5/+YRJGvNGq4n7UdAMZXcRCf+afgKc41U/0dOQxT2 OCiQqMweFP0WjZJAp/ABNU0p6iVZjedjzsUI6mZFmw225Oc8XEVwiKd7z/+sONKvyvk+VL 3/vg50p4K9W/6WrTaxrmB7tXFXFTv1MA25wmvT6dLrFBFm/wN3K3ME/UIkqrUeAURGMlKK sZXQretd+IaCa9OglSZSuxNKk029m2RjsBqQElruQmW4gMOR3KCp/Wl/NwPq9g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b="D/dr9Dgg"; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=S7Nme1Ue; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.00 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b="D/dr9Dgg"; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=S7Nme1Ue; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 17E1B1681E X-Spam-Score: -3.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: AUYMsuKeO11c * 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)))) -- 2.37.1