[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/09: gnu: libsvm: Install header and library.
From: |
guix-commits |
Subject: |
07/09: gnu: libsvm: Install header and library. |
Date: |
Thu, 9 Dec 2021 05:20:14 -0500 (EST) |
rekado pushed a commit to branch core-updates-frozen
in repository guix.
commit 4fb363c9063be8cb69bda4828d132fcbd98c0d84
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Thu Dec 9 11:05:09 2021 +0100
gnu: libsvm: Install header and library.
* gnu/packages/machine-learning.scm (libsvm)[arguments]: Add build phase
'build-lib; also install header file and shared library in the 'install
phase.
---
gnu/packages/machine-learning.scm | 36 ++++++++++++++++++++++--------------
1 file changed, 22 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/machine-learning.scm
b/gnu/packages/machine-learning.scm
index e75faef..5c1497b 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -141,20 +141,28 @@ sparsely connected networks.")
(build-system gnu-build-system)
(arguments
`(#:tests? #f ; no "check" target
- #:phases (modify-phases %standard-phases
- (delete 'configure)
- (replace
- 'install ; no ‘install’ target
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (bin (string-append out "/bin/")))
- (mkdir-p bin)
- (for-each (lambda (file)
- (copy-file file (string-append bin file)))
- '("svm-train"
- "svm-predict"
- "svm-scale")))
- #t)))))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (add-after 'build 'build-lib
+ (lambda _
+ (invoke "make" "lib")))
+ (replace 'install ; no ‘install’ target
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin/"))
+ (lib (string-append out "/lib/"))
+ (inc (string-append out "/include/libsvm")))
+ (mkdir-p bin)
+ (for-each (lambda (file)
+ (copy-file file (string-append bin file)))
+ '("svm-train"
+ "svm-predict"
+ "svm-scale"))
+ (mkdir-p lib)
+ (install-file "libsvm.so.2" lib)
+ (mkdir-p inc)
+ (install-file "svm.h" inc)))))))
(home-page "https://www.csie.ntu.edu.tw/~cjlin/libsvm/")
(synopsis "Library for Support Vector Machines")
(description
- branch core-updates-frozen updated (95a4965 -> ab445eb), guix-commits, 2021/12/09
- 08/09: gnu: seek: Update to 1-1.196ed4c., guix-commits, 2021/12/09
- 04/09: gnu: Add htslib-for-samtools-1.2., guix-commits, 2021/12/09
- 02/09: gnu: python2-matplotlib: Fix mpl_toolkits module., guix-commits, 2021/12/09
- 03/09: gnu: python2-scipy: Override native inputs., guix-commits, 2021/12/09
- 09/09: gnu: python2-scikit-learn: Disable one more test., guix-commits, 2021/12/09
- 01/09: gnu: Add gfortran-7., guix-commits, 2021/12/09
- 05/09: gnu: Add samtools-1.2., guix-commits, 2021/12/09
- 06/09: gnu: miso: Update to 0.5.4-1.b714021., guix-commits, 2021/12/09
- 07/09: gnu: libsvm: Install header and library.,
guix-commits <=