From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id mBswJgZsfGZdPgAA62LTzQ:P1 (envelope-from ) for ; Wed, 26 Jun 2024 19:29:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id mBswJgZsfGZdPgAA62LTzQ (envelope-from ) for ; Wed, 26 Jun 2024 21:29:10 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=IuS9Lhwg; 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"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1719430150; h=from:from:sender:sender: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=+RQOTSa5dw+aIKGgYBU49xI7HU67wJdBO4k15jvD2+M=; b=XHHFfpEcJKDB2DTFWhgRflNv7gE/zo4DhhvDGvSqjgCWIZupgop0S2SGYuctHOWd/H8vA1 hloHUgT8O3ues7ErXC13G5znvhy7ZG4bKPUmhoOrVauhf2GfaPEuD8jKeI+LTQWYVAnKW3 HERqX6ETHWwBZFjWzA1x3YlJx8Qm+vi8puYSJNBC+UNop9dO7+a6aAl7XPs4DziQwc+F7J tXIW0a1EDi2lezakzb+BtP+qj0c9/lxWvQwngs24Ah5IdU+DEydXvczaRCEE2ik4I67xwh /bU2nNVhuJSjf7VL7ITk7uSn701XEsR/yPLXqM25ZKg1Jr0avVvwfwDzjbkzBQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=IuS9Lhwg; 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"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1719430150; a=rsa-sha256; cv=none; b=fNmcacdoLU1jZNfLijzwB/ZV3RKyMzDQochyxEfFkuJjtFvmIwIKFB4hq8CsYh68l/LxDE stzoS1cC9kRcGFymQt2Te9E5bQCtaSo+XoMoOS/lPn/qZdcws/38JbKjqgZeiwj75Qa/TT F3s6vUi7I1fzqpNENIsc6x5a4iybDS9vEw7rtvMeUHoyOiTEIZ45VJ0boDpio926B3sDcK +KI+87kc6o5AUrki7ZP6ewm+gj5Zeitkh+ZJB6KbGqu3WTOdVsnR/k3QKfRfemJwx2OILS pD7fMGiUK6jpOlZsmolOYc+KLUlJMr3wtuhFRqazEJgJPMv7SqE8CyMBgi2/Aw== 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 0C61B76796 for ; Wed, 26 Jun 2024 21:29:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMYKE-0003x2-Il; Wed, 26 Jun 2024 15:29:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMYKC-0003vO-Cl for guix-patches@gnu.org; Wed, 26 Jun 2024 15:29:00 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sMYKC-00084t-4N for guix-patches@gnu.org; Wed, 26 Jun 2024 15:29:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sMYKE-0007G7-Ht for guix-patches@gnu.org; Wed, 26 Jun 2024 15:29:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71787] [PATCH 12/12] gnu: Add ghostscript-documentation. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 26 Jun 2024 19:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71787 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71787@debbugs.gnu.org Cc: David Elsing Received: via spool by 71787-submit@debbugs.gnu.org id=B71787.171943009427851 (code B ref 71787); Wed, 26 Jun 2024 19:29:02 +0000 Received: (at 71787) by debbugs.gnu.org; 26 Jun 2024 19:28:14 +0000 Received: from localhost ([127.0.0.1]:40365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMYJS-0007F9-Bn for submit@debbugs.gnu.org; Wed, 26 Jun 2024 15:28:14 -0400 Received: from mout02.posteo.de ([185.67.36.66]:37195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMYJ9-0007Bk-FW for 71787@debbugs.gnu.org; Wed, 26 Jun 2024 15:27:55 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 67724240101 for <71787@debbugs.gnu.org>; Wed, 26 Jun 2024 21:27:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1719430067; bh=zQqO612teFfMvB0tisRmIAWNC2uNZEvQ1IlE/3shbUM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=IuS9Lhwg8Om/TiOjTwux6zZjpXPRGRan4gtShKmryBY/nX6VlY0HBU2GsJqG3sXOi 1Vevk6TywLg8JjR98R7wX0o6z3mIdxUs0yqTxYJGm7LY9MHfsRs84lPq8fLxvn3CHF dQ/QulwclqlJW6owHA7WsZIcoZLtsAQaKq+W6uhOzmucD4cdicDIdXBJXyFoAPinlU ErQwVsJCDQE6QcVe3ihqr9a6xA0cB39EOsGpJW/3iiu8gAv4HDUV7LVtPo+6b6aTaS yZ1k8fV+i8G7dpPaGLq7evDPlZJb7f6Ttj0Xm7yWrSZhe2e9g+JLbKtrCX4//lvKFr Omx/U9mjOQguA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4W8Wtq040Yz9rxG; Wed, 26 Jun 2024 21:27:46 +0200 (CEST) From: David Elsing Date: Wed, 26 Jun 2024 19:27:05 +0000 Message-ID: <20240626192717.12818-12-david.elsing@posteo.net> In-Reply-To: <20240626192505.12401-1-david.elsing@posteo.net> References: <20240626192505.12401-1-david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: 3.93 X-Migadu-Queue-Id: 0C61B76796 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: 3.93 X-TUID: x0woA4jlGlk3 * gnu/packages/ghostscript.scm (ghostscript-documentation): New variable. --- gnu/packages/ghostscript.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm index 8c4cccb06e..6d2653e26e 100644 --- a/gnu/packages/ghostscript.scm +++ b/gnu/packages/ghostscript.scm @@ -40,6 +40,8 @@ (define-module (gnu packages ghostscript) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages sphinx) #:use-module (gnu packages tcl) #:use-module (gnu packages xorg) #:use-module ((guix licenses) #:prefix license:) @@ -49,6 +51,7 @@ (define-module (gnu packages ghostscript) #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system gnu) + #:use-module (guix build-system trivial) #:use-module (srfi srfi-1)) (define-public lcms @@ -417,6 +420,39 @@ (define-public ghostscript ;; inclusion in Postscript and PDF files. (license:non-copyleft "file://LICENSE"))))) +;; Put the documentation in a separate package due to a circular dependency of +;; ghostscript with python-sphinx. +(define-public ghostscript-documentation + (package + (inherit ghostscript) + (name (string-append (package-name ghostscript) "-documentation")) + (native-inputs + (list + python + python-pymupdf + python-rst2pdf + python-sphinx + python-sphinx-copybutton + python-sphinx-rtd-theme)) + (inputs '()) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (delete 'bootstrap) + (delete 'configure) + (replace 'build + (lambda _ + (chdir "doc") + (invoke "sphinx-build" "-b" "html" "src" "build"))) + (replace 'install + (lambda _ + (copy-recursively + "build" (string-append #$output "/share/doc/ghostscript/" + #$(package-version this-package)))))))) + (license license:agpl3+))) + (define-public ghostscript/x (package/inherit ghostscript (name (string-append (package-name ghostscript) "-with-x")) -- 2.45.1