unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 2e5770a184acb1b18c2a4b227c5ef8c7245f01ef 6842 bytes (raw)
name: gnu/packages/lisp.scm 	 # note: path name is non-authoritative(*)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
 
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 John Darrington <jmd@gnu.org>
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
;;;
;;; 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-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix utils)
  #:use-module (guix build-system gnu)
  #:use-module (gnu packages readline)
  #:use-module (gnu packages texinfo)
  #:use-module (gnu packages texlive)
  #:use-module (gnu packages m4)
  #:use-module (gnu packages which)
  #:use-module (gnu packages multiprecision)
  #:use-module (gnu packages bdw-gc)
  #:use-module (gnu packages libffi))

(define-public gcl
  (package
    (name "gcl")
    (version "2.6.12")
    (source
     (origin
      (method url-fetch)
      (uri (string-append "mirror://gnu/" name "/" name "-" version ".tar.gz"))
      (sha256
       (base32 "1s4hs2qbjqmn9h88l4xvsifq5c3dlc5s74lyb61rdi5grhdlkf4f"))))
    (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")))))
                ;; drop strip phase to make maxima build, see
                ;; https://www.ma.utexas.edu/pipermail/maxima/2008/009769.html
                (alist-delete 'strip
                 %standard-phases))))
    (native-inputs
     `(("m4" ,m4)
       ("readline" ,readline)
       ("texinfo" ,texinfo)
       ("texlive" ,texlive)))
    (home-page "http://www.gnu.org/software/gcl")
    (synopsis "A Common Lisp implementation")
    (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+)))

(define-public ecl
  (package
    (name "ecl")
    (version "13.5.1")
    (source
     (origin
       (method url-fetch)
       (uri (string-append "mirror://sourceforge/ecls/ecls/"
                           (version-prefix version 2) "/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* ((phases %standard-phases)
              (check-phase (assq-ref phases 'check))
              (phases (alist-delete 'check phases))
              (phases (alist-cons-after 'install 'check check-phase phases))
              (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"))))
                phases)))
         phases)
       ;; Parallel builds explicitly not supported:
       ;; http://sourceforge.net/p/ecls/bugs/98/
       #:make-flags '("--jobs=1")))
    (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.")
    ;; The file "Copyright" points to some files and directories which aren't
    ;; under the lgpl2.0+ and instead contain many different licenses.  The
    ;; comments below should exhaust those files and directories, except for
    ;; the contrib/unicode/ directory whose .lisp files have no copyright or
    ;; license notice.
    (license
     (list
      license:lgpl2.0+                  ;contrib/: encodings, bytecomp,
                                        ;ecl-cdb, win32
      (license:x11-style "file://src/lsp/loop2.lsp")
      license:public-domain             ;src/lsp/: pprint.lsp, format.lsp,
                                        ;profile, serve-event, sockets
      license:expat                     ;contrib/: asdf, cl-simd, quicklisp
      license:x11                       ;contrib/: deflate
      (license:bsd-style "file://contrib/defsystem/defsystem.lisp")
      license:bsd-2                     ;contrib/: ecl-curl
      (license:x11-style "file://contrib/rt/rt.lisp")
      (license:bsd-style "file://src/clx/clx.lisp"))))) ;TI License

debug log:

solving 2e5770a ...
found 2e5770a in https://yhetil.org/guix-devel/871tlwf2qq.fsf@taylan.uni.cx/
found 0bacac4 in https://git.savannah.gnu.org/cgit/guix.git
preparing index
index prepared:
100644 0bacac47bf7668904c26c7b73da85223a84388c4	gnu/packages/lisp.scm

applying [1/1] https://yhetil.org/guix-devel/871tlwf2qq.fsf@taylan.uni.cx/
diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index 0bacac4..2e5770a 100644

Checking patch gnu/packages/lisp.scm...
Applied patch gnu/packages/lisp.scm cleanly.

index at:
100644 2e5770a184acb1b18c2a4b227c5ef8c7245f01ef	gnu/packages/lisp.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).