[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#71787] [PATCH 12/12] gnu: Add ghostscript-documentation.
From: |
David Elsing |
Subject: |
[bug#71787] [PATCH 12/12] gnu: Add ghostscript-documentation. |
Date: |
Wed, 26 Jun 2024 19:27:05 +0000 |
* 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
- [bug#71787] [PATCH 10/12] gnu: Add python-svglib., (continued)
- [bug#71787] [PATCH 10/12] gnu: Add python-svglib., David Elsing, 2024/06/26
- [bug#71787] [PATCH 04/12] gnu: ijs: Remove unneeded files and build shared library., David Elsing, 2024/06/26
- [bug#71787] [PATCH 09/12] gnu: Add python-pymupdf., David Elsing, 2024/06/26
- [bug#71787] [PATCH 05/12] gnu: ghostscript: Unbundle dependencies and remove non-free parts., David Elsing, 2024/06/26
- [bug#71787] [PATCH 02/12] gnu: Add memento., David Elsing, 2024/06/26
- [bug#71787] [PATCH 08/12] gnu: Add mupdf/tesseract., David Elsing, 2024/06/26
- [bug#71787] [PATCH 11/12] gnu: Add python-rst2pdf., David Elsing, 2024/06/26
- [bug#71787] [PATCH 03/12] gnu: Add extract., David Elsing, 2024/06/26
- [bug#71787] [PATCH 07/12] gnu: mupdf: Update to 1.24.4 and unbundle remaining dependencies., David Elsing, 2024/06/26
- [bug#71787] [PATCH 06/12] gnu: Add ghostscript/tesseract., David Elsing, 2024/06/26
- [bug#71787] [PATCH 12/12] gnu: Add ghostscript-documentation.,
David Elsing <=