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:
Tobias Geerinckx-Rice 2018-02-21 05:15:55 +01:00
parent be5dc5fb18
commit 6c96b5452c
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 9 additions and 11 deletions

View File

@ -3073,16 +3073,17 @@ specifications.")
(("isnan\\(0\\)") "isnan(0.)"))))) (("isnan\\(0\\)") "isnan(0.)")))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:tests? #f ; no check target `(#:tests? #f ; no check target
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(delete 'configure) (delete 'configure) ; no configure script
(replace 'build (replace 'build
(lambda _ (lambda _
(and (with-directory-excursion "lpsolve55" (with-directory-excursion "lpsolve55"
(zero? (system* "bash" "ccc"))) (invoke "bash" "ccc"))
(with-directory-excursion "lp_solve" (with-directory-excursion "lp_solve"
(zero? (system* "bash" "ccc")))))) (invoke "bash" "ccc"))
#t))
(replace 'install (replace 'install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
@ -3091,11 +3092,8 @@ specifications.")
;; This is where LibreOffice expects to find the header ;; This is where LibreOffice expects to find the header
;; files, and where they are installed by Debian. ;; files, and where they are installed by Debian.
(include (string-append out "/include/lpsolve"))) (include (string-append out "/include/lpsolve")))
(mkdir-p lib) (install-file "lpsolve55/bin/ux64/liblpsolve55.a" lib)
(copy-file "lpsolve55/bin/ux64/liblpsolve55.a" (install-file "lpsolve55/bin/ux64/liblpsolve55.so" lib)
(string-append lib "/liblpsolve55.a"))
(copy-file "lpsolve55/bin/ux64/liblpsolve55.so"
(string-append lib "/liblpsolve55.so"))
(install-file "lp_solve/bin/ux64/lp_solve" bin) (install-file "lp_solve/bin/ux64/lp_solve" bin)
;; Install a subset of the header files as on Debian ;; Install a subset of the header files as on Debian