aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/maths.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/maths.scm')
-rw-r--r--gnu/packages/maths.scm20
1 files changed, 8 insertions, 12 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index b56ca4057d..45fda144be 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -1828,21 +1828,17 @@ specifications.")
(string-append lib "/liblpsolve55.a"))
(copy-file "lpsolve55/bin/ux64/liblpsolve55.so"
(string-append lib "/liblpsolve55.so"))
- (mkdir-p bin)
- (copy-file "lp_solve/bin/ux64/lp_solve"
- (string-append bin "/lp_solve"))
- (mkdir-p include)
+ (install-file "lp_solve/bin/ux64/lp_solve" bin)
+
;; Install a subset of the header files as on Debian
;; (plus lp_bit.h, which matches the regular expression).
- (for-each
- (lambda (name)
- (copy-file name (string-append include "/" name)))
- (find-files "." "lp_[HMSa-z].*\\.h$"))
+ (for-each (lambda (name)
+ (install-file name include))
+ (find-files "." "lp_[HMSa-z].*\\.h$"))
(with-directory-excursion "shared"
- (for-each
- (lambda (name)
- (copy-file name (string-append include "/" name)))
- (find-files "." "\\.h$")))
+ (for-each (lambda (name)
+ (install-file name include))
+ (find-files "." "\\.h$")))
#t))))))
(home-page "http://lpsolve.sourceforge.net/")
(synopsis "Mixed integer linear programming (MILP) solver")