guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/05: gnu: ghostscript: Do not build the statically-linked 'gs' binary.


From: Ludovic Courtès
Subject: 04/05: gnu: ghostscript: Do not build the statically-linked 'gs' binary.
Date: Mon, 9 May 2016 13:56:17 +0000 (UTC)

civodul pushed a commit to branch core-updates
in repository guix.

commit eb354bdacbf4154ec66038dac07f19bf4ced1fad
Author: Ludovic Courtès <address@hidden>
Date:   Mon May 9 15:54:34 2016 +0200

    gnu: ghostscript: Do not build the statically-linked 'gs' binary.
    
    * gnu/packages/ghostscript.scm (ghostscript)[arguments]: Remove
    'build-so' and 'install-so' phases.  Replace 'build' and 'install'
    phases.
---
 gnu/packages/ghostscript.scm |   15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm
index 8c3a99a..ae00eea 100644
--- a/gnu/packages/ghostscript.scm
+++ b/gnu/packages/ghostscript.scm
@@ -173,12 +173,15 @@ printing, and psresize, for adjusting page sizes.")
                      (substitute* "base/gscdef.c"
                        (("GS_DOCDIR")
                         "\"~/.guix-profile/share/doc/ghostscript\""))))
-        (add-after 'build 'build-so
-                   (lambda _
-                     (zero? (system* "make" "so"))))
-        (add-after 'install 'install-so
-                   (lambda _
-                     (zero? (system* "make" "install-so")))))))
+        (replace 'build
+          (lambda _
+            ;; Build 'libgs.so', but don't build the statically-linked 'gs'
+            ;; binary (saves 18 MiB).
+            (zero? (system* "make" "so" "-j"
+                            (number->string (parallel-job-count))))))
+        (replace 'install
+          (lambda _
+            (zero? (system* "make" "soinstall")))))))
    (synopsis "PostScript and PDF interpreter")
    (description
     "Ghostscript is an interpreter for the PostScript language and the PDF



reply via email to

[Prev in Thread] Current Thread [Next in Thread]