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.
This commit is contained in:
parent
958d25ad2a
commit
eb354bdacb
|
@ -173,12 +173,15 @@ printing, and psresize, for adjusting page sizes.")
|
||||||
(substitute* "base/gscdef.c"
|
(substitute* "base/gscdef.c"
|
||||||
(("GS_DOCDIR")
|
(("GS_DOCDIR")
|
||||||
"\"~/.guix-profile/share/doc/ghostscript\""))))
|
"\"~/.guix-profile/share/doc/ghostscript\""))))
|
||||||
(add-after 'build 'build-so
|
(replace 'build
|
||||||
(lambda _
|
(lambda _
|
||||||
(zero? (system* "make" "so"))))
|
;; Build 'libgs.so', but don't build the statically-linked 'gs'
|
||||||
(add-after 'install 'install-so
|
;; binary (saves 18 MiB).
|
||||||
(lambda _
|
(zero? (system* "make" "so" "-j"
|
||||||
(zero? (system* "make" "install-so")))))))
|
(number->string (parallel-job-count))))))
|
||||||
|
(replace 'install
|
||||||
|
(lambda _
|
||||||
|
(zero? (system* "make" "soinstall")))))))
|
||||||
(synopsis "PostScript and PDF interpreter")
|
(synopsis "PostScript and PDF interpreter")
|
||||||
(description
|
(description
|
||||||
"Ghostscript is an interpreter for the PostScript language and the PDF
|
"Ghostscript is an interpreter for the PostScript language and the PDF
|
||||||
|
|
Loading…
Reference in New Issue