me
/
guix
Archived
1
0
Fork 0

gnu: QPDF: Update to 11.1.0.

* gnu/packages/pdf.scm (qpdf): Update to 11.1.0.
[source](modules, snippet): Remove.
[build-system]: Change to CMAKE-BUILD-SYSTEM.
[arguments]: Add #:configure-flags.  Remove #:phases and
 #:disallowed-references.
master
Marius Bakke 2022-09-16 19:59:37 +02:00
parent c7966ba3ef
commit 30fff95ee6
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 4 additions and 28 deletions

View File

@ -845,41 +845,17 @@ line tools for batch rendering @command{pdfdraw}, rewriting files
(define-public qpdf
(package
(name "qpdf")
(version "10.6.3")
(version "11.1.0")
(source (origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/qpdf/qpdf/" version
"/qpdf-" version ".tar.gz"))
(sha256
(base32
"049q94rzlcbdr09rvl8xfj3924mk7rfm35x8cg4nisl4lnr27z78"))
(modules '((guix build utils)))
(snippet
#~(begin
;; grep 3.8 emits a warning about 'egrep' being deprecated
;; which breaks some tests. Adjust accordingly.
;; Try removing this for QPDF >= 11.
(substitute* '("build-scripts/build-doc"
"qpdf/qtest/qpdf/diff-encrypted"
"qpdf/qtest/qpdf/diff-ignore-ID-version")
(("egrep")
"grep -E"))))))
(build-system gnu-build-system)
"0bg2d4585nxss2zakq105ibhzzsa1bhwpmr0k8752fg2qqxcz9rl"))))
(build-system cmake-build-system)
(arguments
(list
#:disallowed-references (list perl)
#:phases
#~(modify-phases %standard-phases
(add-before 'configure 'patch-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "make/libtool.mk"
(("SHELL=/bin/bash")
(string-append "SHELL="
(search-input-file inputs "/bin/bash"))))
(substitute*
(append '("qtest/bin/qtest-driver")
(find-files "." "\\.test"))
(("/usr/bin/env") (which "env"))))))))
(list #:configure-flags #~'("-DBUILD_STATIC_LIBS=OFF")))
(native-inputs
(list perl pkg-config))
(propagated-inputs