gnu: zip: Improve build process and install man pages in share/man.
* gnu/packages/zip.scm (zip): Eliminate custom configure phase which copied and patched the Makefile. Instead add "-f" and "prefix" to make-flags, as well as "MANDIR". Remove "generic_gcc" from the make-flags, so that it will not be passed during other phases involving 'make'. Instead replace the 'build' phase with one that specifies the "generic_gcc" target.
This commit is contained in:
parent
a2c03fb1af
commit
7575778969
@ -43,15 +43,15 @@
|
|||||||
(inputs `(("bzip2" ,bzip2)))
|
(inputs `(("bzip2" ,bzip2)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; no test target
|
`(#:tests? #f ; no test target
|
||||||
#:make-flags '("generic_gcc")
|
#:make-flags (let ((out (assoc-ref %outputs "out")))
|
||||||
#:phases
|
(list "-f" "unix/Makefile"
|
||||||
(alist-replace
|
(string-append "prefix=" out)
|
||||||
'configure
|
(string-append "MANDIR=" out "/share/man/man1")))
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
#:phases (alist-replace
|
||||||
(let* ((out (assoc-ref outputs "out")))
|
'build
|
||||||
(copy-file "unix/Makefile" "Makefile")
|
(lambda* (#:key (make-flags '()) #:allow-other-keys)
|
||||||
(substitute* "Makefile" (("/usr/local") out))))
|
(zero? (apply system* "make" "generic_gcc" make-flags)))
|
||||||
%standard-phases)))
|
(alist-delete 'configure %standard-phases))))
|
||||||
(home-page "http://www.info-zip.org/Zip.html")
|
(home-page "http://www.info-zip.org/Zip.html")
|
||||||
(synopsis "Zip compression and file packing utility")
|
(synopsis "Zip compression and file packing utility")
|
||||||
(description
|
(description
|
||||||
|
Loading…
Reference in New Issue
Block a user