2014-07-05 14:30:51 +02:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2014 John Darrington <jmd@gnu.org>
|
2015-02-12 00:15:02 +01:00
|
|
|
|
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
|
2014-07-05 14:30:51 +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 lisp)
|
|
|
|
|
#:use-module (gnu packages)
|
Use #:prefix instead of #:renamer with 'symbol-prefix-proc'.
* gnu/packages/abiword.scm, gnu/packages/admin.scm, gnu/packages/aidc.scm,
gnu/packages/backup.scm, gnu/packages/bittorrent.scm,
gnu/packages/boost.scm, gnu/packages/compression.scm,
gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/dc.scm, gnu/packages/emacs.scm,
gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/geeqie.scm,
gnu/packages/ghostscript.scm, gnu/packages/gimp.scm,
gnu/packages/gkrellm.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm, gnu/packages/gnuzilla.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/gv.scm, gnu/packages/image.scm,
gnu/packages/indent.scm, gnu/packages/inkscape.scm,
gnu/packages/lesstif.scm, gnu/packages/links.scm, gnu/packages/lisp.scm,
gnu/packages/lsh.scm, gnu/packages/lsof.scm, gnu/packages/maths.scm,
gnu/packages/mp3.scm, gnu/packages/openssl.scm, gnu/packages/ots.scm,
gnu/packages/pciutils.scm, gnu/packages/pcre.scm, gnu/packages/pdf.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python.scm, gnu/packages/slim.scm,
gnu/packages/ssh.scm, gnu/packages/texlive.scm, gnu/packages/vim.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wv.scm,
gnu/packages/xiph.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm,
gnu/packages/yasm.scm, gnu/packages/zip.scm,
guix/build/cmake-build-system.scm, guix/build/perl-build-system.scm,
guix/build/python-build-system.scm, guix/download.scm: Replaces uses of
#:renamer and 'symbol-prefix-proc' with #:prefix.
2014-09-23 22:44:22 +02:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2014-07-05 14:30:51 +02:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (gnu packages readline)
|
|
|
|
|
#:use-module (gnu packages texinfo)
|
|
|
|
|
#:use-module (gnu packages texlive)
|
|
|
|
|
#:use-module (gnu packages m4)
|
|
|
|
|
#:use-module (guix download)
|
|
|
|
|
#:use-module (guix utils)
|
2015-02-12 00:15:02 +01:00
|
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
|
#:use-module (gnu packages which)
|
|
|
|
|
#:use-module (gnu packages multiprecision)
|
|
|
|
|
#:use-module (gnu packages bdw-gc)
|
2015-02-12 22:19:52 +01:00
|
|
|
|
#:use-module (gnu packages libffi)
|
|
|
|
|
#:use-module (gnu packages libffcall)
|
|
|
|
|
#:use-module (gnu packages readline)
|
|
|
|
|
#:use-module (gnu packages libsigsegv))
|
2014-07-05 14:30:51 +02:00
|
|
|
|
|
|
|
|
|
(define-public gcl
|
|
|
|
|
(package
|
|
|
|
|
(name "gcl")
|
2014-11-23 22:02:20 +01:00
|
|
|
|
(version "2.6.12")
|
2014-07-05 14:30:51 +02:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/" name "/" name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
2014-11-23 22:02:20 +01:00
|
|
|
|
(base32 "1s4hs2qbjqmn9h88l4xvsifq5c3dlc5s74lyb61rdi5grhdlkf4f"))))
|
2014-07-05 14:30:51 +02:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:parallel-build? #f ; The build system seems not to be thread safe.
|
|
|
|
|
#:tests? #f ; There does not seem to be make check or anything similar.
|
|
|
|
|
#:configure-flags '("--enable-ansi") ; required for use by the maxima package
|
|
|
|
|
#:phases (alist-cons-before
|
|
|
|
|
'configure 'pre-conf
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Patch bug when building readline support. This bug was
|
|
|
|
|
;; also observed by Debian
|
|
|
|
|
;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741819
|
|
|
|
|
(substitute* "o/gcl_readline.d"
|
|
|
|
|
(("rl_attempted_completion_function = \\(CPPFunction \\*\\)rl_completion;")
|
|
|
|
|
"rl_attempted_completion_function = rl_completion;"))
|
|
|
|
|
(substitute*
|
|
|
|
|
(append
|
|
|
|
|
'("pcl/impl/kcl/makefile.akcl"
|
|
|
|
|
"add-defs"
|
|
|
|
|
"unixport/makefile.dos"
|
|
|
|
|
"add-defs.bat"
|
|
|
|
|
"gcl-tk/makefile.prev"
|
|
|
|
|
"add-defs1")
|
|
|
|
|
(find-files "h" "\\.defs"))
|
|
|
|
|
(("SHELL=/bin/(ba)?sh")
|
|
|
|
|
(string-append "SHELL=" (which "bash")))))
|
2014-11-27 23:34:46 +01:00
|
|
|
|
;; drop strip phase to make maxima build, see
|
|
|
|
|
;; https://www.ma.utexas.edu/pipermail/maxima/2008/009769.html
|
|
|
|
|
(alist-delete 'strip
|
|
|
|
|
%standard-phases))))
|
2014-07-05 14:30:51 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("m4" ,m4)
|
|
|
|
|
("readline" ,readline)
|
|
|
|
|
("texinfo" ,texinfo)
|
|
|
|
|
("texlive" ,texlive)))
|
|
|
|
|
(home-page "http://www.gnu.org/software/gcl")
|
2014-11-09 17:56:02 +01:00
|
|
|
|
(synopsis "A Common Lisp implementation")
|
2014-07-05 14:30:51 +02:00
|
|
|
|
(description "GCL is an implementation of the Common Lisp language. It
|
|
|
|
|
features the ability to compile to native object code and to load native
|
|
|
|
|
object code modules directly into its lisp core. It also features a
|
|
|
|
|
stratified garbage collection strategy, a source-level debugger and a built-in
|
|
|
|
|
interface to the Tk widget system.")
|
|
|
|
|
(license license:lgpl2.0+)))
|
|
|
|
|
|
2015-02-12 00:15:02 +01:00
|
|
|
|
(define-public ecl
|
|
|
|
|
(package
|
|
|
|
|
(name "ecl")
|
|
|
|
|
(version "13.5.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/ecls/ecls/"
|
|
|
|
|
(version-major+minor version)
|
|
|
|
|
"/ecl-" version ".tgz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "18ic8w9sdl0dh3kmyc9lsrafikrd9cg1jkhhr25p9saz0v75f77r"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs `(("which" ,which)))
|
|
|
|
|
(inputs `(("gmp" ,gmp)
|
|
|
|
|
("libatomic-ops" ,libatomic-ops)
|
|
|
|
|
("libgc" ,libgc)
|
|
|
|
|
("libffi" ,libffi)))
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
;; The test-suite seems to assume that ECL is installed. So re-order
|
|
|
|
|
;; the phases, then reference the installed executable.
|
|
|
|
|
(let* ((check-phase (assq-ref %standard-phases 'check))
|
|
|
|
|
(rearranged-phases
|
|
|
|
|
(alist-cons-after 'install 'check check-phase
|
|
|
|
|
(alist-delete 'check %standard-phases))))
|
|
|
|
|
(alist-cons-before
|
|
|
|
|
'check 'pre-check
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(substitute* '("build/tests/Makefile")
|
|
|
|
|
(("ECL=ecl")
|
|
|
|
|
(string-append
|
|
|
|
|
"ECL=" (assoc-ref outputs "out") "/bin/ecl"))))
|
|
|
|
|
rearranged-phases))
|
|
|
|
|
;; Parallel builds explicitly not supported:
|
|
|
|
|
;; http://sourceforge.net/p/ecls/bugs/98/
|
|
|
|
|
#:parallel-build? #f
|
|
|
|
|
#:parallel-tests? #f))
|
|
|
|
|
(home-page "http://ecls.sourceforge.net/")
|
|
|
|
|
(synopsis "Embeddable Common Lisp")
|
|
|
|
|
(description "ECL is an implementation of the Common Lisp language as
|
|
|
|
|
defined by the ANSI X3J13 specification. Its most relevant features are: a
|
|
|
|
|
bytecode compiler and interpreter, being able to compile Common Lisp with any
|
|
|
|
|
C/C++ compiler, being able to build standalone executables and libraries, and
|
|
|
|
|
supporting ASDF, Sockets, Gray streams, MOP, and other useful components.")
|
|
|
|
|
;; Note that the file "Copyright" points to some files and directories
|
|
|
|
|
;; which aren't under the lgpl2.0+ and instead contain many different,
|
|
|
|
|
;; non-copyleft licenses.
|
|
|
|
|
(license license:lgpl2.0+)))
|
2015-02-12 22:19:52 +01:00
|
|
|
|
|
|
|
|
|
(define-public clisp
|
|
|
|
|
(package
|
|
|
|
|
(name "clisp")
|
|
|
|
|
(version "2.49")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/clisp/release/" version
|
|
|
|
|
"/clisp-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0rp82nqp5362isl9i34rwgg04cidz7izljd9d85pqcw1qr964bxx"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs `(("libffcall" ,libffcall)
|
|
|
|
|
("readline" ,readline)
|
|
|
|
|
("libsigsegv" ,libsigsegv)))
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(alist-cons-after
|
|
|
|
|
'unpack 'patch-sh-and-pwd
|
|
|
|
|
(lambda _
|
|
|
|
|
;; The package is very messy with its references to "/bin/sh" and
|
|
|
|
|
;; some other absolute paths to traditional tools. These appear in
|
|
|
|
|
;; many places where our automatic patching misses them. Therefore
|
|
|
|
|
;; we do the following, in this early (post-unpack) phase, to solve
|
|
|
|
|
;; the problem from its root.
|
|
|
|
|
(substitute* (find-files "." "configure|Makefile")
|
|
|
|
|
(("/bin/sh") "sh"))
|
|
|
|
|
(substitute* '("src/clisp-link.in")
|
|
|
|
|
(("/bin/pwd") "pwd")))
|
|
|
|
|
(alist-cons-before
|
|
|
|
|
'build 'chdir-to-source
|
|
|
|
|
(lambda _
|
|
|
|
|
;; We are supposed to call make under the src sub-directory.
|
|
|
|
|
(chdir "src"))
|
|
|
|
|
%standard-phases))
|
|
|
|
|
;; Makefiles seem to have race conditions.
|
|
|
|
|
#:parallel-build? #f))
|
|
|
|
|
(home-page "http://www.clisp.org/")
|
|
|
|
|
(synopsis "Common Lisp implementation")
|
|
|
|
|
(description "GNU CLISP is an implementation of ANSI Common Lisp, with
|
|
|
|
|
many extensions. It includes an interpreter, compiler, debugger, CLOS, MOP,
|
|
|
|
|
an FFI, i18n, POSIX and Perl regular expressions, a socket interface, fast
|
|
|
|
|
bignums, arbitrary precision floats, and more. An X11 interface is available
|
|
|
|
|
through CLX, Garnet and CLUE/CLIO. Command line editing is provided by
|
|
|
|
|
readline.")
|
|
|
|
|
;; Website says gpl2+, COPYRIGHT file says gpl2; actual source files have
|
|
|
|
|
;; a lot of gpl3+. (Also some parts are under non-copyleft licenses, such
|
|
|
|
|
;; as CLX by Texas Instruments.) In that case gpl3+ wins out.
|
|
|
|
|
(license license:gpl3+)))
|