me
/
guix
Archived
1
0
Fork 0

gnu: poppler: Use gexps in arguments.

* gnu/packages/pdf.scm (poppler)[arguments]: Transform from quasiquote to list
of gexps.
<#:phases>: Always bind, using %standard-phases as explicit default.
master
Liliana Marie Prikler 2022-02-06 00:29:16 +01:00
parent d5f8bfcd14
commit 65df5a4eb2
No known key found for this signature in database
GPG Key ID: 442A84B8C70E2F87
1 changed files with 14 additions and 16 deletions

View File

@ -257,22 +257,20 @@ please install the @code{flyer-composer-gui} package.")))
`(,glib "bin") ; glib-mkenums, etc. `(,glib "bin") ; glib-mkenums, etc.
gobject-introspection)) gobject-introspection))
(arguments (arguments
`(#:tests? #f ;no test data provided with the tarball (list
#:configure-flags #:tests? #f ;no test data provided with the tarball
(let* ((out (assoc-ref %outputs "out")) #:configure-flags
(lib (string-append out "/lib"))) #~(list "-DENABLE_UNSTABLE_API_ABI_HEADERS=ON" ;to install header files
(list "-DENABLE_UNSTABLE_API_ABI_HEADERS=ON" ;to install header files "-DENABLE_ZLIB=ON"
"-DENABLE_ZLIB=ON" "-DENABLE_BOOST=OFF" ;disable Boost to save size
"-DENABLE_BOOST=OFF" ;disable Boost to save size (string-append "-DCMAKE_INSTALL_LIBDIR=" #$output "/lib")
(string-append "-DCMAKE_INSTALL_LIBDIR=" lib) (string-append "-DCMAKE_INSTALL_RPATH=" #$output "/lib"))
(string-append "-DCMAKE_INSTALL_RPATH=" lib))) #:phases
,@(if (%current-target-system) (if (%current-target-system) #~%standard-phases
`(#:phases #~(modify-phases %standard-phases
(modify-phases %standard-phases (add-after 'unpack 'set-PKG_CONFIG
(add-after 'unpack 'set-PKG_CONFIG (lambda _
(lambda _ (setenv "PKG_CONFIG" #$(pkg-config-for-target))))))))
(setenv "PKG_CONFIG" ,(pkg-config-for-target))))))
'())))
(synopsis "PDF rendering library") (synopsis "PDF rendering library")
(description (description
"Poppler is a PDF rendering library based on the xpdf-3.0 code base.") "Poppler is a PDF rendering library based on the xpdf-3.0 code base.")