gnu: ghostscript: Add `gs' binary.
authorEfraim Flashner <efraim@flashner.co.il>
Mon, 11 Jul 2016 16:04:49 +0000 (19:04 +0300)
committerEfraim Flashner <efraim@flashner.co.il>
Fri, 2 Sep 2016 10:08:25 +0000 (13:08 +0300)
This is a followup to commit eb354bdacbf4154ec66038dac07f19bf4ced1fad.

* gnu/packages/ghostscript.scm (ghostscript)[arguments]: Create a
symlink from `gsc' to `gs' to provide a `gs' binary.

gnu/packages/ghostscript.scm

index f013a73..714544c 100644 (file)
@@ -182,7 +182,12 @@ printing, and psresize, for adjusting page sizes.")
                             (number->string (parallel-job-count))))))
         (replace 'install
           (lambda _
-            (zero? (system* "make" "soinstall")))))))
+            (zero? (system* "make" "soinstall"))))
+        (add-after 'install 'create-gs-symlink
+          (lambda* (#:key outputs #:allow-other-keys)
+            (let ((out (assoc-ref outputs "out")))
+              ;; some programs depend on having a 'gs' binary available
+              (symlink "gsc" (string-append out "/bin/gs"))))))))
    (synopsis "PostScript and PDF interpreter")
    (description
     "Ghostscript is an interpreter for the PostScript language and the PDF