gnu: zathura-{cb,ps,djvu,pdf-poppler}: Fix installation of desktop files.

Based on a patch by Alex Kost <alezost@gmail.com>.

* gnu/packages/pdf.scm (zathura-cb, zathura-ps, zathura-djvu)
  (zathura-pdf-poppler)[arguments]: In make-flags, set PREFIX instead of
  DESTDIR and adjust PLUGINDIR accordingly.
This commit is contained in:
Mark H Weaver 2015-07-07 14:20:54 -04:00
parent 734976b681
commit b1982b80ca

View file

@ -171,9 +171,9 @@ (define-public zathura-cb
("zathura" ,zathura))) ("zathura" ,zathura)))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:make-flags `(#:make-flags (list (string-append "PREFIX=" %output)
`(,(string-append "DESTDIR=" (assoc-ref %outputs "out")) (string-append "PLUGINDIR=" %output "/lib/zathura")
"PLUGINDIR=/lib/zathura" "CC=gcc") "CC=gcc")
#:tests? #f ; Package does not contain tests. #:tests? #f ; Package does not contain tests.
#:phases #:phases
(alist-delete 'configure %standard-phases))) (alist-delete 'configure %standard-phases)))
@ -202,9 +202,9 @@ (define-public zathura-ps
("zathura" ,zathura))) ("zathura" ,zathura)))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:make-flags `(#:make-flags (list (string-append "PREFIX=" %output)
`(,(string-append "DESTDIR=" (assoc-ref %outputs "out")) (string-append "PLUGINDIR=" %output "/lib/zathura")
"PLUGINDIR=/lib/zathura" "CC=gcc") "CC=gcc")
#:tests? #f ; Package does not contain tests. #:tests? #f ; Package does not contain tests.
#:phases #:phases
(alist-delete 'configure %standard-phases))) (alist-delete 'configure %standard-phases)))
@ -234,9 +234,9 @@ (define-public zathura-djvu
("zathura" ,zathura))) ("zathura" ,zathura)))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:make-flags `(#:make-flags (list (string-append "PREFIX=" %output)
`(,(string-append "DESTDIR=" (assoc-ref %outputs "out")) (string-append "PLUGINDIR=" %output "/lib/zathura")
"PLUGINDIR=/lib/zathura" "CC=gcc") "CC=gcc")
#:tests? #f ; Package does not contain tests. #:tests? #f ; Package does not contain tests.
#:phases #:phases
(alist-delete 'configure %standard-phases))) (alist-delete 'configure %standard-phases)))
@ -267,9 +267,9 @@ (define-public zathura-pdf-poppler
("cairo" ,cairo))) ("cairo" ,cairo)))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:make-flags `(#:make-flags (list (string-append "PREFIX=" %output)
`(,(string-append "DESTDIR=" (assoc-ref %outputs "out")) (string-append "PLUGINDIR=" %output "/lib/zathura")
"PLUGINDIR=/lib/zathura" "CC=gcc") "CC=gcc")
#:tests? #f ; Package does not include tests. #:tests? #f ; Package does not include tests.
#:phases #:phases
(alist-delete 'configure %standard-phases))) (alist-delete 'configure %standard-phases)))