gnu: libsvm: Update to 3.22.

* gnu/packages/machine-learning.scm (libsvm): Update to 3.22.
[source]: Use upstream tarball instead of a git snapshot.
This commit is contained in:
Tobias Geerinckx-Rice 2018-01-10 03:53:16 +01:00
parent 7e71d5666b
commit d1308c5ed2
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -3,6 +3,7 @@
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com> ;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com> ;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -52,24 +53,22 @@ (define-module (gnu packages machine-learning)
(define-public libsvm (define-public libsvm
(package (package
(name "libsvm") (name "libsvm")
(version "3.20") (version "3.22")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (string-append "https://www.csie.ntu.edu.tw/~cjlin/libsvm/"
"https://github.com/cjlin1/libsvm/archive/v" name "-" version ".tar.gz"))
(string-delete #\. version) ".tar.gz"))
(file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"1jpjlql3frjza7zxzrqqr2firh44fjb8fqsdmvz6bjz7sb47zgp4")))) "0zd7s19y5vb7agczl6456bn45cj1y64739sslaskw1qk7dywd0bd"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:tests? #f ;no "check" target `(#:tests? #f ;no "check" target
#:phases (modify-phases %standard-phases #:phases (modify-phases %standard-phases
(delete 'configure) (delete 'configure)
(replace (replace
'install 'install ; no install target
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin/"))) (bin (string-append out "/bin/")))
@ -100,7 +99,7 @@ (define-public python-libsvm
(modify-phases %standard-phases (modify-phases %standard-phases
(delete 'configure) (delete 'configure)
(replace (replace
'install 'install ; no install target
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let ((site (string-append (assoc-ref outputs "out") (let ((site (string-append (assoc-ref outputs "out")
"/lib/python" "/lib/python"