2014-07-05 08:30:51 -04:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2014 John Darrington <jmd@gnu.org>
|
2015-02-11 18:15:02 -05:00
|
|
|
|
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
|
2015-03-07 20:42:01 -05:00
|
|
|
|
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
2016-01-10 04:41:23 -05:00
|
|
|
|
;;; Copyright © 2016 Federico Beffa <beffa@fbengineering.ch>
|
2016-07-01 11:22:50 -04:00
|
|
|
|
;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
|
2014-07-05 08:30:51 -04: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 16:44:22 -04:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2014-07-05 08:30:51 -04:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (gnu packages readline)
|
|
|
|
|
#:use-module (gnu packages texinfo)
|
2016-05-24 15:18:53 -04:00
|
|
|
|
#:use-module (gnu packages tex)
|
2014-07-05 08:30:51 -04:00
|
|
|
|
#:use-module (gnu packages m4)
|
|
|
|
|
#:use-module (guix download)
|
2016-02-07 11:50:12 -05:00
|
|
|
|
#:use-module (guix git-download)
|
2014-07-05 08:30:51 -04:00
|
|
|
|
#:use-module (guix utils)
|
2015-02-11 18:15:02 -05:00
|
|
|
|
#:use-module (guix build-system gnu)
|
gnu: Move 'which' to (gnu packages base).
* gnu/packages/which.scm: Remove.
* gnu-system.am (GNU_SYSTEM_MODULES): Remove it.
* gnu/packages/base.scm (which): New variable.
* gnu/packages/aspell.scm, gnu/packages/audio.scm,
gnu/packages/autogen.scm, gnu/packages/cdrom.scm,
gnu/packages/compression.scm, gnu/packages/datamash.scm,
gnu/packages/games.scm, gnu/packages/glib.scm,
gnu/packages/gnu-pw-mgr.scm, gnu/packages/gnutls.scm,
gnu/packages/gps.scm, gnu/packages/guile.scm,
gnu/packages/java.scm, gnu/packages/libevent.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/node.scm, gnu/packages/ntp.scm,
gnu/packages/orpheus.scm, gnu/packages/pciutils.scm,
gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/sawfish.scm,
gnu/packages/scheme.scm, gnu/packages/ssh.scm,
gnu/packages/statistics.scm, gnu/packages/texlive.scm,
gnu/packages/wdiff.scm: Adjust accordingly.
2015-03-04 11:21:21 -05:00
|
|
|
|
#:use-module (gnu packages base)
|
2015-02-11 18:15:02 -05:00
|
|
|
|
#:use-module (gnu packages multiprecision)
|
|
|
|
|
#:use-module (gnu packages bdw-gc)
|
2015-02-12 16:19:52 -05:00
|
|
|
|
#:use-module (gnu packages libffi)
|
|
|
|
|
#:use-module (gnu packages libffcall)
|
|
|
|
|
#:use-module (gnu packages readline)
|
2015-02-14 13:04:12 -05:00
|
|
|
|
#:use-module (gnu packages libsigsegv)
|
|
|
|
|
#:use-module (gnu packages admin)
|
2015-02-15 18:46:12 -05:00
|
|
|
|
#:use-module (gnu packages ed)
|
|
|
|
|
#:use-module (gnu packages m4)
|
|
|
|
|
#:use-module (gnu packages version-control)
|
|
|
|
|
#:use-module (ice-9 match))
|
2014-07-05 08:30:51 -04:00
|
|
|
|
|
|
|
|
|
(define-public gcl
|
|
|
|
|
(package
|
|
|
|
|
(name "gcl")
|
2014-11-23 16:02:20 -05:00
|
|
|
|
(version "2.6.12")
|
2014-07-05 08:30:51 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/" name "/" name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
2014-11-23 16:02:20 -05:00
|
|
|
|
(base32 "1s4hs2qbjqmn9h88l4xvsifq5c3dlc5s74lyb61rdi5grhdlkf4f"))))
|
2014-07-05 08:30:51 -04: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
|
gnu: Adjust formatting as recommended by 'guix lint'.
* gnu/packages/aidc.scm (barcode, qrencode),
gnu/packages/bash.scm (bash, bash-completion),
gnu/packages/busybox.scm (busybox),
gnu/packages/cdrom.scm (cdparanoia),
gnu/packages/cmake.scm (cmake),
gnu/packages/conkeror.scm (conkeror),
gnu/packages/cook.scm (cook),
gnu/packages/curl.scm (curl),
gnu/packages/docbook.scm (docbook-xsl),
gnu/packages/enlightenment.scm (enlightenment),
gnu/packages/games.scm (abbaye),
gnu/packages/geeqie.scm (exiv2),
gnu/packages/gimp.scm (gegl),
gnu/packages/gl.scm (glu, freeglut, ftgl),
gnu/packages/glib.scm (glib),
gnu/packages/gnome.scm (orbit2, gconf, geocode-glib),
gnu/packages/gstreamer.scm (gstreamer, gst-plugins-base),
gnu/packages/linux.scm (util-linux),
gnu/packages/lisp.scm (gcl, ecl),
gnu/packages/maths.scm (gnuplot, hdf5),
gnu/packages/ssh.scm (dropbear),
gnu/packages/web.scm (json-c): Remove tabulations and trailing
white spaces or reformat to fit within 80 columns.
* gnu/packages/audio.scm (aubio),
gnu/packages/emacs.scm (emacs-s),
gnu/packages/engineering.scm (geda-gaf),
gnu/packages/games.scm (dosbox),
gnu/packages/gnome.scm (gusb),
gnu/packages/gtk.scm (gtk+),
gnu/packages/guile.scm (guile-wisp),
gnu/packages/hurd.scm (hurd-headers),
gnu/packages/wm.scm (i3-wm): Adjust synopsis or description.
2015-11-13 09:50:36 -05:00
|
|
|
|
(lambda _
|
2014-07-05 08:30:51 -04:00
|
|
|
|
;; 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"
|
gnu: Adjust formatting as recommended by 'guix lint'.
* gnu/packages/aidc.scm (barcode, qrencode),
gnu/packages/bash.scm (bash, bash-completion),
gnu/packages/busybox.scm (busybox),
gnu/packages/cdrom.scm (cdparanoia),
gnu/packages/cmake.scm (cmake),
gnu/packages/conkeror.scm (conkeror),
gnu/packages/cook.scm (cook),
gnu/packages/curl.scm (curl),
gnu/packages/docbook.scm (docbook-xsl),
gnu/packages/enlightenment.scm (enlightenment),
gnu/packages/games.scm (abbaye),
gnu/packages/geeqie.scm (exiv2),
gnu/packages/gimp.scm (gegl),
gnu/packages/gl.scm (glu, freeglut, ftgl),
gnu/packages/glib.scm (glib),
gnu/packages/gnome.scm (orbit2, gconf, geocode-glib),
gnu/packages/gstreamer.scm (gstreamer, gst-plugins-base),
gnu/packages/linux.scm (util-linux),
gnu/packages/lisp.scm (gcl, ecl),
gnu/packages/maths.scm (gnuplot, hdf5),
gnu/packages/ssh.scm (dropbear),
gnu/packages/web.scm (json-c): Remove tabulations and trailing
white spaces or reformat to fit within 80 columns.
* gnu/packages/audio.scm (aubio),
gnu/packages/emacs.scm (emacs-s),
gnu/packages/engineering.scm (geda-gaf),
gnu/packages/games.scm (dosbox),
gnu/packages/gnome.scm (gusb),
gnu/packages/gtk.scm (gtk+),
gnu/packages/guile.scm (guile-wisp),
gnu/packages/hurd.scm (hurd-headers),
gnu/packages/wm.scm (i3-wm): Adjust synopsis or description.
2015-11-13 09:50:36 -05:00
|
|
|
|
(("rl_attempted_completion_function = \
|
|
|
|
|
\\(CPPFunction \\*\\)rl_completion;")
|
2014-07-05 08:30:51 -04:00
|
|
|
|
"rl_attempted_completion_function = rl_completion;"))
|
gnu: Adjust formatting as recommended by 'guix lint'.
* gnu/packages/aidc.scm (barcode, qrencode),
gnu/packages/bash.scm (bash, bash-completion),
gnu/packages/busybox.scm (busybox),
gnu/packages/cdrom.scm (cdparanoia),
gnu/packages/cmake.scm (cmake),
gnu/packages/conkeror.scm (conkeror),
gnu/packages/cook.scm (cook),
gnu/packages/curl.scm (curl),
gnu/packages/docbook.scm (docbook-xsl),
gnu/packages/enlightenment.scm (enlightenment),
gnu/packages/games.scm (abbaye),
gnu/packages/geeqie.scm (exiv2),
gnu/packages/gimp.scm (gegl),
gnu/packages/gl.scm (glu, freeglut, ftgl),
gnu/packages/glib.scm (glib),
gnu/packages/gnome.scm (orbit2, gconf, geocode-glib),
gnu/packages/gstreamer.scm (gstreamer, gst-plugins-base),
gnu/packages/linux.scm (util-linux),
gnu/packages/lisp.scm (gcl, ecl),
gnu/packages/maths.scm (gnuplot, hdf5),
gnu/packages/ssh.scm (dropbear),
gnu/packages/web.scm (json-c): Remove tabulations and trailing
white spaces or reformat to fit within 80 columns.
* gnu/packages/audio.scm (aubio),
gnu/packages/emacs.scm (emacs-s),
gnu/packages/engineering.scm (geda-gaf),
gnu/packages/games.scm (dosbox),
gnu/packages/gnome.scm (gusb),
gnu/packages/gtk.scm (gtk+),
gnu/packages/guile.scm (guile-wisp),
gnu/packages/hurd.scm (hurd-headers),
gnu/packages/wm.scm (i3-wm): Adjust synopsis or description.
2015-11-13 09:50:36 -05:00
|
|
|
|
(substitute*
|
|
|
|
|
(append
|
2014-07-05 08:30:51 -04:00
|
|
|
|
'("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 17:34:46 -05: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 08:30:51 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("m4" ,m4)
|
|
|
|
|
("readline" ,readline)
|
|
|
|
|
("texinfo" ,texinfo)
|
|
|
|
|
("texlive" ,texlive)))
|
|
|
|
|
(home-page "http://www.gnu.org/software/gcl")
|
2014-11-09 11:56:02 -05:00
|
|
|
|
(synopsis "A Common Lisp implementation")
|
2014-07-05 08:30:51 -04: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-11 18:15:02 -05:00
|
|
|
|
(define-public ecl
|
|
|
|
|
(package
|
|
|
|
|
(name "ecl")
|
2015-02-21 16:28:45 -05:00
|
|
|
|
(version "15.2.21")
|
2015-02-11 18:15:02 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/ecls/ecls/"
|
|
|
|
|
(version-major+minor version)
|
|
|
|
|
"/ecl-" version ".tgz"))
|
|
|
|
|
(sha256
|
2015-02-21 16:28:45 -05:00
|
|
|
|
(base32 "05di23v977byf67rq5bdshw8lqbby1ycbscdcl1vca0z6r1s204j"))))
|
2015-02-11 18:15:02 -05:00
|
|
|
|
(build-system gnu-build-system)
|
2015-02-21 16:28:45 -05:00
|
|
|
|
;; src/configure uses 'which' to confirm the existence of 'gzip'.
|
2015-02-11 18:15:02 -05:00
|
|
|
|
(native-inputs `(("which" ,which)))
|
|
|
|
|
(inputs `(("gmp" ,gmp)
|
|
|
|
|
("libatomic-ops" ,libatomic-ops)
|
|
|
|
|
("libgc" ,libgc)
|
|
|
|
|
("libffi" ,libffi)))
|
|
|
|
|
(arguments
|
gnu: Adjust formatting as recommended by 'guix lint'.
* gnu/packages/aidc.scm (barcode, qrencode),
gnu/packages/bash.scm (bash, bash-completion),
gnu/packages/busybox.scm (busybox),
gnu/packages/cdrom.scm (cdparanoia),
gnu/packages/cmake.scm (cmake),
gnu/packages/conkeror.scm (conkeror),
gnu/packages/cook.scm (cook),
gnu/packages/curl.scm (curl),
gnu/packages/docbook.scm (docbook-xsl),
gnu/packages/enlightenment.scm (enlightenment),
gnu/packages/games.scm (abbaye),
gnu/packages/geeqie.scm (exiv2),
gnu/packages/gimp.scm (gegl),
gnu/packages/gl.scm (glu, freeglut, ftgl),
gnu/packages/glib.scm (glib),
gnu/packages/gnome.scm (orbit2, gconf, geocode-glib),
gnu/packages/gstreamer.scm (gstreamer, gst-plugins-base),
gnu/packages/linux.scm (util-linux),
gnu/packages/lisp.scm (gcl, ecl),
gnu/packages/maths.scm (gnuplot, hdf5),
gnu/packages/ssh.scm (dropbear),
gnu/packages/web.scm (json-c): Remove tabulations and trailing
white spaces or reformat to fit within 80 columns.
* gnu/packages/audio.scm (aubio),
gnu/packages/emacs.scm (emacs-s),
gnu/packages/engineering.scm (geda-gaf),
gnu/packages/games.scm (dosbox),
gnu/packages/gnome.scm (gusb),
gnu/packages/gtk.scm (gtk+),
gnu/packages/guile.scm (guile-wisp),
gnu/packages/hurd.scm (hurd-headers),
gnu/packages/wm.scm (i3-wm): Adjust synopsis or description.
2015-11-13 09:50:36 -05:00
|
|
|
|
'(;; During 'make check', ECL fails to initialize with "protocol not
|
2015-02-21 16:28:45 -05:00
|
|
|
|
;; supported", presumably because /etc/protocols is missing in the
|
|
|
|
|
;; build environment. See <http://sourceforge.net/p/ecls/bugs/300/>.
|
|
|
|
|
;;
|
|
|
|
|
;; Should the test suite be re-enabled, it might be necessary to add
|
|
|
|
|
;; '#:parallel-tests #f'. See the same bug report as above.
|
|
|
|
|
;;
|
|
|
|
|
;; The following might also be necessary, due to 'make check' assuming
|
|
|
|
|
;; ECL is installed. See <http://sourceforge.net/p/ecls/bugs/299/>.
|
|
|
|
|
;;
|
|
|
|
|
;; #:phases
|
|
|
|
|
;; (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))
|
gnu: Adjust formatting as recommended by 'guix lint'.
* gnu/packages/aidc.scm (barcode, qrencode),
gnu/packages/bash.scm (bash, bash-completion),
gnu/packages/busybox.scm (busybox),
gnu/packages/cdrom.scm (cdparanoia),
gnu/packages/cmake.scm (cmake),
gnu/packages/conkeror.scm (conkeror),
gnu/packages/cook.scm (cook),
gnu/packages/curl.scm (curl),
gnu/packages/docbook.scm (docbook-xsl),
gnu/packages/enlightenment.scm (enlightenment),
gnu/packages/games.scm (abbaye),
gnu/packages/geeqie.scm (exiv2),
gnu/packages/gimp.scm (gegl),
gnu/packages/gl.scm (glu, freeglut, ftgl),
gnu/packages/glib.scm (glib),
gnu/packages/gnome.scm (orbit2, gconf, geocode-glib),
gnu/packages/gstreamer.scm (gstreamer, gst-plugins-base),
gnu/packages/linux.scm (util-linux),
gnu/packages/lisp.scm (gcl, ecl),
gnu/packages/maths.scm (gnuplot, hdf5),
gnu/packages/ssh.scm (dropbear),
gnu/packages/web.scm (json-c): Remove tabulations and trailing
white spaces or reformat to fit within 80 columns.
* gnu/packages/audio.scm (aubio),
gnu/packages/emacs.scm (emacs-s),
gnu/packages/engineering.scm (geda-gaf),
gnu/packages/games.scm (dosbox),
gnu/packages/gnome.scm (gusb),
gnu/packages/gtk.scm (gtk+),
gnu/packages/guile.scm (guile-wisp),
gnu/packages/hurd.scm (hurd-headers),
gnu/packages/wm.scm (i3-wm): Adjust synopsis or description.
2015-11-13 09:50:36 -05:00
|
|
|
|
#:tests? #f))
|
2015-02-11 18:15:02 -05:00
|
|
|
|
(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 16:19:52 -05: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
|
2015-07-17 18:33:05 -04:00
|
|
|
|
'(;; XXX The custom configure script does not cope well when passed
|
|
|
|
|
;; --build=<triplet>.
|
|
|
|
|
#:build #f
|
|
|
|
|
#:phases
|
2015-02-12 16:19:52 -05:00
|
|
|
|
(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/")
|
2015-02-24 17:12:16 -05:00
|
|
|
|
(synopsis "A Common Lisp implementation")
|
|
|
|
|
(description
|
|
|
|
|
"GNU CLISP is an implementation of ANSI Common Lisp. Common Lisp is a
|
|
|
|
|
high-level, object-oriented functional programming language. CLISP includes
|
|
|
|
|
an interpreter, a compiler, a debugger, and much more.")
|
2015-02-12 16:19:52 -05:00
|
|
|
|
;; 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+)))
|
2015-02-14 13:04:12 -05:00
|
|
|
|
|
|
|
|
|
(define-public sbcl
|
|
|
|
|
(package
|
|
|
|
|
(name "sbcl")
|
|
|
|
|
(version "1.2.8")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/sbcl/sbcl/" version "/sbcl-"
|
|
|
|
|
version "-source.tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0ab9lw056yf6y0rjmx3iirn5n59pmssqxf00fbmpyl6qsnpaja1d"))))
|
|
|
|
|
(build-system gnu-build-system)
|
2016-01-10 04:41:23 -05:00
|
|
|
|
(outputs '("out" "doc"))
|
2015-02-14 13:04:12 -05:00
|
|
|
|
;; Bootstrap with CLISP.
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("clisp" ,clisp)
|
|
|
|
|
("which" ,which)
|
|
|
|
|
("inetutils" ,inetutils) ;for hostname(1)
|
2016-01-10 04:41:23 -05:00
|
|
|
|
("ed" ,ed)
|
|
|
|
|
("texlive" ,texlive)
|
|
|
|
|
("texinfo" ,texinfo)))
|
2015-02-14 13:04:12 -05:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
2015-12-31 12:36:52 -05:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(add-before 'build 'patch-unix-tool-paths
|
|
|
|
|
(lambda* (#:key outputs inputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bash (assoc-ref inputs "bash"))
|
|
|
|
|
(coreutils (assoc-ref inputs "coreutils"))
|
|
|
|
|
(ed (assoc-ref inputs "ed")))
|
|
|
|
|
(define (quoted-path input path)
|
|
|
|
|
(string-append "\"" input path "\""))
|
|
|
|
|
;; Patch absolute paths in string literals. Note that this
|
|
|
|
|
;; occurs in some .sh files too (which contain Lisp code). Use
|
|
|
|
|
;; ISO-8859-1 because some of the files are ISO-8859-1 encoded.
|
|
|
|
|
(with-fluids ((%default-port-encoding #f))
|
|
|
|
|
(substitute* (find-files "." "\\.(lisp|sh)$")
|
|
|
|
|
(("\"/bin/sh\"") (quoted-path bash "/bin/sh"))
|
|
|
|
|
(("\"/usr/bin/env\"") (quoted-path coreutils "/usr/bin/env"))
|
|
|
|
|
(("\"/bin/cat\"") (quoted-path coreutils "/bin/cat"))
|
|
|
|
|
(("\"/bin/ed\"") (quoted-path ed "/bin/ed"))
|
|
|
|
|
(("\"/bin/echo\"") (quoted-path coreutils "/bin/echo"))
|
|
|
|
|
(("\"/bin/uname\"") (quoted-path coreutils "/bin/uname"))))
|
|
|
|
|
;; This one script has a non-string occurrence of /bin/sh.
|
|
|
|
|
(substitute* '("tests/foreign.test.sh")
|
|
|
|
|
;; Leave whitespace so we don't match the shebang.
|
|
|
|
|
((" /bin/sh ") " sh "))
|
|
|
|
|
;; This file contains a module that can create executable files
|
|
|
|
|
;; which depend on the presence of SBCL. It generates shell
|
|
|
|
|
;; scripts doing "exec sbcl ..." to achieve this. We patch both
|
|
|
|
|
;; the shebang and the reference to "sbcl", tying the generated
|
|
|
|
|
;; executables to the exact SBCL package that generated them.
|
|
|
|
|
(substitute* '("contrib/sb-executable/sb-executable.lisp")
|
|
|
|
|
(("/bin/sh") (string-append bash "/bin/sh"))
|
|
|
|
|
(("exec sbcl") (string-append "exec " out "/bin/sbcl")))
|
|
|
|
|
;; Disable some tests that fail in our build environment.
|
|
|
|
|
(substitute* '("contrib/sb-bsd-sockets/tests.lisp")
|
|
|
|
|
;; This requires /etc/protocols.
|
|
|
|
|
(("\\(deftest get-protocol-by-name/error" all)
|
|
|
|
|
(string-append "#+nil ;disabled by Guix\n" all)))
|
|
|
|
|
(substitute* '("contrib/sb-posix/posix-tests.lisp")
|
|
|
|
|
;; These assume some users/groups which we don't have.
|
|
|
|
|
(("\\(deftest pwent\\.[12]" all)
|
|
|
|
|
(string-append "#+nil ;disabled by Guix\n" all))
|
|
|
|
|
(("\\(deftest grent\\.[12]" all)
|
|
|
|
|
(string-append "#+nil ;disabled by Guix\n" all))))))
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(setenv "CC" "gcc")
|
|
|
|
|
(zero? (system* "sh" "make.sh" "clisp"
|
|
|
|
|
(string-append "--prefix="
|
|
|
|
|
(assoc-ref outputs "out"))))))
|
|
|
|
|
(replace 'install
|
2015-02-14 13:04:12 -05:00
|
|
|
|
(lambda _
|
2016-01-10 04:41:23 -05:00
|
|
|
|
(zero? (system* "sh" "install.sh"))))
|
|
|
|
|
(add-after 'build 'build-doc
|
|
|
|
|
(lambda _
|
|
|
|
|
(with-directory-excursion "doc/manual"
|
|
|
|
|
(and (zero? (system* "make" "info"))
|
|
|
|
|
(zero? (system* "make" "dist"))))))
|
|
|
|
|
(add-after 'install 'install-doc
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(doc (assoc-ref outputs "doc"))
|
|
|
|
|
(old-doc-dir (string-append out "/share/doc"))
|
|
|
|
|
(new-doc/sbcl-dir (string-append doc "/share/doc/sbcl")))
|
|
|
|
|
(rmdir (string-append old-doc-dir "/sbcl/html"))
|
|
|
|
|
(mkdir-p new-doc/sbcl-dir)
|
|
|
|
|
(copy-recursively (string-append old-doc-dir "/sbcl")
|
|
|
|
|
new-doc/sbcl-dir)
|
|
|
|
|
(delete-file-recursively old-doc-dir)
|
|
|
|
|
#t))))
|
2015-12-31 12:36:52 -05:00
|
|
|
|
;; No 'check' target, though "make.sh" (build phase) runs tests.
|
|
|
|
|
#:tests? #f))
|
2015-02-14 13:04:12 -05:00
|
|
|
|
(home-page "http://www.sbcl.org/")
|
|
|
|
|
(synopsis "Common Lisp implementation")
|
|
|
|
|
(description "Steel Bank Common Lisp (SBCL) is a high performance Common
|
|
|
|
|
Lisp compiler. In addition to the compiler and runtime system for ANSI Common
|
|
|
|
|
Lisp, it provides an interactive environment including a debugger, a
|
|
|
|
|
statistical profiler, a code coverage tool, and many other extensions.")
|
|
|
|
|
;; Public domain in jurisdictions that allow it, bsd-2 otherwise. MIT
|
|
|
|
|
;; loop macro has its own license. See COPYING file for further notes.
|
|
|
|
|
(license (list license:public-domain license:bsd-2
|
|
|
|
|
(license:x11-style "file://src/code/loop.lisp")))))
|
2015-02-15 18:46:12 -05:00
|
|
|
|
|
|
|
|
|
(define-public ccl
|
|
|
|
|
(package
|
|
|
|
|
(name "ccl")
|
|
|
|
|
(version "1.10")
|
|
|
|
|
(source #f)
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
;; CCL consists of a "lisp kernel" and "heap image", both of which are
|
|
|
|
|
;; shipped in precompiled form in source tarballs. The former is a C
|
|
|
|
|
;; program which we can rebuild from scratch, but the latter cannot be
|
|
|
|
|
;; generated without an already working copy of CCL, and is platform
|
|
|
|
|
;; dependent, so we need to fetch the correct tarball for the platform.
|
|
|
|
|
(inputs
|
|
|
|
|
`(("ccl"
|
|
|
|
|
,(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"ftp://ftp.clozure.com/pub/release/1.10/ccl-" version "-"
|
|
|
|
|
(match (%current-system)
|
|
|
|
|
((or "i686-linux" "x86_64-linux") "linuxx86")
|
2015-04-19 09:55:01 -04:00
|
|
|
|
("armhf-linux" "linuxarm")
|
|
|
|
|
;; Prevent errors when querying this package on unsupported
|
|
|
|
|
;; platforms, e.g. when running "guix package --search="
|
|
|
|
|
(_ "UNSUPPORTED"))
|
2015-02-15 18:46:12 -05:00
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
(match (%current-system)
|
|
|
|
|
((or "i686-linux" "x86_64-linux")
|
|
|
|
|
"0mr653q5px05lr11z2mk551m5g47b4wq96vbfibpp0qlc9jp58lc")
|
2015-04-19 09:55:01 -04:00
|
|
|
|
("armhf-linux"
|
|
|
|
|
"1py02irpmi2qz5rq3h33wfv6impf15z8i2rign6hvhlqn7s99wwh")
|
|
|
|
|
(_ ""))))))))
|
2015-02-15 18:46:12 -05:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("m4" ,m4)
|
|
|
|
|
("subversion" ,subversion)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ;no 'check' target
|
|
|
|
|
#:phases
|
|
|
|
|
(alist-replace
|
|
|
|
|
'unpack
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(and (zero? (system* "tar" "xzvf" (assoc-ref inputs "ccl")))
|
|
|
|
|
(begin (chdir "ccl") #t)))
|
|
|
|
|
(alist-delete
|
|
|
|
|
'configure
|
|
|
|
|
(alist-cons-before
|
|
|
|
|
'build 'pre-build
|
|
|
|
|
;; Enter the source directory for the current platform's lisp
|
|
|
|
|
;; kernel, and run 'make clean' to remove the precompiled one.
|
|
|
|
|
(lambda _
|
|
|
|
|
(chdir (string-append
|
|
|
|
|
"lisp-kernel/"
|
|
|
|
|
,(match (or (%current-target-system) (%current-system))
|
2015-04-21 23:25:12 -04:00
|
|
|
|
("i686-linux" "linuxx8632")
|
2015-02-15 18:46:12 -05:00
|
|
|
|
("x86_64-linux" "linuxx8664")
|
2015-04-21 23:25:12 -04:00
|
|
|
|
("armhf-linux" "linuxarm")
|
|
|
|
|
;; Prevent errors when querying this package
|
|
|
|
|
;; on unsupported platforms, e.g. when running
|
|
|
|
|
;; "guix package --search="
|
|
|
|
|
(_ "UNSUPPORTED"))))
|
2015-02-15 18:46:12 -05:00
|
|
|
|
(substitute* '("Makefile")
|
|
|
|
|
(("/bin/rm") "rm"))
|
|
|
|
|
(setenv "CC" "gcc")
|
|
|
|
|
(zero? (system* "make" "clean")))
|
|
|
|
|
;; XXX Do we need to recompile the heap image as well for Guix?
|
|
|
|
|
;; For now just use the one we already got in the tarball.
|
|
|
|
|
(alist-replace
|
|
|
|
|
'install
|
|
|
|
|
(lambda* (#:key outputs inputs #:allow-other-keys)
|
|
|
|
|
;; The lisp kernel built by running 'make' in lisp-kernel/$system
|
|
|
|
|
;; is put back into the original directory, so go back. The heap
|
|
|
|
|
;; image is there as well.
|
|
|
|
|
(chdir "../..")
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(libdir (string-append out "/lib/"))
|
|
|
|
|
(bindir (string-append out "/bin/"))
|
|
|
|
|
(wrapper (string-append bindir "ccl"))
|
|
|
|
|
(bash (assoc-ref inputs "bash"))
|
|
|
|
|
(kernel
|
|
|
|
|
,(match (or (%current-target-system) (%current-system))
|
2015-04-21 23:25:12 -04:00
|
|
|
|
("i686-linux" "lx86cl")
|
2015-02-15 18:46:12 -05:00
|
|
|
|
("x86_64-linux" "lx86cl64")
|
2015-04-21 23:25:12 -04:00
|
|
|
|
("armhf-linux" "armcl")
|
|
|
|
|
;; Prevent errors when querying this package
|
|
|
|
|
;; on unsupported platforms, e.g. when running
|
|
|
|
|
;; "guix package --search="
|
|
|
|
|
(_ "UNSUPPORTED")))
|
2015-02-15 18:46:12 -05:00
|
|
|
|
(heap (string-append kernel ".image")))
|
|
|
|
|
(mkdir-p libdir)
|
|
|
|
|
(mkdir-p bindir)
|
|
|
|
|
(copy-file kernel (string-append libdir kernel))
|
|
|
|
|
(copy-file heap (string-append libdir heap))
|
|
|
|
|
(with-output-to-file wrapper
|
|
|
|
|
(lambda ()
|
|
|
|
|
(display
|
|
|
|
|
(string-append
|
|
|
|
|
"#!" bash "/bin/sh\n"
|
|
|
|
|
"if [ -z \"$CCL_DEFAULT_DIRECTORY\" ]; then\n"
|
|
|
|
|
" CCL_DEFAULT_DIRECTORY=" libdir "\n"
|
|
|
|
|
"fi\n"
|
|
|
|
|
"export CCL_DEFAULT_DIRECTORY\n"
|
|
|
|
|
"exec " libdir kernel "\n"))))
|
|
|
|
|
(chmod wrapper #o755)))
|
|
|
|
|
%standard-phases))))))
|
|
|
|
|
(supported-systems '("i686-linux" "x86_64-linux" "armhf-linux"))
|
|
|
|
|
(home-page "http://ccl.clozure.com/")
|
|
|
|
|
(synopsis "Common Lisp implementation")
|
|
|
|
|
(description "Clozure CL (often called CCL for short) is a Common Lisp
|
|
|
|
|
implementation featuring fast compilation speed, native threads, a precise,
|
|
|
|
|
generational, compacting garbage collector, and a convenient foreign-function
|
|
|
|
|
interface.")
|
|
|
|
|
;; See file doc/LICENSE for clarifications it makes regarding how the LGPL
|
|
|
|
|
;; applies to Lisp code according to them.
|
|
|
|
|
(license (list license:lgpl2.1
|
|
|
|
|
license:clarified-artistic)))) ;TRIVIAL-LDAP package
|
2016-02-07 11:50:12 -05:00
|
|
|
|
|
|
|
|
|
(define-public lispf4
|
|
|
|
|
(let ((commit "174d8764d2f9764e8f4794c2e3feada9f9c1f1ba"))
|
|
|
|
|
(package
|
|
|
|
|
(name "lispf4")
|
|
|
|
|
(version (string-append "0.0.0-1" "-"
|
|
|
|
|
(string-take commit 7)))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/blakemcbride/LISPF4.git")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (string-append name "-" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"18k8kfn30za637y4bfbm9x3vv4psa3q8f7bi9h4h0qlb8rz8m92c"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
;; 80 MB appended Documentation -> output:doc
|
|
|
|
|
(outputs '("out" "doc"))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:make-flags
|
|
|
|
|
'("-f" "Makefile.unx" "CC=gcc")
|
|
|
|
|
;; no check phase
|
|
|
|
|
#:tests? #f
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(replace
|
|
|
|
|
'install
|
|
|
|
|
(lambda* (#:key outputs inputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
|
(doc (string-append (assoc-ref outputs "doc")
|
|
|
|
|
"/share/doc/lispf4")))
|
|
|
|
|
(install-file "lispf4" bin)
|
|
|
|
|
(install-file "SYSATOMS" bin)
|
|
|
|
|
(install-file "BASIC.IMG" bin)
|
|
|
|
|
(copy-recursively "Documentation" doc))
|
|
|
|
|
#t)))))
|
|
|
|
|
(synopsis "InterLisp interpreter")
|
|
|
|
|
(description
|
|
|
|
|
"LISPF4 is an InterLisp interpreter written in FORTRAN by Mats Nordstrom
|
|
|
|
|
in the early 80's. It was converted to C by Blake McBride and supports much of
|
|
|
|
|
the InterLisp Standard.")
|
|
|
|
|
(home-page "https://github.com/blakemcbride/LISPF4.git")
|
|
|
|
|
(license license:expat))))
|