2015-05-28 15:53:14 +02:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2017-11-17 22:07:23 +01:00
|
|
|
|
;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
|
2016-05-25 20:48:22 +02:00
|
|
|
|
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
2017-11-17 22:07:23 +01:00
|
|
|
|
;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com>
|
|
|
|
|
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
2018-01-10 03:53:16 +01:00
|
|
|
|
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
2018-05-09 16:01:40 +02:00
|
|
|
|
;;; Copyright © 2018 Kei Kebreau <kkebreau@posteo.net>
|
2018-02-01 15:07:58 +01:00
|
|
|
|
;;; Copyright © 2018 Mark Meyer <mark@ofosos.org>
|
|
|
|
|
;;; Copyright © 2018 Ben Woodcroft <donttrustben@gmail.com>
|
2018-04-28 05:47:03 +02:00
|
|
|
|
;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
|
2015-05-28 15:53:14 +02:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages machine-learning)
|
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix utils)
|
|
|
|
|
#:use-module (guix download)
|
2016-05-23 12:52:00 +02:00
|
|
|
|
#:use-module (guix svn-download)
|
2015-08-14 16:48:52 +02:00
|
|
|
|
#:use-module (guix build-system cmake)
|
2015-05-28 15:53:14 +02:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2017-03-17 12:24:13 +01:00
|
|
|
|
#:use-module (guix build-system ocaml)
|
2017-11-17 22:07:23 +01:00
|
|
|
|
#:use-module (guix build-system python)
|
2015-12-17 16:28:25 +01:00
|
|
|
|
#:use-module (guix build-system r)
|
2018-02-01 15:07:58 +01:00
|
|
|
|
#:use-module (guix git-download)
|
2015-06-02 15:10:37 +02:00
|
|
|
|
#:use-module (gnu packages)
|
2018-05-16 17:56:18 +02:00
|
|
|
|
#:use-module (gnu packages algebra)
|
2016-05-23 12:52:00 +02:00
|
|
|
|
#:use-module (gnu packages autotools)
|
2015-06-02 15:47:22 +02:00
|
|
|
|
#:use-module (gnu packages boost)
|
2017-11-17 22:07:23 +01:00
|
|
|
|
#:use-module (gnu packages check)
|
2015-06-02 15:47:22 +02:00
|
|
|
|
#:use-module (gnu packages compression)
|
2017-08-03 22:14:48 +02:00
|
|
|
|
#:use-module (gnu packages cran)
|
2016-05-23 12:52:00 +02:00
|
|
|
|
#:use-module (gnu packages dejagnu)
|
2015-06-02 15:47:22 +02:00
|
|
|
|
#:use-module (gnu packages gcc)
|
2016-08-13 12:26:10 +02:00
|
|
|
|
#:use-module (gnu packages image)
|
2015-06-02 15:47:22 +02:00
|
|
|
|
#:use-module (gnu packages maths)
|
2017-03-17 12:24:13 +01:00
|
|
|
|
#:use-module (gnu packages ocaml)
|
2016-07-12 07:56:07 +02:00
|
|
|
|
#:use-module (gnu packages perl)
|
2015-08-14 16:48:52 +02:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2015-06-02 15:47:22 +02:00
|
|
|
|
#:use-module (gnu packages python)
|
2015-08-14 16:48:52 +02:00
|
|
|
|
#:use-module (gnu packages statistics)
|
|
|
|
|
#:use-module (gnu packages swig)
|
2016-08-13 12:26:10 +02:00
|
|
|
|
#:use-module (gnu packages xml)
|
|
|
|
|
#:use-module (gnu packages xorg))
|
2015-05-28 15:53:14 +02:00
|
|
|
|
|
2018-02-01 15:07:58 +01:00
|
|
|
|
(define-public fann
|
|
|
|
|
;; The last release is >100 commits behind, so we package from git.
|
|
|
|
|
(let ((commit "d71d54788bee56ba4cf7522801270152da5209d7"))
|
|
|
|
|
(package
|
|
|
|
|
(name "fann")
|
|
|
|
|
(version (string-append "2.2.0-1." (string-take commit 8)))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/libfann/fann.git")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (string-append name "-" version "-checkout"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0ibwpfrjs6q2lijs8slxjgzb2llcl6rk3v2ski4r6215g5jjhg3x"))))
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out")))
|
|
|
|
|
(with-directory-excursion (string-append (getcwd) "/tests")
|
|
|
|
|
(invoke "./fann_tests"))))))))
|
|
|
|
|
(home-page "http://leenissen.dk/fann/wp/")
|
|
|
|
|
(synopsis "Fast Artificial Neural Network")
|
|
|
|
|
(description
|
|
|
|
|
"FANN is a free open source neural network library, which implements
|
|
|
|
|
multilayer artificial neural networks in C with support for both fully
|
|
|
|
|
connected and sparsely connected networks.")
|
|
|
|
|
(license license:lgpl2.1))))
|
|
|
|
|
|
2015-05-28 15:53:14 +02:00
|
|
|
|
(define-public libsvm
|
|
|
|
|
(package
|
|
|
|
|
(name "libsvm")
|
2018-01-10 03:53:16 +01:00
|
|
|
|
(version "3.22")
|
2015-05-28 15:53:14 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2018-01-10 03:53:16 +01:00
|
|
|
|
(uri (string-append "https://www.csie.ntu.edu.tw/~cjlin/libsvm/"
|
|
|
|
|
name "-" version ".tar.gz"))
|
2015-05-28 15:53:14 +02:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-01-10 03:53:16 +01:00
|
|
|
|
"0zd7s19y5vb7agczl6456bn45cj1y64739sslaskw1qk7dywd0bd"))))
|
2015-05-28 15:53:14 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ;no "check" target
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(replace
|
2018-01-10 03:53:16 +01:00
|
|
|
|
'install ; no ‘install’ target
|
2015-05-28 15:53:14 +02:00
|
|
|
|
(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)))))
|
|
|
|
|
(home-page "http://www.csie.ntu.edu.tw/~cjlin/libsvm/")
|
|
|
|
|
(synopsis "Library for Support Vector Machines")
|
|
|
|
|
(description
|
|
|
|
|
"LIBSVM is a machine learning library for support vector
|
|
|
|
|
classification, (C-SVC, nu-SVC), regression (epsilon-SVR, nu-SVR) and
|
|
|
|
|
distribution estimation (one-class SVM). It supports multi-class
|
|
|
|
|
classification.")
|
|
|
|
|
(license license:bsd-3)))
|
2015-06-02 15:10:37 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-libsvm
|
|
|
|
|
(package (inherit libsvm)
|
|
|
|
|
(name "python-libsvm")
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ;no "check" target
|
|
|
|
|
#:make-flags '("-C" "python")
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(replace
|
2018-01-10 03:53:16 +01:00
|
|
|
|
'install ; no ‘install’ target
|
2015-06-02 15:10:37 +02:00
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let ((site (string-append (assoc-ref outputs "out")
|
|
|
|
|
"/lib/python"
|
|
|
|
|
(string-take
|
|
|
|
|
(string-take-right
|
|
|
|
|
(assoc-ref inputs "python") 5) 3)
|
|
|
|
|
"/site-packages/")))
|
|
|
|
|
(substitute* "python/svm.py"
|
|
|
|
|
(("../libsvm.so.2") "libsvm.so.2"))
|
|
|
|
|
(mkdir-p site)
|
|
|
|
|
(for-each (lambda (file)
|
|
|
|
|
(copy-file file (string-append site (basename file))))
|
|
|
|
|
(find-files "python" "\\.py"))
|
|
|
|
|
(copy-file "libsvm.so.2"
|
|
|
|
|
(string-append site "libsvm.so.2")))
|
|
|
|
|
#t)))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python" ,python)))
|
|
|
|
|
(synopsis "Python bindings of libSVM")))
|
2015-06-02 15:47:22 +02:00
|
|
|
|
|
2016-05-23 12:52:00 +02:00
|
|
|
|
(define-public ghmm
|
|
|
|
|
;; The latest release candidate is several years and a couple of fixes have
|
|
|
|
|
;; been published since. This is why we download the sources from the SVN
|
|
|
|
|
;; repository.
|
|
|
|
|
(let ((svn-revision 2341))
|
|
|
|
|
(package
|
|
|
|
|
(name "ghmm")
|
|
|
|
|
(version (string-append "0.9-rc3-0." (number->string svn-revision)))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method svn-fetch)
|
|
|
|
|
(uri (svn-reference
|
|
|
|
|
(url "http://svn.code.sf.net/p/ghmm/code/trunk")
|
|
|
|
|
(revision svn-revision)))
|
|
|
|
|
(file-name (string-append name "-" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0qbq1rqp94l530f043qzp8aw5lj7dng9wq0miffd7spd1ff638wq"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2016-10-03 19:12:08 +02:00
|
|
|
|
`(#:imported-modules (,@%gnu-build-system-modules
|
|
|
|
|
(guix build python-build-system))
|
|
|
|
|
#:phases
|
2016-05-23 12:52:00 +02:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'enter-dir
|
|
|
|
|
(lambda _ (chdir "ghmm") #t))
|
2016-10-03 19:12:08 +02:00
|
|
|
|
(delete 'check)
|
|
|
|
|
(add-after 'install 'check
|
|
|
|
|
(assoc-ref %standard-phases 'check))
|
|
|
|
|
(add-before 'check 'fix-PYTHONPATH
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let ((python-version ((@@ (guix build python-build-system)
|
|
|
|
|
get-python-version)
|
|
|
|
|
(assoc-ref inputs "python"))))
|
|
|
|
|
(setenv "PYTHONPATH"
|
|
|
|
|
(string-append (getenv "PYTHONPATH")
|
|
|
|
|
":" (assoc-ref outputs "out")
|
|
|
|
|
"/lib/python" python-version
|
|
|
|
|
"/site-packages")))
|
2016-05-23 12:52:00 +02:00
|
|
|
|
#t))
|
|
|
|
|
(add-after 'enter-dir 'fix-runpath
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(substitute* "ghmmwrapper/setup.py"
|
|
|
|
|
(("^(.*)extra_compile_args = \\[" line indent)
|
|
|
|
|
(string-append indent
|
|
|
|
|
"extra_link_args = [\"-Wl,-rpath="
|
|
|
|
|
(assoc-ref outputs "out") "/lib\"],\n"
|
|
|
|
|
line
|
|
|
|
|
"\"-Wl,-rpath="
|
|
|
|
|
(assoc-ref outputs "out")
|
|
|
|
|
"/lib\", ")))
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'enter-dir 'disable-broken-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "tests/Makefile.am"
|
|
|
|
|
;; GHMM_SILENT_TESTS is assumed to be a command.
|
|
|
|
|
(("TESTS_ENVIRONMENT.*") "")
|
|
|
|
|
;; Do not build broken tests.
|
|
|
|
|
(("chmm .*") "")
|
|
|
|
|
(("read_fa .*") "")
|
|
|
|
|
(("mcmc .*") "")
|
|
|
|
|
(("label_higher_order_test.*$")
|
|
|
|
|
"label_higher_order_test\n"))
|
|
|
|
|
|
|
|
|
|
;; These Python unittests are broken as there is no gato.
|
|
|
|
|
;; See https://sourceforge.net/p/ghmm/support-requests/3/
|
|
|
|
|
(substitute* "ghmmwrapper/ghmmunittests.py"
|
|
|
|
|
(("^(.*)def (testNewXML|testMultipleTransitionClasses|testNewXML)"
|
|
|
|
|
line indent)
|
|
|
|
|
(string-append indent
|
|
|
|
|
"@unittest.skip(\"Disabled by Guix\")\n"
|
|
|
|
|
line)))
|
|
|
|
|
#t))
|
gnu: Put autoconf-related phases immediately after the 'unpack phase.
* gnu/packages/audio.scm (audacity, rtmidi)[arguments]: Correct phases
accordingly.
* gnu/packages/bioinformatics.scm (mash, seek, vsearch, emboss,
htslib-for-sambamba)[arguments]: Likewise.
* gnu/packages/ci.scm (cuirass)[arguments]: Likewise.
* gnu/packages/compression.scm (minizip, xdelta)[arguments]: Likewise.
* gnu/packages/cpp.scm (libzen)[arguments]: Likewise.
* gnu/packages/crypto.scm (opendht)[arguments]: Likewise.
* gnu/packages/databases.scm (4store, mdbtools)[arguments]: Likewise.
* gnu/packages/debug.scm (stress-make)[arguments]: Likewise.
* gnu/packages/dns.scm (dnscrypt-proxy, dnscrypt-wrapper)[arguments]:
Likewise.
* gnu/packages/emacs.scm (emacs-pdf-tools)[arguments]: Likewise.
* gnu/packages/embedded.scm (libjaylink, openocd)[arguments]: Likewise.
* gnu/packages/engineering.scm (gerbv)[arguments]: Likewise.
* gnu/packages/erlang.scm (erlang)[arguments]: Likewise.
* gnu/packages/ftp.scm (weex)[arguments]: Likewise.
* gnu/packages/gnome.scm (dia)[arguments]: Likewise.
* gnu/packages/gnunet.scm (gnurl, guile-gnunet)[arguments]: Likewise.
* gnu/packages/gtk.scm (guile-rsvg, graphene)[arguments]: Likewise.
* gnu/packages/guile.scm (guildhall, guile-ics, guile-sqlite3)[arguments]:
Likewise.
* gnu/packages/ibus.scm (ibus-libpinyin)[arguments]: Likewise.
* gnu/packages/irc.scm (weechat)[arguments]: Likewise.
* gnu/packages/java.scm (classpath-devel)[arguments]: Likewise.
* gnu/packages/libreoffice.scm (libetonyek)[arguments]: Likewise.
* gnu/packages/libusb.scm (hidapi)[arguments]: Likewise.
* gnu/packages/linux.scm (gpm)[arguments]: Likewise.
* gnu/packages/logging.scm (glog)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (ghmm)[arguments]: Likewise.
* gnu/packages/mail.scm (dovecot-trees, dovecot-libsodium-plugin, esmtp)
[arguments]: Likewise.
* gnu/packages/messaging.scm (freetalk, libmesode, libstrophe)[arguments]:
Likewise.
* gnu/packages/microcom.scm (microcom)[arguments]: Likewise.
* gnu/packages/ocaml.scm (ocaml-ssl)[arguments]: Likewise.
* gnu/packages/parallel.scm (slurm)[arguments]: Likewise.
* gnu/packages/pdf.scm (libharu)[arguments]: Likewise.
* gnu/packages/samba.scm (cifs-utils)[arguments]: Likewise.
* gnu/packages/serialization.scm (msgpack)[arguments]: Likewise.
* gnu/packages/shells.scm (scsh)[arguments]: Likewise.
* gnu/packages/telephony.scm (libiax2)[arguments]: Likewise.
* gnu/packages/textutils.scm (dotconf)[arguments]: Likewise.
* gnu/packages/version-control.scm (findnewest)[arguments]: Likewise.
* gnu/packages/video.scm (libmediainfo, mediainfo)[arguments]: Likewise.
2017-07-31 03:02:35 +02:00
|
|
|
|
(add-after 'disable-broken-tests 'autogen
|
2016-05-23 12:52:00 +02:00
|
|
|
|
(lambda _
|
gnu: Put autoconf-related phases immediately after the 'unpack phase.
* gnu/packages/audio.scm (audacity, rtmidi)[arguments]: Correct phases
accordingly.
* gnu/packages/bioinformatics.scm (mash, seek, vsearch, emboss,
htslib-for-sambamba)[arguments]: Likewise.
* gnu/packages/ci.scm (cuirass)[arguments]: Likewise.
* gnu/packages/compression.scm (minizip, xdelta)[arguments]: Likewise.
* gnu/packages/cpp.scm (libzen)[arguments]: Likewise.
* gnu/packages/crypto.scm (opendht)[arguments]: Likewise.
* gnu/packages/databases.scm (4store, mdbtools)[arguments]: Likewise.
* gnu/packages/debug.scm (stress-make)[arguments]: Likewise.
* gnu/packages/dns.scm (dnscrypt-proxy, dnscrypt-wrapper)[arguments]:
Likewise.
* gnu/packages/emacs.scm (emacs-pdf-tools)[arguments]: Likewise.
* gnu/packages/embedded.scm (libjaylink, openocd)[arguments]: Likewise.
* gnu/packages/engineering.scm (gerbv)[arguments]: Likewise.
* gnu/packages/erlang.scm (erlang)[arguments]: Likewise.
* gnu/packages/ftp.scm (weex)[arguments]: Likewise.
* gnu/packages/gnome.scm (dia)[arguments]: Likewise.
* gnu/packages/gnunet.scm (gnurl, guile-gnunet)[arguments]: Likewise.
* gnu/packages/gtk.scm (guile-rsvg, graphene)[arguments]: Likewise.
* gnu/packages/guile.scm (guildhall, guile-ics, guile-sqlite3)[arguments]:
Likewise.
* gnu/packages/ibus.scm (ibus-libpinyin)[arguments]: Likewise.
* gnu/packages/irc.scm (weechat)[arguments]: Likewise.
* gnu/packages/java.scm (classpath-devel)[arguments]: Likewise.
* gnu/packages/libreoffice.scm (libetonyek)[arguments]: Likewise.
* gnu/packages/libusb.scm (hidapi)[arguments]: Likewise.
* gnu/packages/linux.scm (gpm)[arguments]: Likewise.
* gnu/packages/logging.scm (glog)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (ghmm)[arguments]: Likewise.
* gnu/packages/mail.scm (dovecot-trees, dovecot-libsodium-plugin, esmtp)
[arguments]: Likewise.
* gnu/packages/messaging.scm (freetalk, libmesode, libstrophe)[arguments]:
Likewise.
* gnu/packages/microcom.scm (microcom)[arguments]: Likewise.
* gnu/packages/ocaml.scm (ocaml-ssl)[arguments]: Likewise.
* gnu/packages/parallel.scm (slurm)[arguments]: Likewise.
* gnu/packages/pdf.scm (libharu)[arguments]: Likewise.
* gnu/packages/samba.scm (cifs-utils)[arguments]: Likewise.
* gnu/packages/serialization.scm (msgpack)[arguments]: Likewise.
* gnu/packages/shells.scm (scsh)[arguments]: Likewise.
* gnu/packages/telephony.scm (libiax2)[arguments]: Likewise.
* gnu/packages/textutils.scm (dotconf)[arguments]: Likewise.
* gnu/packages/version-control.scm (findnewest)[arguments]: Likewise.
* gnu/packages/video.scm (libmediainfo, mediainfo)[arguments]: Likewise.
2017-07-31 03:02:35 +02:00
|
|
|
|
(zero? (system* "bash" "autogen.sh")))))))
|
2016-05-23 12:52:00 +02:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python" ,python-2) ; only Python 2 is supported
|
|
|
|
|
("libxml2" ,libxml2)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("dejagnu" ,dejagnu)
|
|
|
|
|
("swig" ,swig)
|
|
|
|
|
("autoconf" ,autoconf)
|
|
|
|
|
("automake" ,automake)
|
|
|
|
|
("libtool" ,libtool)))
|
|
|
|
|
(home-page "http://ghmm.org")
|
|
|
|
|
(synopsis "Hidden Markov Model library")
|
|
|
|
|
(description
|
|
|
|
|
"The General Hidden Markov Model library (GHMM) is a C library with
|
|
|
|
|
additional Python bindings implementing a wide range of types of @dfn{Hidden
|
2017-04-16 18:06:57 +02:00
|
|
|
|
Markov Models} (HMM) and algorithms: discrete, continuous emissions, basic
|
2016-05-23 12:52:00 +02:00
|
|
|
|
training, HMM clustering, HMM mixtures.")
|
|
|
|
|
(license license:lgpl2.0+))))
|
|
|
|
|
|
2016-07-12 07:56:07 +02:00
|
|
|
|
(define-public mcl
|
|
|
|
|
(package
|
|
|
|
|
(name "mcl")
|
|
|
|
|
(version "14.137")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://micans.org/mcl/src/mcl-"
|
|
|
|
|
(string-replace-substring version "." "-")
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"15xlax3z31lsn62vlg94hkm75nm40q4679amnfg13jm8m2bnhy5m"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags (list "--enable-blast")))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("perl" ,perl)))
|
|
|
|
|
(home-page "http://micans.org/mcl/")
|
|
|
|
|
(synopsis "Clustering algorithm for graphs")
|
|
|
|
|
(description
|
|
|
|
|
"The MCL algorithm is short for the @dfn{Markov Cluster Algorithm}, a
|
|
|
|
|
fast and scalable unsupervised cluster algorithm for graphs (also known as
|
|
|
|
|
networks) based on simulation of (stochastic) flow in graphs.")
|
|
|
|
|
;; In the LICENCE file and web page it says "The software is licensed
|
|
|
|
|
;; under the GNU General Public License, version 3.", but in several of
|
|
|
|
|
;; the source code files it suggests GPL3 or later.
|
|
|
|
|
;; http://listserver.ebi.ac.uk/pipermail/mcl-users/2016/000376.html
|
|
|
|
|
(license license:gpl3)))
|
|
|
|
|
|
2017-03-17 12:24:13 +01:00
|
|
|
|
(define-public ocaml-mcl
|
|
|
|
|
(package
|
|
|
|
|
(name "ocaml-mcl")
|
|
|
|
|
(version "12-068oasis4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/fhcrc/mcl/archive/"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1l5jbhwjpsj38x8b9698hfpkv75h8hn3kj0gihjhn8ym2cwwv110"))))
|
|
|
|
|
(build-system ocaml-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'configure 'patch-paths
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "configure"
|
|
|
|
|
(("SHELL = /bin/sh") (string-append "SHELL = "(which "sh"))))
|
|
|
|
|
(substitute* "setup.ml"
|
|
|
|
|
(("LDFLAGS=-fPIC")
|
|
|
|
|
(string-append "LDFLAGS=-fPIC\"; \"SHELL=" (which "sh"))))
|
|
|
|
|
#t)))))
|
|
|
|
|
(home-page "https://github.com/fhcrc/mcl")
|
|
|
|
|
(synopsis "OCaml wrappers around MCL")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides OCaml bindings for the MCL graph clustering
|
|
|
|
|
algorithm.")
|
|
|
|
|
(license license:gpl3)))
|
|
|
|
|
|
2017-03-17 22:17:07 +01:00
|
|
|
|
(define-public ocaml4.01-mcl
|
|
|
|
|
(package-with-ocaml4.01 ocaml-mcl))
|
|
|
|
|
|
2015-06-02 15:47:22 +02:00
|
|
|
|
(define-public randomjungle
|
|
|
|
|
(package
|
|
|
|
|
(name "randomjungle")
|
|
|
|
|
(version "2.1.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://www.imbs-luebeck.de/imbs/sites/default/files/u59/"
|
|
|
|
|
"randomjungle-" version ".tar_.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"12c8rf30cla71swx2mf4ww9mfd8jbdw5lnxd7dxhyw1ygrvg6y4w"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list (string-append "--with-boost="
|
|
|
|
|
(assoc-ref %build-inputs "boost")))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before
|
|
|
|
|
'configure 'set-CXXFLAGS
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "CXXFLAGS" "-fpermissive ")
|
|
|
|
|
#t)))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("boost" ,boost)
|
|
|
|
|
("gsl" ,gsl)
|
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(native-inputs
|
2016-05-25 20:48:22 +02:00
|
|
|
|
`(("gfortran" ,gfortran)
|
|
|
|
|
("gfortran:lib" ,gfortran "lib")))
|
2016-09-23 08:22:09 +02:00
|
|
|
|
;; Non-portable assembly instructions are used so building fails on
|
|
|
|
|
;; platforms other than x86_64 or i686.
|
|
|
|
|
(supported-systems '("x86_64-linux" "i686-linux"))
|
2015-06-02 15:47:22 +02:00
|
|
|
|
(home-page "http://www.imbs-luebeck.de/imbs/de/node/227/")
|
|
|
|
|
(synopsis "Implementation of the Random Forests machine learning method")
|
|
|
|
|
(description
|
|
|
|
|
"Random Jungle is an implementation of Random Forests. It is supposed to
|
|
|
|
|
analyse high dimensional data. In genetics, it can be used for analysing big
|
|
|
|
|
Genome Wide Association (GWA) data. Random Forests is a powerful machine
|
|
|
|
|
learning method. Most interesting features are variable selection, missing
|
|
|
|
|
value imputation, classifier creation, generalization error estimation and
|
|
|
|
|
sample proximities between pairs of cases.")
|
|
|
|
|
(license license:gpl3+)))
|
2015-08-14 16:48:52 +02:00
|
|
|
|
|
|
|
|
|
(define-public shogun
|
|
|
|
|
(package
|
|
|
|
|
(name "shogun")
|
2018-05-16 17:56:18 +02:00
|
|
|
|
(version "6.1.3")
|
2015-08-14 16:48:52 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"ftp://shogun-toolbox.org/shogun/releases/"
|
|
|
|
|
(version-major+minor version)
|
|
|
|
|
"/sources/shogun-" version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-05-16 17:56:18 +02:00
|
|
|
|
"1rn9skm3nw6hr7mr3lgp2gfqhi7ii0lyxck7qmqnf8avq349s5jp"))
|
2015-08-14 16:48:52 +02:00
|
|
|
|
(modules '((guix build utils)
|
|
|
|
|
(ice-9 rdelim)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
;; Remove non-free sources and files referencing them
|
|
|
|
|
(for-each delete-file
|
|
|
|
|
(find-files "src/shogun/classifier/svm/"
|
|
|
|
|
"SVMLight\\.(cpp|h)"))
|
|
|
|
|
(for-each delete-file
|
|
|
|
|
(find-files "examples/undocumented/libshogun/"
|
|
|
|
|
(string-append
|
|
|
|
|
"(classifier_.*svmlight.*|"
|
|
|
|
|
"evaluation_cross_validation_locked_comparison).cpp")))
|
|
|
|
|
;; Remove non-free functions.
|
|
|
|
|
(define (delete-ifdefs file)
|
|
|
|
|
(with-atomic-file-replacement file
|
|
|
|
|
(lambda (in out)
|
|
|
|
|
(let loop ((line (read-line in 'concat))
|
|
|
|
|
(skipping? #f))
|
|
|
|
|
(if (eof-object? line)
|
|
|
|
|
#t
|
|
|
|
|
(let ((skip-next?
|
|
|
|
|
(or (and skipping?
|
|
|
|
|
(not (string-prefix?
|
|
|
|
|
"#endif //USE_SVMLIGHT" line)))
|
|
|
|
|
(string-prefix?
|
|
|
|
|
"#ifdef USE_SVMLIGHT" line))))
|
|
|
|
|
(when (or (not skipping?)
|
|
|
|
|
(and skipping? (not skip-next?)))
|
|
|
|
|
(display line out))
|
|
|
|
|
(loop (read-line in 'concat) skip-next?)))))))
|
2018-05-16 17:56:18 +02:00
|
|
|
|
(for-each delete-ifdefs
|
|
|
|
|
(append
|
|
|
|
|
(find-files "src/shogun/classifier/mkl"
|
|
|
|
|
"^MKLClassification\\.cpp")
|
|
|
|
|
(find-files "src/shogun/classifier/svm"
|
|
|
|
|
"^SVMLightOneClass\\.(cpp|h)")
|
|
|
|
|
(find-files "src/shogun/multiclass"
|
|
|
|
|
"^ScatterSVM\\.(cpp|h)")
|
|
|
|
|
(find-files "src/shogun/kernel/"
|
|
|
|
|
"^(Kernel|CombinedKernel|ProductKernel)\\.(cpp|h)")
|
|
|
|
|
(find-files "src/shogun/regression/svr"
|
|
|
|
|
"^(MKLRegression|SVRLight)\\.(cpp|h)")
|
|
|
|
|
(find-files "src/shogun/transfer/domain_adaptation"
|
|
|
|
|
"^DomainAdaptationSVM\\.(cpp|h)")))))))
|
2015-08-14 16:48:52 +02:00
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f ;no check target
|
|
|
|
|
#:phases
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 17:28:42 +02:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'delete-broken-symlinks
|
|
|
|
|
(lambda _
|
|
|
|
|
(for-each delete-file '("applications/arts/data"
|
|
|
|
|
"applications/asp/data"
|
|
|
|
|
"applications/easysvm/data"
|
|
|
|
|
"applications/msplicer/data"
|
|
|
|
|
"applications/ocr/data"
|
2018-05-16 17:56:18 +02:00
|
|
|
|
"examples/meta/data"
|
|
|
|
|
"examples/undocumented/data"))
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 17:28:42 +02:00
|
|
|
|
#t))
|
|
|
|
|
(add-after 'unpack 'change-R-target-path
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2018-05-16 17:56:18 +02:00
|
|
|
|
(substitute* '("src/interfaces/r/CMakeLists.txt"
|
|
|
|
|
"examples/meta/r/CMakeLists.txt")
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 17:28:42 +02:00
|
|
|
|
(("\\$\\{R_COMPONENT_LIB_PATH\\}")
|
|
|
|
|
(string-append (assoc-ref outputs "out")
|
|
|
|
|
"/lib/R/library/")))
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'unpack 'fix-octave-modules
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2018-05-16 17:56:18 +02:00
|
|
|
|
(substitute* "src/interfaces/octave/CMakeLists.txt"
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 17:28:42 +02:00
|
|
|
|
(("^include_directories\\(\\$\\{OCTAVE_INCLUDE_DIRS\\}")
|
2018-05-16 17:56:18 +02:00
|
|
|
|
"include_directories(${OCTAVE_INCLUDE_DIRS} ${OCTAVE_INCLUDE_DIRS}/octave")
|
|
|
|
|
;; change target directory
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 17:28:42 +02:00
|
|
|
|
(("\\$\\{OCTAVE_OCT_LOCAL_API_FILE_DIR\\}")
|
|
|
|
|
(string-append (assoc-ref outputs "out")
|
|
|
|
|
"/share/octave/packages")))
|
2018-05-16 17:56:18 +02:00
|
|
|
|
(substitute* '("src/interfaces/octave/swig_typemaps.i"
|
|
|
|
|
"src/interfaces/octave/sg_print_functions.cpp")
|
|
|
|
|
;; "octave/config.h" and "octave/oct-obj.h" deprecated in Octave.
|
|
|
|
|
(("octave/config\\.h") "octave/octave-config.h")
|
|
|
|
|
(("octave/oct-obj.h") "octave/ovl.h"))
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 17:28:42 +02:00
|
|
|
|
#t))
|
2018-05-16 17:56:18 +02:00
|
|
|
|
(add-after 'unpack 'move-rxcpp
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let ((rxcpp-dir "shogun/third-party/rxcpp"))
|
|
|
|
|
(mkdir-p rxcpp-dir)
|
|
|
|
|
(install-file (assoc-ref inputs "rxcpp") rxcpp-dir)
|
|
|
|
|
#t)))
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 17:28:42 +02:00
|
|
|
|
(add-before 'build 'set-HOME
|
2015-08-14 16:48:52 +02:00
|
|
|
|
;; $HOME needs to be set at some point during the build phase
|
gnu: Use 'modify-phases' syntax.
* gnu/packages/admin.scm (mingetty, clusterssh, wpa-supplicant-minimal,
wpa-supplicant, wakelan, acpica, tree, direvent, dstat)[arguments]: Use
'modify-phases' syntax.
* gnu/packages/algebra.scm (arb)[arguments]: Likewise.
* gnu/packages/apr.scm (apr-util)[arguments]: Likewise.
* gnu/packages/audio.scm (clalsadrv, fluidsynth, faad2, lv2-mda-piano,
lv2-mda-epiano, timidity++, vamp, soundtouch, portaudio, rsound,
zita-convolver, zita-alsa-pcmi)[arguments]: Likewise.
* gnu/packages/backup.scm (rdup, btar)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bedops, bwa, crossmap, express,
flexbar, grit, hisat, ngs-sdk, subread)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (transmission)[arguments]: Likewise.
* gnu/packages/cdrom.scm (cd-discid)[arguments]: Likewise.
* gnu/packages/compression.scm (sharutils)[arguments]: Likewise.
* gnu/packages/conky.scm (conky)[arguments]: Likewise.
* gnu/packages/databases.scm (bdb, bdb-5.3)[arguments]: Likewise.
* gnu/packages/debug.scm (delta, c-reduce)[arguments]: Likewise.
* gnu/packages/display-managers.scm (slim)[arguments]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[arguments]: Likewise.
* gnu/packages/emacs.scm (geiser, emacs-wget, bbdb)[arguments]: Likewise.
* gnu/packages/engineering.scm (pcb)[arguments]: Likewise.
* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Likewise.
* gnu/packages/flashing-tools.scm (flashrom)[arguments]: Likewise.
* gnu/packages/fltk.scm (fltk)[arguments]: Likewise.
* gnu/packages/freedesktop.scm (python-pyxdg)[arguments]: Likewise.
* gnu/packages/gd.scm (perl-gd)[arguments]: Likewise.
* gnu/packages/gkrellm.scm (gkrellm)[arguments]: Likewise.
* gnu/packages/glib.scm (glibmm)[arguments]: Likewise.
* gnu/packages/gl.scm (glew)[arguments]: Likewise.
* gnu/packages/gnome.scm (icon-naming-utils, orbit2, libbonobo, gnome-vfs,
libgnome, libbonoboui, goffice-0.8, dconf)[arguments]: Likewise.
* gnu/packages/gprolog.scm (gprolog)[arguments]: Likewise.
* gnu/packages/gps.scm (gpscorrelate)[arguments]: Likewise.
* gnu/packages/graphics.scm (agg)[arguments]: Likewise.
* gnu/packages/gtk.scm (ganv, girara, gtksourceview-2, guile-present,
python2-pycairo)[arguments]: Likewise.
* gnu/packages/guile.scm (guile-1.8)[arguments]: Likewise.
* gnu/packages/guile-wm.scm (guile-wm)[arguments]: Likewise.
* gnu/packages/hugs.scm (hugs)[arguments]: Likewise.
* gnu/packages/hurd.scm (gnumach-headers, hurd-headers, hurd-minimal)
[arguments]: Likewise.
* gnu/packages/image-viewers.scm (feh, sxiv)[arguments]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[arguments]: Likewise.
* gnu/packages/linux.scm (bridge-utils, iw, fuse, unionfs-fuse/static,
lm-sensors, i2c-tools, xsensors, perf, mdadm, libaio, module-init-tools)
[arguments]: Likewise.
* gnu/packages/lisp.scm (ccl)[arguments]: Likewise.
* gnu/packages/lout.scm (lout)[arguments]: Likewise.
* gnu/packages/lua.scm (luajit)[arguments]: Likewise.
* gnu/packages/machine-learning.scm (shogun)[arguments]: Likewise.
* gnu/packages/mail.scm (exim)[arguments]: Likewise.
* gnu/packages/man.scm (man-pages, txt2man)[arguments]: Likewise.
* gnu/packages/maths.scm (lapack, superlu-dist, openlibm, openspecfun)
[arguments]: Likewise.
* gnu/packages/messaging.scm (bitlbee)[arguments]: Likewise.
* gnu/packages/mp3.scm (libmad, id3lib, mp3info)[arguments]: Likewise.
* gnu/packages/music.scm (solfege)[arguments]: Likewise.
* gnu/packages/noweb.scm (noweb)[arguments]: Likewise.
* gnu/packages/patchutils.scm (patchutils, quilt, colordiff)[arguments]:
Likewise.
* gnu/packages/pdf.scm (xpdf, zathura-cb, zathura-ps, zathura-djvu,
zathura-pdf-poppler, zathura, podofo, fbida)[arguments]: Likewise.
* gnu/packages/perl.scm (perl-file-list, perl-test-harness)[arguments]:
Likewise.
* gnu/packages/photo.scm (gphoto2)[arguments]: Likewise.
* gnu/packages/popt.scm (popt)[arguments]: Likewise.
* gnu/packages/pretty-print.scm (source-highlight, astyle)[arguments]:
Likewise.
* gnu/packages/pumpio.scm (pumpa)[arguments]: Likewise.
* gnu/packages/python.scm (python-passlib, python-pycrypto, python2-empy,
python-sqlalchemy, python-docopt)[arguments]: Likewise.
* gnu/packages/rdf.scm (lrdf)[arguments]: Likewise.
* gnu/packages/regex.scm (tre)[arguments]: Likewise.
* gnu/packages/rrdtool.scm (rrdtool)[arguments]: Likewise.
* gnu/packages/ruby.scm (ruby-2.1, ruby-1.8)[arguments]: Likewise.
* gnu/packages/sawfish.scm (sawfish)[arguments]: Likewise.
* gnu/packages/scheme.scm (racket)[arguments]: Likewise.
* gnu/packages/sdl.scm (guile-sdl)[arguments]: Likewise.
* gnu/packages/serveez.scm (serveez)[arguments]: Likewise.
* gnu/packages/skribilo.scm (skribilo)[arguments]: Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Likewise.
* gnu/packages/suckless.scm (dmenu, slock)[arguments]: Likewise.
* gnu/packages/tcl.scm (expect)[arguments]: Likewise.
* gnu/packages/telephony.scm (commoncpp)[arguments]: Likewise.
* gnu/packages/textutils.scm (recode, libgtextutils)[arguments]:
Likewise.
* gnu/packages/time.scm (time)[arguments]: Likewise.
* gnu/packages/tor.scm (privoxy)[arguments]: Likewise.
* gnu/packages/uucp.scm (uucp)[arguments]: Likewise.
* gnu/packages/video.scm (libdvdnav-4)[arguments]: Likewise.
* gnu/packages/web-browsers.scm (lynx)[arguments]: Likewise.
* gnu/packages/web.scm (tinyproxy)[arguments]: Likewise.
* gnu/packages/wicd.scm (wicd)[arguments]: Likewise.
* gnu/packages/wm.scm (bspwm)[arguments]: Likewise.
* gnu/packages/xdisorg.scm (sxhkd, xcape)[arguments]: Likewise.
* gnu/packages/xfce.scm (xfconf)[arguments]: Likewise.
* gnu/packages/xfig.scm (transfig)[arguments]: Likewise.
* gnu/packages/xorg.scm (imake)[arguments]: Likewise.
2017-07-29 17:28:42 +02:00
|
|
|
|
(lambda _ (setenv "HOME" "/tmp") #t)))
|
2015-08-14 16:48:52 +02:00
|
|
|
|
#:configure-flags
|
|
|
|
|
(list "-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE"
|
|
|
|
|
"-DUSE_SVMLIGHT=OFF" ;disable proprietary SVMLIGHT
|
2018-05-16 17:56:18 +02:00
|
|
|
|
"-DBUILD_META_EXAMPLES=OFF" ;requires unpackaged ctags
|
|
|
|
|
;;"-DINTERFACE_JAVA=ON" ;requires unpackaged jblas
|
|
|
|
|
;;"-DINTERFACE_RUBY=ON" ;requires unpackaged ruby-narray
|
|
|
|
|
;;"-DINTERFACE_PERL=ON" ;"FindPerlLibs" does not exist
|
|
|
|
|
;;"-DINTERFACE_LUA=ON" ;fails because lua doesn't build pkgconfig file
|
|
|
|
|
"-DINTERFACE_OCTAVE=ON"
|
|
|
|
|
"-DINTERFACE_PYTHON=ON"
|
|
|
|
|
"-DINTERFACE_R=ON")))
|
2015-08-14 16:48:52 +02:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python" ,python)
|
|
|
|
|
("numpy" ,python-numpy)
|
2017-03-17 09:42:22 +01:00
|
|
|
|
("r-minimal" ,r-minimal)
|
2015-08-14 16:48:52 +02:00
|
|
|
|
("octave" ,octave)
|
|
|
|
|
("swig" ,swig)
|
2018-05-16 17:56:18 +02:00
|
|
|
|
("eigen" ,eigen)
|
2015-08-14 16:48:52 +02:00
|
|
|
|
("hdf5" ,hdf5)
|
|
|
|
|
("atlas" ,atlas)
|
|
|
|
|
("arpack" ,arpack-ng)
|
|
|
|
|
("lapack" ,lapack)
|
|
|
|
|
("glpk" ,glpk)
|
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
|
("lzo" ,lzo)
|
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(native-inputs
|
2018-05-16 17:56:18 +02:00
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("rxcpp" ,rxcpp)))
|
2015-11-02 14:08:45 +01:00
|
|
|
|
;; Non-portable SSE instructions are used so building fails on platforms
|
|
|
|
|
;; other than x86_64.
|
|
|
|
|
(supported-systems '("x86_64-linux"))
|
2015-08-14 16:48:52 +02:00
|
|
|
|
(home-page "http://shogun-toolbox.org/")
|
|
|
|
|
(synopsis "Machine learning toolbox")
|
|
|
|
|
(description
|
|
|
|
|
"The Shogun Machine learning toolbox provides a wide range of unified and
|
|
|
|
|
efficient Machine Learning (ML) methods. The toolbox seamlessly allows to
|
|
|
|
|
combine multiple data representations, algorithm classes, and general purpose
|
|
|
|
|
tools. This enables both rapid prototyping of data pipelines and extensibility
|
|
|
|
|
in terms of new algorithms.")
|
|
|
|
|
(license license:gpl3+)))
|
2015-12-17 16:28:25 +01:00
|
|
|
|
|
2018-05-09 16:01:40 +02:00
|
|
|
|
(define-public rxcpp
|
|
|
|
|
(package
|
|
|
|
|
(name "rxcpp")
|
|
|
|
|
(version "4.0.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/ReactiveX/RxCpp/archive/v"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0y2isr8dy2n1yjr9c5570kpc9lvdlch6jv0jvw000amwn5d3krsh"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))))
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'remove-werror
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* (find-files ".")
|
|
|
|
|
(("-Werror") ""))
|
|
|
|
|
#t))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "ctest"))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("catch" ,catch-framework)))
|
|
|
|
|
(home-page "http://reactivex.io/")
|
|
|
|
|
(synopsis "Reactive Extensions for C++")
|
|
|
|
|
(description
|
|
|
|
|
"The Reactive Extensions for C++ (RxCpp) is a library of algorithms for
|
|
|
|
|
values-distributed-in-time. ReactiveX is a library for composing asynchronous
|
|
|
|
|
and event-based programs by using observable sequences.
|
|
|
|
|
|
|
|
|
|
It extends the observer pattern to support sequences of data and/or events and
|
|
|
|
|
adds operators that allow you to compose sequences together declaratively while
|
|
|
|
|
abstracting away concerns about things like low-level threading,
|
|
|
|
|
synchronization, thread-safety, concurrent data structures, and non-blocking
|
|
|
|
|
I/O.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
2015-12-17 16:28:25 +01:00
|
|
|
|
(define-public r-adaptivesparsity
|
|
|
|
|
(package
|
|
|
|
|
(name "r-adaptivesparsity")
|
|
|
|
|
(version "1.4")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (cran-uri "AdaptiveSparsity" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1az7isvalf3kmdiycrfl6s9k9xqk22k1mc6rh8v0jmcz402qyq8z"))))
|
|
|
|
|
(properties
|
|
|
|
|
`((upstream-name . "AdaptiveSparsity")))
|
|
|
|
|
(build-system r-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'link-against-armadillo
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "src/Makevars"
|
|
|
|
|
(("PKG_LIBS=" prefix)
|
|
|
|
|
(string-append prefix "-larmadillo"))))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("r-rcpp" ,r-rcpp)
|
|
|
|
|
("r-rcpparmadillo" ,r-rcpparmadillo)))
|
2017-09-22 11:46:21 +02:00
|
|
|
|
(inputs
|
|
|
|
|
`(("armadillo" ,armadillo)))
|
gnu, doc: Use HTTPS for cran.r-project.org home pages.
* gnu/packages/bioinformatics.scm (r-sparql, r-acsnminer, r-gkmsvm)
(r-maldiquant, r-gprofiler)[home-page]: Use HTTPS.
* gnu/packages/cran.scm (r-colorspace, r-auc, r-calibrate, r-shape)
(r-compare, r-proxy, r-sp, r-rmtstat, r-lmtest, r-inline, r-bbmle)
(r-lpsolve, r-energy, r-suppdists, r-ksamples, r-cvst, r-drr, r-prodlim)
(r-ddalpha, r-rcpproll, r-ipred, r-psych, r-truncnorm, r-rsolnp, r-laeken)
(r-vcd, r-ica, r-scatterplot3d)[home-page]: Likewise.
* gnu/packages/machine-learning.scm (r-adaptivesparsity, r-kernlab)
[home-page]: Likewise.
* gnu/packages/maths.scm (r-quadprog, r-pracma)[home-page]: Likewise.
* gnu/packages/statistics.scm (r-boot, r-cluster, r-codetools, r-foreign)
(r-kernsmooth, r-nlme, r-mgcv, r-rpart, r-dichromat, r-estimability)
(r-pheatmap, r-labeling, r-magrittr, r-munsell, r-rcolorbrewer, r-sendmailr)
(r-gdtools, r-acepack, r-formula, r-locfit, r-chron, r-coda, r-backports)
(r-brew, r-commonmark, r-rstudioapi, r-plotrix, r-gridbase, r-bitops)
(r-catools, r-xnomial, r-lambda-r, r-whoreadsthis, r-futile-options)
(r-futile-logger, r-segmented, r-snow, r-iterators, r-foreach, r-doparallel)
(r-domc, r-irlba, r-registry, r-e1071, r-bigmemory-sri, r-r-methodss3)
(r-tidyselect, r-base64, r-runit, r-sfsmisc, r-gtools, r-gdata, r-gplots)
(r-ztable, r-vipor, r-sourcetools, r-statmod, r-compquadform, r-mixtools)
(r-fastica, r-diptest, r-modeltools, r-flexmix, r-deoptimr, r-pcapp)
(r-rrcov, r-fit-models, r-robust, r-trimcluster, r-fpc, r-fnn)
(r-modelmetrics, r-nloptr, r-lme4, r-tclust, r-lubridate)[home-page]:
Likewise.
* gnu/packages/web.scm (r-htmltools, r-hwriter, r-rjson, r-rook)[home-page]:
Likewise.
* doc/guix.texi (Invoking guix import, Invoking guix refresh): Likewise.
2017-12-24 01:01:21 +01:00
|
|
|
|
(home-page "https://cran.r-project.org/web/packages/AdaptiveSparsity")
|
2015-12-17 16:28:25 +01:00
|
|
|
|
(synopsis "Adaptive sparsity models")
|
|
|
|
|
(description
|
|
|
|
|
"This package implements the Figueiredo machine learning algorithm for
|
|
|
|
|
adaptive sparsity and the Wong algorithm for adaptively sparse gaussian
|
|
|
|
|
geometric models.")
|
|
|
|
|
(license license:lgpl3+)))
|
2016-03-31 17:05:27 +02:00
|
|
|
|
|
2016-11-24 15:18:06 +01:00
|
|
|
|
(define-public r-kernlab
|
|
|
|
|
(package
|
|
|
|
|
(name "r-kernlab")
|
|
|
|
|
(version "0.9-25")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (cran-uri "kernlab" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0qnaq9x3j2xc6jrmmd98wc6hkzch487s4p3a9lnc00xvahkhgpmr"))))
|
|
|
|
|
(build-system r-build-system)
|
gnu, doc: Use HTTPS for cran.r-project.org home pages.
* gnu/packages/bioinformatics.scm (r-sparql, r-acsnminer, r-gkmsvm)
(r-maldiquant, r-gprofiler)[home-page]: Use HTTPS.
* gnu/packages/cran.scm (r-colorspace, r-auc, r-calibrate, r-shape)
(r-compare, r-proxy, r-sp, r-rmtstat, r-lmtest, r-inline, r-bbmle)
(r-lpsolve, r-energy, r-suppdists, r-ksamples, r-cvst, r-drr, r-prodlim)
(r-ddalpha, r-rcpproll, r-ipred, r-psych, r-truncnorm, r-rsolnp, r-laeken)
(r-vcd, r-ica, r-scatterplot3d)[home-page]: Likewise.
* gnu/packages/machine-learning.scm (r-adaptivesparsity, r-kernlab)
[home-page]: Likewise.
* gnu/packages/maths.scm (r-quadprog, r-pracma)[home-page]: Likewise.
* gnu/packages/statistics.scm (r-boot, r-cluster, r-codetools, r-foreign)
(r-kernsmooth, r-nlme, r-mgcv, r-rpart, r-dichromat, r-estimability)
(r-pheatmap, r-labeling, r-magrittr, r-munsell, r-rcolorbrewer, r-sendmailr)
(r-gdtools, r-acepack, r-formula, r-locfit, r-chron, r-coda, r-backports)
(r-brew, r-commonmark, r-rstudioapi, r-plotrix, r-gridbase, r-bitops)
(r-catools, r-xnomial, r-lambda-r, r-whoreadsthis, r-futile-options)
(r-futile-logger, r-segmented, r-snow, r-iterators, r-foreach, r-doparallel)
(r-domc, r-irlba, r-registry, r-e1071, r-bigmemory-sri, r-r-methodss3)
(r-tidyselect, r-base64, r-runit, r-sfsmisc, r-gtools, r-gdata, r-gplots)
(r-ztable, r-vipor, r-sourcetools, r-statmod, r-compquadform, r-mixtools)
(r-fastica, r-diptest, r-modeltools, r-flexmix, r-deoptimr, r-pcapp)
(r-rrcov, r-fit-models, r-robust, r-trimcluster, r-fpc, r-fnn)
(r-modelmetrics, r-nloptr, r-lme4, r-tclust, r-lubridate)[home-page]:
Likewise.
* gnu/packages/web.scm (r-htmltools, r-hwriter, r-rjson, r-rook)[home-page]:
Likewise.
* doc/guix.texi (Invoking guix import, Invoking guix refresh): Likewise.
2017-12-24 01:01:21 +01:00
|
|
|
|
(home-page "https://cran.r-project.org/web/packages/kernlab")
|
2016-11-24 15:18:06 +01:00
|
|
|
|
(synopsis "Kernel-based machine learning tools")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides kernel-based machine learning methods for
|
|
|
|
|
classification, regression, clustering, novelty detection, quantile regression
|
|
|
|
|
and dimensionality reduction. Among other methods @code{kernlab} includes
|
|
|
|
|
Support Vector Machines, Spectral Clustering, Kernel PCA, Gaussian Processes
|
|
|
|
|
and a QP solver.")
|
|
|
|
|
(license license:gpl2)))
|
|
|
|
|
|
2016-08-13 12:26:10 +02:00
|
|
|
|
(define-public dlib
|
|
|
|
|
(package
|
|
|
|
|
(name "dlib")
|
2017-09-21 20:04:36 +02:00
|
|
|
|
(version "19.7")
|
2016-08-13 12:26:10 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://dlib.net/files/dlib-" version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-09-21 20:04:36 +02:00
|
|
|
|
"1mljz02kwkrbggyncxv5fpnyjdybw2qihaacb3js8yfkw12vwpc2"))
|
2016-08-13 12:26:10 +02:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
;; Delete ~13MB of bundled dependencies.
|
|
|
|
|
(delete-file-recursively "dlib/external")
|
2017-02-20 02:08:27 +01:00
|
|
|
|
(delete-file-recursively "docs/dlib/external")
|
|
|
|
|
#t))))
|
2016-08-13 12:26:10 +02:00
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
2017-12-19 15:25:12 +01:00
|
|
|
|
`(#:phases
|
2016-08-13 12:26:10 +02:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'disable-asserts
|
|
|
|
|
(lambda _
|
|
|
|
|
;; config.h recommends explicitly enabling or disabling asserts
|
|
|
|
|
;; when building as a shared library. By default neither is set.
|
|
|
|
|
(substitute* "dlib/config.h"
|
|
|
|
|
(("^//#define DLIB_DISABLE_ASSERTS") "#define DLIB_DISABLE_ASSERTS"))
|
|
|
|
|
#t))
|
2016-09-09 02:51:23 +02:00
|
|
|
|
(add-after 'disable-asserts 'disable-failing-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
;; One test times out on MIPS, so we need to disable it.
|
2017-02-20 02:08:27 +01:00
|
|
|
|
;; Others are flaky on some platforms.
|
2016-09-09 02:51:23 +02:00
|
|
|
|
(let* ((system ,(or (%current-target-system)
|
|
|
|
|
(%current-system)))
|
|
|
|
|
(disabled-tests (cond
|
|
|
|
|
((string-prefix? "mips64" system)
|
|
|
|
|
'("object_detector" ; timeout
|
|
|
|
|
"data_io"))
|
|
|
|
|
((string-prefix? "armhf" system)
|
2017-02-25 12:09:25 +01:00
|
|
|
|
'("learning_to_track"))
|
2016-09-09 02:51:23 +02:00
|
|
|
|
((string-prefix? "i686" system)
|
2017-02-20 02:08:27 +01:00
|
|
|
|
'("optimization"))
|
2016-09-09 02:51:23 +02:00
|
|
|
|
(else '()))))
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (test)
|
|
|
|
|
(substitute* "dlib/test/makefile"
|
2017-02-20 02:08:27 +01:00
|
|
|
|
(((string-append "SRC \\+= " test "\\.cpp")) "")))
|
|
|
|
|
disabled-tests)
|
|
|
|
|
#t)))
|
2016-08-13 12:26:10 +02:00
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
;; No test target, so we build and run the unit tests here.
|
2016-08-27 18:23:58 +02:00
|
|
|
|
(let ((test-dir (string-append "../dlib-" ,version "/dlib/test")))
|
2016-08-13 12:26:10 +02:00
|
|
|
|
(with-directory-excursion test-dir
|
2016-08-27 18:23:58 +02:00
|
|
|
|
(and (zero? (system* "make" "-j" (number->string (parallel-job-count))))
|
2016-08-13 12:26:10 +02:00
|
|
|
|
(zero? (system* "./dtest" "--runall")))))))
|
|
|
|
|
(add-after 'install 'delete-static-library
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2017-02-20 02:08:27 +01:00
|
|
|
|
(delete-file (string-append (assoc-ref outputs "out")
|
|
|
|
|
"/lib/libdlib.a"))
|
|
|
|
|
#t)))))
|
2016-08-13 12:26:10 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
|
(inputs
|
2016-08-23 22:17:14 +02:00
|
|
|
|
`(("giflib" ,giflib)
|
2016-09-09 02:51:23 +02:00
|
|
|
|
("lapack" ,lapack)
|
2016-08-13 12:26:10 +02:00
|
|
|
|
("libjpeg" ,libjpeg)
|
|
|
|
|
("libpng" ,libpng)
|
|
|
|
|
("libx11" ,libx11)
|
|
|
|
|
("openblas" ,openblas)
|
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(synopsis
|
|
|
|
|
"Toolkit for making machine learning and data analysis applications in C++")
|
|
|
|
|
(description
|
|
|
|
|
"Dlib is a modern C++ toolkit containing machine learning algorithms and
|
|
|
|
|
tools. It is used in both industry and academia in a wide range of domains
|
|
|
|
|
including robotics, embedded devices, mobile phones, and large high performance
|
|
|
|
|
computing environments.")
|
|
|
|
|
(home-page "http://dlib.net")
|
|
|
|
|
(license license:boost1.0)))
|
2017-11-17 22:07:23 +01:00
|
|
|
|
|
|
|
|
|
(define-public python-scikit-learn
|
|
|
|
|
(package
|
|
|
|
|
(name "python-scikit-learn")
|
2017-11-27 23:49:55 +01:00
|
|
|
|
(version "0.19.1")
|
2017-11-17 22:07:23 +01:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/scikit-learn/scikit-learn/archive/"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-12-14 09:45:21 +01:00
|
|
|
|
"18n8775kyfwbvcjjjzda9c5sqy4737c0hrmj6qj1ps2jmlqzair9"))
|
|
|
|
|
(patches (search-patches
|
|
|
|
|
"python-scikit-learn-fix-test-non-determinism.patch"))))
|
2017-11-17 22:07:23 +01:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'check)
|
|
|
|
|
(add-after 'install 'check
|
|
|
|
|
;; Running tests from the source directory requires
|
|
|
|
|
;; an "inplace" build with paths relative to CWD.
|
|
|
|
|
;; http://scikit-learn.org/stable/developers/advanced_installation.html#testing
|
|
|
|
|
;; Use the installed version instead.
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(add-installed-pythonpath inputs outputs)
|
|
|
|
|
;; some tests require access to "$HOME"
|
|
|
|
|
(setenv "HOME" "/tmp")
|
|
|
|
|
;; Step out of the source directory just to be sure.
|
|
|
|
|
(chdir "..")
|
|
|
|
|
(zero? (system* "nosetests" "-v" "sklearn")))))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("openblas" ,openblas)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)
|
|
|
|
|
("python-cython" ,python-cython)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-numpy" ,python-numpy)
|
|
|
|
|
("python-scipy" ,python-scipy)))
|
|
|
|
|
(home-page "http://scikit-learn.org/")
|
|
|
|
|
(synopsis "Machine Learning in Python")
|
|
|
|
|
(description
|
|
|
|
|
"Scikit-learn provides simple and efficient tools for data
|
|
|
|
|
mining and data analysis.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-scikit-learn
|
|
|
|
|
(package-with-python2 python-scikit-learn))
|
2018-04-28 05:47:03 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-autograd
|
|
|
|
|
(let* ((commit "442205dfefe407beffb33550846434baa90c4de7")
|
|
|
|
|
(revision "0")
|
|
|
|
|
(version (git-version "0.0.0" revision commit)))
|
|
|
|
|
(package
|
|
|
|
|
(name "python-autograd")
|
|
|
|
|
(home-page "https://github.com/HIPS/autograd")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url home-page)
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"189sv2xb0mwnjawa9z7mrgdglc1miaq93pnck26r28fi1jdwg0z4"))
|
|
|
|
|
(file-name (git-file-name name version))))
|
|
|
|
|
(version version)
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)
|
|
|
|
|
("python-pytest" ,python-pytest)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-future" ,python-future)
|
|
|
|
|
("python-numpy" ,python-numpy)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases (modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "py.test" "-v"))))))
|
|
|
|
|
(synopsis "Efficiently computes derivatives of NumPy code")
|
|
|
|
|
(description "Autograd can automatically differentiate native Python and
|
|
|
|
|
NumPy code. It can handle a large subset of Python's features, including loops,
|
|
|
|
|
ifs, recursion and closures, and it can even take derivatives of derivatives
|
|
|
|
|
of derivatives. It supports reverse-mode differentiation
|
|
|
|
|
(a.k.a. backpropagation), which means it can efficiently take gradients of
|
|
|
|
|
scalar-valued functions with respect to array-valued arguments, as well as
|
|
|
|
|
forward-mode differentiation, and the two can be composed arbitrarily. The
|
|
|
|
|
main intended application of Autograd is gradient-based optimization.")
|
|
|
|
|
(license license:expat))))
|
|
|
|
|
|
|
|
|
|
(define-public python2-autograd
|
|
|
|
|
(package-with-python2 python-autograd))
|