gnu: poppler: Use 'modify-phases'.

* gnu/packages/pdf.scm (poppler)[arguments]: Use 'modify-phases'.
This commit is contained in:
Efraim Flashner 2016-08-15 11:43:57 +03:00
parent 5f8fc5e3bd
commit fb0c4d1ac2
No known key found for this signature in database
GPG Key ID: F4C1D3917EACEE93
1 changed files with 7 additions and 8 deletions

View File

@ -95,14 +95,13 @@
;; Saves 8 MiB of .a files. ;; Saves 8 MiB of .a files.
"--disable-static") "--disable-static")
#:phases #:phases
(alist-cons-before (modify-phases %standard-phases
'configure 'setenv (add-before 'configure 'setenv
(lambda _ (lambda _
(setenv "CPATH" (setenv "CPATH"
(string-append (assoc-ref %build-inputs "openjpeg-1") (string-append (assoc-ref %build-inputs "openjpeg-1")
"/include/openjpeg-1.5" "/include/openjpeg-1.5"
":" (or (getenv "CPATH") "")))) ":" (or (getenv "CPATH") ""))))))))
%standard-phases)))
(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.")