[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/09: gnu: ghostscript: Add "doc" output.
From: |
Ludovic Courtès |
Subject: |
01/09: gnu: ghostscript: Add "doc" output. |
Date: |
Tue, 30 Jun 2015 14:07:17 +0000 |
civodul pushed a commit to branch wip-diet
in repository guix.
commit 9c6aeab90c0726eb42213e5bdf2a4a31db653f6f
Author: Ludovic Courtès <address@hidden>
Date: Fri Jun 26 10:20:22 2015 +0200
gnu: ghostscript: Add "doc" output.
* gnu/packages/ghostscript.scm (ghostscript)[source](snippet): New field.
[outputs]: New field.
[arguments]: Add 'remove-doc-reference' phase.
---
gnu/packages/ghostscript.scm | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm
index f902670..09306e9 100644
--- a/gnu/packages/ghostscript.scm
+++ b/gnu/packages/ghostscript.scm
@@ -129,8 +129,15 @@ printing, and psresize, for adjusting page sizes.")
(sha256
(base32
"0q4jj41p0qbr4mgcc9q78f5zs8cm1g57wgryhsm2yq4lfslm3ib1"))
- (patches (list (search-patch "ghostscript-runpath.patch")))))
+ (patches (list (search-patch "ghostscript-runpath.patch")))
+ (modules '((guix build utils)))
+ (snippet
+ ;; Honor --docdir.
+ '(substitute* "Makefile.in"
+ (("^docdir=.*$") "docdir = @address@hidden")
+ (("^exdir=.*$") "exdir = $(docdir)/examples\n")))))
(build-system gnu-build-system)
+ (outputs '("out" "doc")) ;16 MiB of HTML/PS doc + examples
(inputs `(("freetype" ,freetype)
("lcms" ,lcms)
("libjpeg-8" ,libjpeg-8)
@@ -152,6 +159,14 @@ printing, and psresize, for adjusting page sizes.")
(("/bin/sh") (which "bash")))
(substitute* "base/unixhead.mak"
(("/bin/sh") (which "bash")))))
+ (add-after 'configure 'remove-doc-reference
+ (lambda _
+ ;; Don't retain a reference to the 'doc' output in 'gs'.
+ ;; The only use of this definition is in the output of
+ ;; 'gs --help', so this change is fine.
+ (substitute* "base/gscdef.c"
+ (("GS_DOCDIR")
+ "\"~/.guix-profile/share/doc/ghostscript\""))))
(add-after 'build 'build-so
(lambda _
(zero? (system* "make" "so"))))
- branch wip-diet created (now be4d7f5), Ludovic Courtès, 2015/06/30
- 05/09: gnu: cups-filter: Install backends and filters under lib/cups., Ludovic Courtès, 2015/06/30
- 03/09: gnu: mysql: Strip references and GCC and other build-time dependencies., Ludovic Courtès, 2015/06/30
- 06/09: gnu: qt-4: Use 'modify-phases'., Ludovic Courtès, 2015/06/30
- 09/09: gnu: gnutls: Move man3 pages to "doc" output., Ludovic Courtès, 2015/06/30
- 02/09: gnu: mutt: Don't retain reference to GCC., Ludovic Courtès, 2015/06/30
- 01/09: gnu: ghostscript: Add "doc" output.,
Ludovic Courtès <=
- 07/09: gnu: qt-4: Use a more standard directory layout., Ludovic Courtès, 2015/06/30
- 08/09: gnu: qt-4: Remove reference from "out" to "doc"., Ludovic Courtès, 2015/06/30
- 04/09: gnu: mysql: Remove unnecessary binaries., Ludovic Courtès, 2015/06/30