[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: gnu: qpdf: Remove run-time dependency on Perl.
From: |
Ludovic Courtès |
Subject: |
02/06: gnu: qpdf: Remove run-time dependency on Perl. |
Date: |
Mon, 02 May 2016 15:58:52 +0000 |
civodul pushed a commit to branch core-updates
in repository guix.
commit 503409b543186df5839f7029a42acff50cc53761
Author: Ludovic Courtès <address@hidden>
Date: Mon May 2 15:41:46 2016 +0200
gnu: qpdf: Remove run-time dependency on Perl.
* gnu/packages/pdf.scm (qpdf)[source](snippet): New field.
[arguments]: Add #:disallowed-references.
[inputs]: Move PERL to...
[native-inputs]: ... here.
---
gnu/packages/pdf.scm | 41 ++++++++++++++++++++++++++---------------
1 file changed, 26 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 8f9f5dd..cfa9a9c 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -471,27 +471,38 @@ and examining the file structure (pdfshow).")
(uri (string-append "mirror://sourceforge/qpdf/qpdf-"
version ".tar.gz"))
(sha256 (base32
- "1lq1v7xghvl6p4hgrwbps3a13ad6lh4ib3myimb83hxgsgd4n5nm"))))
+ "1lq1v7xghvl6p4hgrwbps3a13ad6lh4ib3myimb83hxgsgd4n5nm"))
+ (modules '((guix build utils)))
+ (snippet
+ ;; Replace shebang with the bi-lingual shell/Perl trick to remove
+ ;; dependency on Perl.
+ '(substitute* "qpdf/fix-qdf"
+ (("#!/usr/bin/env perl")
+ "\
+eval '(exit $?0)' && eval 'exec perl -wS \"$0\" ${1+\"address@hidden"}'
+ & eval 'exec perl -wS \"$0\" $argv:q'
+ if 0;\n")))))
(build-system gnu-build-system)
(arguments
- '(#:phases (alist-cons-before
- 'configure 'patch-paths
- (lambda _
- (substitute* "make/libtool.mk"
- (("SHELL=/bin/bash")
- (string-append "SHELL=" (which "bash"))))
- (substitute* (append
- '("qtest/bin/qtest-driver")
- (find-files "." "\\.test"))
- (("/usr/bin/env") (which "env"))))
- %standard-phases)))
+ `(#:disallowed-references (,perl)
+ #:phases (alist-cons-before
+ 'configure 'patch-paths
+ (lambda _
+ (substitute* "make/libtool.mk"
+ (("SHELL=/bin/bash")
+ (string-append "SHELL=" (which "bash"))))
+ (substitute* (append
+ '("qtest/bin/qtest-driver")
+ (find-files "." "\\.test"))
+ (("/usr/bin/env") (which "env"))))
+ %standard-phases)))
(native-inputs
- `(("pkg-config" ,pkg-config)))
+ `(("pkg-config" ,pkg-config)
+ ("perl" ,perl)))
(propagated-inputs
`(("pcre" ,pcre)))
(inputs
- `(("zlib" ,zlib)
- ("perl" ,perl)))
+ `(("zlib" ,zlib)))
(synopsis "Command-line tools and library for transforming PDF files")
(description
"QPDF is a command-line program that does structural, content-preserving
- branch core-updates updated (c74c7c1 -> b5e0c87), Ludovic Courtès, 2016/05/02
- 01/06: gnu: pcre: Add "bin" output., Ludovic Courtès, 2016/05/02
- 02/06: gnu: qpdf: Remove run-time dependency on Perl.,
Ludovic Courtès <=
- 05/06: gnu: openssl: Add "doc" output., Ludovic Courtès, 2016/05/02
- 03/06: gnu: openssl: Disallow references to Perl., Ludovic Courtès, 2016/05/02
- 04/06: gnu: openssl: Move static libraries to "static" output., Ludovic Courtès, 2016/05/02
- 06/06: gnu: guile: Do not build static libraries., Ludovic Courtès, 2016/05/02