gnu: lpsolve: Update phase style.
* gnu/packages/maths.scm (lpsolve)[arguments]: Use INVOKE and INSTALL-FILE, and end phases with #t.
This commit is contained in:
parent
be5dc5fb18
commit
6c96b5452c
|
@ -3076,13 +3076,14 @@ specifications.")
|
|||
`(#:tests? #f ; no check target
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(delete 'configure)
|
||||
(delete 'configure) ; no configure script
|
||||
(replace 'build
|
||||
(lambda _
|
||||
(and (with-directory-excursion "lpsolve55"
|
||||
(zero? (system* "bash" "ccc")))
|
||||
(with-directory-excursion "lpsolve55"
|
||||
(invoke "bash" "ccc"))
|
||||
(with-directory-excursion "lp_solve"
|
||||
(zero? (system* "bash" "ccc"))))))
|
||||
(invoke "bash" "ccc"))
|
||||
#t))
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
|
@ -3091,11 +3092,8 @@ specifications.")
|
|||
;; This is where LibreOffice expects to find the header
|
||||
;; files, and where they are installed by Debian.
|
||||
(include (string-append out "/include/lpsolve")))
|
||||
(mkdir-p lib)
|
||||
(copy-file "lpsolve55/bin/ux64/liblpsolve55.a"
|
||||
(string-append lib "/liblpsolve55.a"))
|
||||
(copy-file "lpsolve55/bin/ux64/liblpsolve55.so"
|
||||
(string-append lib "/liblpsolve55.so"))
|
||||
(install-file "lpsolve55/bin/ux64/liblpsolve55.a" lib)
|
||||
(install-file "lpsolve55/bin/ux64/liblpsolve55.so" lib)
|
||||
(install-file "lp_solve/bin/ux64/lp_solve" bin)
|
||||
|
||||
;; Install a subset of the header files as on Debian
|
||||
|
|
Loading…
Reference in New Issue