3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: mupdf: Use G-expressions.

* gnu/packages/pdf.scm (mupdf)[source, arguments]: Rewrite using
G-expressions.
This commit is contained in:
Efraim Flashner 2022-05-09 23:27:47 +03:00
parent 489dba600b
commit f7da6b0be5
Signed by untrusted user: efraim
GPG key ID: 41AAE7DCCA3D8351

View file

@ -714,14 +714,15 @@ extracting content or merging files.")
(base32 "0gl0wf16m1cafs20h3v1f4ysf7zlbijjyd6s1r1krwvlzriwdsmm"))
(modules '((guix build utils)))
(snippet
'(begin
#~(begin
;; Remove bundled software.
(let* ((keep (list "extract"
"lcms2")) ; different from our lcms2 package
(from "thirdparty")
(kept (string-append from "~temp")))
(mkdir-p kept)
(for-each (lambda (file) (rename-file (string-append from "/" file)
(for-each (lambda (file)
(rename-file (string-append from "/" file)
(string-append kept "/" file)))
keep)
(delete-file-recursively from)
@ -744,18 +745,20 @@ extracting content or merging files.")
(native-inputs
(list pkg-config))
(arguments
`(#:tests? #f ; no check target
#:make-flags (list "verbose=yes"
(string-append "CC=" ,(cc-for-target))
(list
#:tests? #f ; no check target
#:make-flags
#~(list "verbose=yes"
(string-append "CC=" #$(cc-for-target))
"XCFLAGS=-fpic"
"USE_SYSTEM_LIBS=yes"
"USE_SYSTEM_MUJS=yes"
"shared=yes"
;; Even with the linkage patch we must fix RUNPATH.
(string-append "LDFLAGS=-Wl,-rpath="
(assoc-ref %outputs "out") "/lib")
(string-append "prefix=" (assoc-ref %outputs "out")))
#:phases (modify-phases %standard-phases
(string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib")
(string-append "prefix=" #$output))
#:phases
#~(modify-phases %standard-phases
(delete 'configure)))) ; no configure script
(home-page "https://mupdf.com")
(synopsis "Lightweight PDF viewer and toolkit")