[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/63: gnu: Add 'ghostscript-gs' and 'ghostscript-gs-with-x'.
From: |
Mark H. Weaver |
Subject: |
08/63: gnu: Add 'ghostscript-gs' and 'ghostscript-gs-with-x'. |
Date: |
Thu, 4 Aug 2016 07:44:54 +0000 (UTC) |
mhw pushed a commit to branch core-updates-2016-08-01
in repository guix.
commit 71eba3ebc1b37b1623ad1cf29fadd711adafc043
Author: Ludovic Courtès <address@hidden>
Date: Mon Jul 25 11:36:51 2016 +0200
gnu: Add 'ghostscript-gs' and 'ghostscript-gs-with-x'.
* gnu/packages/ghostscript.scm (ghostscript-wrapper): New procedure.
(ghostscript-gs, ghostscript-gs/x): New variables.
---
gnu/packages/ghostscript.scm | 37 ++++++++++++++++++++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm
index 417f47e..f013a73 100644
--- a/gnu/packages/ghostscript.scm
+++ b/gnu/packages/ghostscript.scm
@@ -33,7 +33,8 @@
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
- #:use-module (guix build-system gnu))
+ #:use-module (guix build-system gnu)
+ #:use-module (guix build-system trivial))
(define-public lcms
(package
@@ -198,6 +199,40 @@ output file formats and printers.")
("libxt" ,libxt)
,@(package-inputs ghostscript)))))
+(define (ghostscript-wrapper name ghostscript)
+ ;; Return a GHOSTSCRIPT wrapper that provides the 'gs' command.
+ ;; See <https://lists.gnu.org/archive/html/guix-devel/2016-07/msg00987.html>.
+ (package
+ (name name)
+ (version (package-version ghostscript))
+ (source #f)
+ (build-system trivial-build-system)
+ (inputs `(("ghostscript" ,ghostscript)))
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder (begin
+ (use-modules (guix build utils))
+
+ (let* ((out (assoc-ref %outputs "out"))
+ (bin (string-append out "/bin"))
+ (gs (assoc-ref %build-inputs "ghostscript")))
+ (mkdir-p bin)
+ (with-directory-excursion bin
+ (symlink (string-append gs "/bin/gsc") "gs")
+ #t)))))
+ (synopsis "Wrapper providing Ghostscript's 'gs' command")
+ (description
+ "This package provides the @command{gs} command, which used to be
+provided by Ghostscript itself and no longer is.")
+ (license (package-license ghostscript))
+ (home-page (package-home-page ghostscript))))
+
+(define-public ghostscript-gs
+ (ghostscript-wrapper "ghostscript-gs" ghostscript))
+
+(define-public ghostscript-gs/x
+ (ghostscript-wrapper "ghostscript-gs-with-x" ghostscript/x))
+
(define-public ijs
(package
(name "ijs")
- 13/63: gnu: lpsolve: Fix compilation issue., (continued)
- 13/63: gnu: lpsolve: Fix compilation issue., Mark H. Weaver, 2016/08/04
- 15/63: gnu: lout: Make ghostscript-gs a native input., Mark H. Weaver, 2016/08/04
- 19/63: gnu: address@hidden: Delete faulty test on mips64el only., Mark H. Weaver, 2016/08/04
- 18/63: gnu: python-2.7: Disable test failing on mips64el-linux., Mark H. Weaver, 2016/08/04
- 11/63: gnu: fastcap: Build with ghostscript-gs., Mark H. Weaver, 2016/08/04
- 17/63: gnu: skribilo: Add input ghostscript-gs., Mark H. Weaver, 2016/08/04
- 21/63: gnu: asymptote: Add native input gs., Mark H. Weaver, 2016/08/04
- 35/63: gnu: r-bsgenome: Update to 1.40.1., Mark H. Weaver, 2016/08/04
- 31/63: gnu: r-genomicranges: Update to 1.24.2., Mark H. Weaver, 2016/08/04
- 16/63: gnu: lout: Add input ghostscript., Mark H. Weaver, 2016/08/04
- 08/63: gnu: Add 'ghostscript-gs' and 'ghostscript-gs-with-x'.,
Mark H. Weaver <=
- 12/63: gnu: lpsolve: Fail as early as possible., Mark H. Weaver, 2016/08/04
- 45/63: gnu: perl-xml-libxml: Update to 2.0128., Mark H. Weaver, 2016/08/04
- 46/63: gnu: python-alembic: Update to 0.8.7., Mark H. Weaver, 2016/08/04
- 50/63: gnu: tcc: Use "kernel-headers" instead of "linux-headers" to designate input., Mark H. Weaver, 2016/08/04
- 43/63: gnu: Add glibc 2.22., Mark H. Weaver, 2016/08/04
- 23/63: gnu: r-genomicfeatures: Update to 1.24.5., Mark H. Weaver, 2016/08/04
- 24/63: gnu: r-genomeinfodb: Update to 1.8.3., Mark H. Weaver, 2016/08/04
- 20/63: Merge remote-tracking branch 'origin/master' into core-updates, Mark H. Weaver, 2016/08/04
- 28/63: gnu: r-biostrings: Update to 2.40.2., Mark H. Weaver, 2016/08/04
- 02/63: Merge branch 'master' into core-updates, Mark H. Weaver, 2016/08/04