~ruther/guix-local

3cf19e40238aad663f2d18d72aca6e6d5df108b4 — Cayetano Santos 3 months ago ea9153f
gnu: vowpal-wabbit: Improve style.

* gnu/packages/machine-learning.scm (vowpal-wabbit): Sort fields.
[arguments]: Use G-Expressions.
[home-page]: Update.

Change-Id: Ia141a8e4b28e79b078896f39e13a958e9b1d4232
1 files changed, 18 insertions(+), 20 deletions(-)

M gnu/packages/machine-learning.scm
M gnu/packages/machine-learning.scm => gnu/packages/machine-learning.scm +18 -20
@@ 2712,28 2712,26 @@ the following advantages:
               (base32
                "04bwzk6ifgnz3fmzid8b7avxf9n5pnx9xcjm61nkjng1vv0bpj8x"))
              (file-name (git-file-name name version))))
    (inputs
     (list boost zlib))
    (build-system gnu-build-system)
    (arguments
     `(#:configure-flags
       (list (string-append "--with-boost="
                            (assoc-ref %build-inputs "boost")))
       #:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'make-files-writable
           (lambda _
             (for-each make-file-writable (find-files "." ".*")) #t))
         (add-after 'install 'install-more-headers
           (lambda* (#:key outputs #:allow-other-keys)
             (for-each
     (list
      #:configure-flags
      #~(list (string-append "--with-boost=" #$(this-package-input "boost")))
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'make-files-writable
            (lambda _
              (for-each make-file-writable (find-files "." ".*"))))
          (add-after 'install 'install-more-headers
            (lambda _
              (for-each
               (lambda (file)
                 (install-file file (string-append
                                      (assoc-ref outputs "out")
                                      "/include/vowpalwabbit")))
               (find-files "vowpalwabbit" "\\.h$"))
             #t)))))
    (build-system gnu-build-system)
    (home-page "https://github.com/JohnLangford/vowpal_wabbit")
                 (install-file
                  file (string-append #$output "/include/vowpalwabbit")))
               (find-files "vowpalwabbit" "\\.h$")))))))
    (inputs
     (list boost zlib))
    (home-page "https://vowpalwabbit.org")
    (synopsis "Fast machine learning library for online learning")
    (description "Vowpal Wabbit is a machine learning system with techniques
such as online, hashing, allreduce, reductions, learning2search, active, and