2013-01-14 19:08:00 -05:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2016-04-14 16:18:56 -04:00
|
|
|
|
;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
|
2015-02-16 07:29:36 -05:00
|
|
|
|
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
|
2016-05-12 08:57:25 -04:00
|
|
|
|
;;; Copyright © 2015, 2016 Federico Beffa <beffa@fbengineering.ch>
|
2016-03-20 12:10:12 -04:00
|
|
|
|
;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
|
2016-04-04 15:01:40 -04:00
|
|
|
|
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
2016-05-19 17:50:09 -04:00
|
|
|
|
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
2016-09-19 04:50:01 -04:00
|
|
|
|
;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
|
2013-01-14 19:08:00 -05: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/>.
|
|
|
|
|
|
2013-01-17 19:06:24 -05:00
|
|
|
|
(define-module (gnu packages scheme)
|
2013-01-17 19:06:47 -05:00
|
|
|
|
#:use-module (gnu packages)
|
2016-05-23 08:55:44 -04:00
|
|
|
|
#:use-module ((guix licenses)
|
|
|
|
|
#:select (gpl2+ lgpl2.0+ lgpl2.1+ asl2.0 bsd-3
|
|
|
|
|
cc-by-sa4.0))
|
2013-01-14 19:08:00 -05:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2016-05-19 17:50:09 -04:00
|
|
|
|
#:use-module (guix git-download)
|
2015-02-16 07:29:36 -05:00
|
|
|
|
#:use-module (guix utils)
|
2013-01-14 19:08:00 -05:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2016-05-19 17:50:09 -04:00
|
|
|
|
#:use-module (guix build-system trivial)
|
2016-05-12 08:57:25 -04:00
|
|
|
|
#:use-module (gnu packages compression)
|
2013-01-17 19:06:24 -05:00
|
|
|
|
#:use-module (gnu packages m4)
|
|
|
|
|
#:use-module (gnu packages multiprecision)
|
2016-05-12 08:57:25 -04:00
|
|
|
|
#:use-module (gnu packages ncurses)
|
2015-01-28 15:28:29 -05:00
|
|
|
|
#:use-module (gnu packages databases)
|
2013-01-17 19:06:24 -05:00
|
|
|
|
#:use-module (gnu packages emacs)
|
2016-05-12 08:57:25 -04:00
|
|
|
|
#:use-module (gnu packages ghostscript)
|
|
|
|
|
#:use-module (gnu packages netpbm)
|
2013-01-17 19:06:24 -05:00
|
|
|
|
#:use-module (gnu packages texinfo)
|
2016-05-24 15:18:53 -04:00
|
|
|
|
#:use-module (gnu packages tex)
|
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)
|
2016-05-19 17:50:09 -04:00
|
|
|
|
#:use-module (gnu packages compression)
|
2013-04-03 08:44:40 -04:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
|
#:use-module (gnu packages avahi)
|
|
|
|
|
#:use-module (gnu packages libphidget)
|
2016-03-20 18:03:24 -04:00
|
|
|
|
#:use-module (gnu packages gcc)
|
2013-06-16 14:43:29 -04:00
|
|
|
|
#:use-module (gnu packages glib)
|
2013-09-24 12:06:08 -04:00
|
|
|
|
#:use-module (gnu packages gtk)
|
2013-06-16 14:43:29 -04:00
|
|
|
|
#:use-module (gnu packages libffi)
|
2015-01-28 15:28:29 -05:00
|
|
|
|
#:use-module (gnu packages fontutils)
|
gnu: Consolidate libjpeg, libpng, and libtiff into one module.
* gnu/packages/image.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add image.scm and remove libjpeg.scm,
libpng.scm, and libtiff.scm.
* gnu/packages/libjpeg.scm, gnu/packages/libpng.scm, gnu/packages/libtiff.scm:
Delete files.
* gnu/packages/emacs.scm gnu/packages/games.scm, gnu/packages/gd.scm,
gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm,
gnu/packages/gnustep.scm, gnu/packages/gnuzilla.scm,
gnu/packages/graphviz.scm, gnu/packages/gtk.scm,
gnu/packages/imagemagick.scm, gnu/packages/inkscape.scm,
gnu/packages/netpbm.scm, gnu/packages/pdf.scm, gnu/packages/plotutils.scm,
gnu/packages/qemu.scm, gnu/packages/qt.scm, gnu/packages/scheme.scm,
gnu/packages/sdl.scm, gnu/packages/slim.scm, gnu/packages/tcl.scm,
gnu/packages/texlive.scm, gnu/packages/video.scm, gnu/packages/xiph.scm,
gnu/packages/xorg.scm: Use (gnu packages image) module.
2014-06-25 08:39:02 -04:00
|
|
|
|
#:use-module (gnu packages image)
|
2015-05-19 18:27:02 -04:00
|
|
|
|
#:use-module (gnu packages xorg)
|
2016-07-19 09:26:42 -04:00
|
|
|
|
#:use-module (gnu packages tls)
|
|
|
|
|
#:use-module (gnu packages gl)
|
2013-01-14 19:08:00 -05:00
|
|
|
|
#:use-module (ice-9 match))
|
|
|
|
|
|
2014-09-27 17:59:18 -04:00
|
|
|
|
(define (mit-scheme-source-directory system version)
|
2014-09-27 12:59:40 -04:00
|
|
|
|
(string-append "mit-scheme-"
|
|
|
|
|
(if (or (string-prefix? "x86_64" system)
|
2014-09-27 17:59:18 -04:00
|
|
|
|
(string-prefix? "i686" system))
|
2014-09-27 12:59:40 -04:00
|
|
|
|
""
|
|
|
|
|
"c-")
|
|
|
|
|
version))
|
|
|
|
|
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(define-public mit-scheme
|
|
|
|
|
(package
|
|
|
|
|
(name "mit-scheme")
|
2014-09-27 10:51:44 -04:00
|
|
|
|
(version "9.2")
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(source #f) ; see below
|
2016-01-09 05:04:40 -05:00
|
|
|
|
(outputs '("out" "doc"))
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; no "check" target
|
2016-01-09 05:04:40 -05:00
|
|
|
|
#:modules ((guix build gnu-build-system)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(srfi srfi-1))
|
2013-01-14 19:08:00 -05:00
|
|
|
|
#:phases
|
2015-12-27 13:06:37 -05:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'unpack
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(and (zero? (system* "tar" "xzvf"
|
|
|
|
|
(assoc-ref inputs "source")))
|
|
|
|
|
(chdir ,(mit-scheme-source-directory (%current-system)
|
|
|
|
|
version))
|
|
|
|
|
(begin
|
|
|
|
|
;; Delete these dangling symlinks since they break
|
|
|
|
|
;; `patch-shebangs'.
|
|
|
|
|
(for-each delete-file
|
|
|
|
|
(append '("src/lib/shim-config.scm")
|
|
|
|
|
(find-files "src/lib/lib" "\\.so$")
|
|
|
|
|
(find-files "src/lib" "^liarc-")
|
|
|
|
|
(find-files "src/compiler" "^make\\.")))
|
|
|
|
|
(chdir "src")
|
|
|
|
|
#t))))
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda* (#:key system outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(if (or (string-prefix? "x86_64" system)
|
|
|
|
|
(string-prefix? "i686" system))
|
|
|
|
|
(zero? (system* "make" "compile-microcode"))
|
|
|
|
|
(zero? (system* "./etc/make-liarc.sh"
|
2016-01-09 05:04:40 -05:00
|
|
|
|
(string-append "--prefix=" out)))))))
|
|
|
|
|
(add-after 'configure 'configure-doc
|
|
|
|
|
(lambda* (#:key outputs inputs #:allow-other-keys)
|
|
|
|
|
(with-directory-excursion "../doc"
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bash (assoc-ref inputs "bash"))
|
|
|
|
|
(bin/sh (string-append bash "/bin/sh")))
|
|
|
|
|
(system* bin/sh "./configure"
|
|
|
|
|
(string-append "--prefix=" out)
|
|
|
|
|
(string-append "SHELL=" bin/sh))
|
|
|
|
|
(substitute* '("Makefile" "make-common")
|
|
|
|
|
(("/lib/mit-scheme/doc")
|
|
|
|
|
(string-append "/share/doc/" ,name "-" ,version)))
|
|
|
|
|
#t))))
|
|
|
|
|
(add-after 'build 'build-doc
|
|
|
|
|
(lambda* _
|
|
|
|
|
(with-directory-excursion "../doc"
|
|
|
|
|
(zero? (system* "make")))))
|
|
|
|
|
(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/mit-scheme-dir
|
|
|
|
|
(string-append doc "/share/doc/" ,name "-" ,version)))
|
|
|
|
|
(with-directory-excursion "../doc"
|
|
|
|
|
(for-each (lambda (target)
|
|
|
|
|
(system* "make" target))
|
|
|
|
|
'("install-config" "install-info-gz" "install-man"
|
|
|
|
|
"install-html" "install-pdf")))
|
|
|
|
|
(mkdir-p new-doc/mit-scheme-dir)
|
|
|
|
|
(copy-recursively
|
|
|
|
|
(string-append old-doc-dir "/" ,name "-" ,version)
|
|
|
|
|
new-doc/mit-scheme-dir)
|
|
|
|
|
(delete-file-recursively old-doc-dir)
|
|
|
|
|
#t))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("texlive" ,texlive)
|
|
|
|
|
("texinfo" ,texinfo)
|
|
|
|
|
("m4" ,m4)))
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(inputs
|
2016-01-09 05:04:40 -05:00
|
|
|
|
`(("libx11" ,libx11)
|
2013-01-14 19:08:00 -05:00
|
|
|
|
|
|
|
|
|
("source"
|
2013-01-24 17:33:30 -05:00
|
|
|
|
|
|
|
|
|
;; MIT/GNU Scheme is not bootstrappable, so it's recommended to
|
|
|
|
|
;; compile from the architecture-specific tarballs, which contain
|
|
|
|
|
;; pre-built binaries. It leads to more efficient code than when
|
|
|
|
|
;; building the tarball that contains generated C code instead of
|
|
|
|
|
;; those binaries.
|
|
|
|
|
,(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/mit-scheme/stable.pkg/"
|
|
|
|
|
version "/mit-scheme-"
|
|
|
|
|
(match (%current-system)
|
2014-09-27 12:59:40 -04:00
|
|
|
|
("x86_64-linux"
|
|
|
|
|
(string-append version "-x86-64"))
|
|
|
|
|
("i686-linux"
|
|
|
|
|
(string-append version "-i386"))
|
|
|
|
|
(_
|
|
|
|
|
(string-append "c-" version)))
|
2013-01-24 17:33:30 -05:00
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(match (%current-system)
|
|
|
|
|
("x86_64-linux"
|
|
|
|
|
(base32
|
2014-09-27 10:51:44 -04:00
|
|
|
|
"1skzxxhr0iq96bf0j5m7mvf3i4sppfyfa6gpqn34mwgkw1fx8274"))
|
2013-01-24 17:33:30 -05:00
|
|
|
|
("i686-linux"
|
|
|
|
|
(base32
|
2014-09-27 10:51:44 -04:00
|
|
|
|
"1fmlpnhf5a75db93phajh4ysbdgrgl72v45lk3kznriprl0a7jc6"))
|
2013-01-24 17:33:30 -05:00
|
|
|
|
(_
|
|
|
|
|
(base32
|
2014-09-27 10:51:44 -04:00
|
|
|
|
"0w5ib5vsidihb4hb6fma3sp596ykr8izagm57axvgd6lqzwicsjg"))))))))
|
2014-10-06 13:34:04 -04:00
|
|
|
|
|
|
|
|
|
;; Fails to build on MIPS, see <http://bugs.gnu.org/18221>.
|
2014-10-28 05:29:36 -04:00
|
|
|
|
(supported-systems (delete "mips64el-linux" %supported-systems))
|
2014-10-06 13:34:04 -04:00
|
|
|
|
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(home-page "http://www.gnu.org/software/mit-scheme/")
|
2014-11-09 11:56:02 -05:00
|
|
|
|
(synopsis "A Scheme implementation with integrated editor and debugger")
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(description
|
2013-12-01 16:33:23 -05:00
|
|
|
|
"GNU/MIT Scheme is an implementation of the Scheme programming
|
Synchronize package descriptions with the Womb.
* gnu/packages/algebra.scm,
gnu/packages/aspell.scm,
gnu/packages/autotools.scm,
gnu/packages/base.scm,
gnu/packages/bash.scm,
gnu/packages/bison.scm,
gnu/packages/cdrom.scm,
gnu/packages/cflow.scm,
gnu/packages/compression.scm,
gnu/packages/cpio.scm,
gnu/packages/cppi.scm,
gnu/packages/ddrescue.scm,
gnu/packages/dejagnu.scm,
gnu/packages/ed.scm,
gnu/packages/emacs.scm,
gnu/packages/fdisk.scm,
gnu/packages/freeipmi.scm,
gnu/packages/gawk.scm,
gnu/packages/gcal.scm,
gnu/packages/gcc.scm,
gnu/packages/gdb.scm,
gnu/packages/gdbm.scm,
gnu/packages/gettext.scm,
gnu/packages/ghostscript.scm,
gnu/packages/global.scm,
gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm,
gnu/packages/gperf.scm,
gnu/packages/gprolog.scm,
gnu/packages/groff.scm,
gnu/packages/grub.scm,
gnu/packages/gsasl.scm,
gnu/packages/guile.scm,
gnu/packages/gv.scm,
gnu/packages/help2man.scm,
gnu/packages/idutils.scm,
gnu/packages/indent.scm,
gnu/packages/less.scm,
gnu/packages/libidn.scm,
gnu/packages/libsigsegv.scm,
gnu/packages/libunistring.scm,
gnu/packages/lightning.scm,
gnu/packages/linux.scm,
gnu/packages/lsh.scm,
gnu/packages/m4.scm,
gnu/packages/mail.scm,
gnu/packages/maths.scm,
gnu/packages/multiprecision.scm,
gnu/packages/nano.scm,
gnu/packages/ncurses.scm,
gnu/packages/nettle.scm,
gnu/packages/ocrad.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/parted.scm,
gnu/packages/plotutils.scm,
gnu/packages/pth.scm,
gnu/packages/readline.scm,
gnu/packages/recutils.scm,
gnu/packages/rush.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/shishi.scm,
gnu/packages/smalltalk.scm,
gnu/packages/system.scm,
gnu/packages/texinfo.scm,
gnu/packages/time.scm,
gnu/packages/unrtf.scm,
gnu/packages/version-control.scm,
gnu/packages/wdiff.scm,
gnu/packages/wget.scm,
gnu/packages/which.scm,
gnu/packages/xnee.scm,
gnu/packages/zile.scm: Change value of the 'description' field to that
of the Womb.
2013-10-09 10:14:23 -04:00
|
|
|
|
language. It provides an interpreter, a compiler and a debugger. It also
|
|
|
|
|
features an integrated Emacs-like editor and a large runtime library.")
|
2016-04-14 16:18:56 -04:00
|
|
|
|
(license gpl2+)
|
|
|
|
|
(properties '((ftp-directory . "/gnu/mit-scheme/stable.pkg")))))
|
2013-01-14 19:08:00 -05:00
|
|
|
|
|
|
|
|
|
(define-public bigloo
|
|
|
|
|
(package
|
|
|
|
|
(name "bigloo")
|
2014-02-19 10:43:25 -05:00
|
|
|
|
(version "4.1a")
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "ftp://ftp-sop.inria.fr/indes/fp/Bigloo/bigloo"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2014-02-19 10:43:25 -05:00
|
|
|
|
"170q7nh08n4v20xl81fxb0xcdxphqqacfa643hsa8i2ar6pki04c"))
|
2016-04-08 08:18:13 -04:00
|
|
|
|
(patches (search-patches "bigloo-gc-shebangs.patch"))))
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
gnu: Use the 'patches' field of <origin>.
* gnu/packages/apr.scm,
gnu/packages/autotools.scm,
gnu/packages/avahi.scm,
gnu/packages/cdrom.scm,
gnu/packages/cmake.scm,
gnu/packages/cpio.scm,
gnu/packages/cross-base.scm,
gnu/packages/emacs.scm,
gnu/packages/flex.scm,
gnu/packages/fontutils.scm,
gnu/packages/glib.scm,
gnu/packages/grub.scm,
gnu/packages/guile.scm,
gnu/packages/idutils.scm,
gnu/packages/libevent.scm,
gnu/packages/linux.scm,
gnu/packages/mail.scm,
gnu/packages/make-bootstrap.scm,
gnu/packages/mp3.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/pdf.scm,
gnu/packages/plotutils.scm,
gnu/packages/qemu.scm,
gnu/packages/recutils.scm,
gnu/packages/rush.scm,
gnu/packages/scheme.scm,
gnu/packages/system.scm,
gnu/packages/tcsh.scm,
gnu/packages/valgrind.scm,
gnu/packages/vpn.scm,
gnu/packages/w3m: Use the 'patches' field of <origin> instead of
adding a patch as input plus using #:patches.
2013-10-08 18:09:04 -04:00
|
|
|
|
`(#:test-target "test"
|
2013-01-14 19:08:00 -05:00
|
|
|
|
#:phases (alist-replace
|
|
|
|
|
'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
|
|
|
|
|
(substitute* "configure"
|
|
|
|
|
(("^shell=.*$")
|
|
|
|
|
(string-append "shell=" (which "bash") "\n")))
|
|
|
|
|
|
2013-06-25 14:31:10 -04:00
|
|
|
|
;; Since libgc's pthread redirects are used, we end up
|
|
|
|
|
;; using libgc symbols, so we must link against it.
|
|
|
|
|
;; Reported on 2013-06-25.
|
|
|
|
|
(substitute* "api/pthread/src/Makefile"
|
|
|
|
|
(("^EXTRALIBS[[:blank:]]*=(.*)$" _ value)
|
|
|
|
|
(string-append "EXTRALIBS = "
|
|
|
|
|
(string-trim-right value)
|
|
|
|
|
" -l$(GCLIB)_fth-$(RELEASE)"
|
|
|
|
|
" -Wl,-rpath=" (assoc-ref outputs "out")
|
|
|
|
|
"/lib/bigloo/" ,version)))
|
|
|
|
|
|
2013-01-14 19:08:00 -05:00
|
|
|
|
;; Those variables are used by libgc's `configure'.
|
2013-08-19 13:02:05 -04:00
|
|
|
|
(setenv "SHELL" (which "sh"))
|
|
|
|
|
(setenv "CONFIG_SHELL" (which "sh"))
|
|
|
|
|
|
|
|
|
|
;; ... but they turned out to be overridden later, so work
|
|
|
|
|
;; around that.
|
|
|
|
|
(substitute* (find-files "gc" "^configure-gc")
|
|
|
|
|
(("sh=/bin/sh")
|
|
|
|
|
(string-append "sh=" (which "sh"))))
|
2013-01-14 19:08:00 -05:00
|
|
|
|
|
|
|
|
|
;; The `configure' script doesn't understand options
|
|
|
|
|
;; of those of Autoconf.
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(zero?
|
|
|
|
|
(system* "./configure"
|
|
|
|
|
(string-append "--prefix=" out)
|
2014-02-19 10:43:25 -05:00
|
|
|
|
;; FIXME: Currently fails, see
|
|
|
|
|
;; <http://article.gmane.org/gmane.lisp.scheme.bigloo/6126>.
|
|
|
|
|
;; "--customgc=no" ; use our libgc
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(string-append"--mv=" (which "mv"))
|
2015-04-16 16:22:45 -04:00
|
|
|
|
(string-append "--rm=" (which "rm"))
|
|
|
|
|
(string-append "--ldflags=-Wl,-rpath="
|
|
|
|
|
(assoc-ref outputs "out")
|
|
|
|
|
"/lib/bigloo/" ,version)))))
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(alist-cons-after
|
2013-08-19 13:02:05 -04:00
|
|
|
|
'install 'install-emacs-modes
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(dir (string-append out "/share/emacs/site-lisp")))
|
|
|
|
|
(zero? (system* "make" "-C" "bmacs" "all" "install"
|
|
|
|
|
(string-append "EMACSBRAND=emacs24")
|
|
|
|
|
(string-append "EMACSDIR=" dir)))))
|
|
|
|
|
%standard-phases))))
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(inputs
|
2015-03-23 10:17:50 -04:00
|
|
|
|
`(("emacs" ,emacs) ;UDE needs the X version of Emacs
|
2013-04-03 08:44:40 -04:00
|
|
|
|
|
|
|
|
|
;; Optional APIs for which Bigloo has bindings.
|
|
|
|
|
("avahi" ,avahi)
|
|
|
|
|
("libphidget" ,libphidget)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
2013-02-08 08:39:28 -05:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("gmp" ,gmp))) ; bigloo.h refers to gmp.h
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(home-page "http://www-sop.inria.fr/indes/fp/Bigloo/")
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 00:46:59 -04:00
|
|
|
|
(synopsis "Efficient Scheme compiler")
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(description
|
|
|
|
|
"Bigloo is a Scheme implementation devoted to one goal: enabling
|
|
|
|
|
Scheme based programming style where C(++) is usually
|
|
|
|
|
required. Bigloo attempts to make Scheme practical by offering
|
|
|
|
|
features usually presented by traditional programming languages
|
|
|
|
|
but not offered by Scheme and functional programming. Bigloo
|
|
|
|
|
compiles Scheme modules. It delivers small and fast stand alone
|
|
|
|
|
binary executables. Bigloo enables full connections between
|
2014-04-07 05:10:35 -04:00
|
|
|
|
Scheme and C programs and between Scheme and Java programs.")
|
2013-01-14 19:08:00 -05:00
|
|
|
|
(license gpl2+)))
|
2013-02-08 08:39:58 -05:00
|
|
|
|
|
|
|
|
|
(define-public hop
|
|
|
|
|
(package
|
|
|
|
|
(name "hop")
|
|
|
|
|
(version "2.4.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "ftp://ftp-sop.inria.fr/indes/fp/Hop/hop-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
gnu: Use the 'patches' field of <origin>.
* gnu/packages/apr.scm,
gnu/packages/autotools.scm,
gnu/packages/avahi.scm,
gnu/packages/cdrom.scm,
gnu/packages/cmake.scm,
gnu/packages/cpio.scm,
gnu/packages/cross-base.scm,
gnu/packages/emacs.scm,
gnu/packages/flex.scm,
gnu/packages/fontutils.scm,
gnu/packages/glib.scm,
gnu/packages/grub.scm,
gnu/packages/guile.scm,
gnu/packages/idutils.scm,
gnu/packages/libevent.scm,
gnu/packages/linux.scm,
gnu/packages/mail.scm,
gnu/packages/make-bootstrap.scm,
gnu/packages/mp3.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/pdf.scm,
gnu/packages/plotutils.scm,
gnu/packages/qemu.scm,
gnu/packages/recutils.scm,
gnu/packages/rush.scm,
gnu/packages/scheme.scm,
gnu/packages/system.scm,
gnu/packages/tcsh.scm,
gnu/packages/valgrind.scm,
gnu/packages/vpn.scm,
gnu/packages/w3m: Use the 'patches' field of <origin> instead of
adding a patch as input plus using #:patches.
2013-10-08 18:09:04 -04:00
|
|
|
|
"1v2r4ga58kk1sx0frn8qa8ccmjpic9csqzpk499wc95y9c4b1wy3"))
|
2016-04-08 08:18:13 -04:00
|
|
|
|
(patches (search-patches "hop-bigloo-4.0b.patch"
|
|
|
|
|
"hop-linker-flags.patch"))))
|
2013-02-08 08:39:58 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2015-05-05 12:01:06 -04:00
|
|
|
|
`(#:phases
|
2013-02-08 11:38:57 -05:00
|
|
|
|
(alist-replace
|
|
|
|
|
'configure
|
2015-05-05 21:21:38 -04:00
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2013-02-08 11:38:57 -05:00
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(zero?
|
|
|
|
|
(system* "./configure"
|
2015-05-05 21:21:38 -04:00
|
|
|
|
(string-append "--prefix=" out)
|
|
|
|
|
(string-append "--blflags="
|
|
|
|
|
;; user flags completely override useful
|
|
|
|
|
;; default flags, so repeat them here.
|
|
|
|
|
"-copt \\$(CPICFLAGS) -L\\$(BUILDLIBDIR) "
|
|
|
|
|
"-ldopt -Wl,-rpath," out "/lib")))))
|
|
|
|
|
%standard-phases)
|
|
|
|
|
#:tests? #f)) ; no test suite
|
2016-01-26 09:10:23 -05:00
|
|
|
|
(inputs `(("avahi" ,avahi)
|
|
|
|
|
("bigloo" ,bigloo)
|
2015-05-05 12:01:06 -04:00
|
|
|
|
("which" ,which)))
|
2013-02-08 08:39:58 -05:00
|
|
|
|
(home-page "http://hop.inria.fr/")
|
2014-09-13 09:50:30 -04:00
|
|
|
|
(synopsis "Multi-tier programming language for the Web 2.0")
|
2013-02-08 08:39:58 -05:00
|
|
|
|
(description
|
|
|
|
|
"HOP is a multi-tier programming language for the Web 2.0 and the
|
|
|
|
|
so-called diffuse Web. It is designed for programming interactive web
|
|
|
|
|
applications in many fields such as multimedia (web galleries, music players,
|
|
|
|
|
...), ubiquitous and house automation (SmartPhones, personal appliance),
|
|
|
|
|
mashups, office (web agendas, mail clients, ...), etc.")
|
|
|
|
|
(license gpl2+)))
|
2013-05-11 05:38:38 -04:00
|
|
|
|
|
|
|
|
|
(define-public chicken
|
|
|
|
|
(package
|
|
|
|
|
(name "chicken")
|
2016-06-27 03:30:01 -04:00
|
|
|
|
(version "4.11.0")
|
2013-05-11 05:38:38 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2016-03-20 12:10:12 -04:00
|
|
|
|
(uri (string-append "http://code.call-cc.org/releases/"
|
|
|
|
|
version "/chicken-" version ".tar.gz"))
|
2013-05-11 05:38:38 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-06-27 03:30:01 -04:00
|
|
|
|
"12ddyiikqknpr8h6llsxbg2fz75xnayvcnsvr1cwv8xnjn7jpp73"))))
|
2013-05-11 05:38:38 -04:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build gnu-build-system)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(srfi srfi-1))
|
|
|
|
|
|
|
|
|
|
;; No `configure' script; run "make check" after "make install" as
|
|
|
|
|
;; prescribed by README.
|
2016-03-20 12:10:41 -04:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(delete 'check)
|
|
|
|
|
(add-after 'install 'check
|
2016-03-20 18:01:11 -04:00
|
|
|
|
(assoc-ref %standard-phases 'check))
|
|
|
|
|
(add-after 'unpack 'disable-broken-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
;; The port tests fail with this error:
|
|
|
|
|
;; Error: (line 294) invalid escape-sequence '\x o'
|
|
|
|
|
(substitute* "tests/runtests.sh"
|
|
|
|
|
(("\\$interpret -s port-tests\\.scm") ""))
|
|
|
|
|
#t)))
|
2013-05-11 05:38:38 -04:00
|
|
|
|
|
|
|
|
|
#:make-flags (let ((out (assoc-ref %outputs "out")))
|
|
|
|
|
(list "PLATFORM=linux"
|
|
|
|
|
(string-append "PREFIX=" out)
|
|
|
|
|
(string-append "VARDIR=" out "/var/lib")))
|
|
|
|
|
|
|
|
|
|
;; Parallel builds are not supported, as noted in README.
|
|
|
|
|
#:parallel-build? #f))
|
2016-03-20 18:03:24 -04:00
|
|
|
|
;; One of the tests ("testing direct invocation can detect calls of too
|
|
|
|
|
;; many arguments...") times out when building with a more recent GCC.
|
|
|
|
|
;; The problem was reported here:
|
|
|
|
|
;; https://lists.gnu.org/archive/html/chicken-hackers/2015-04/msg00059.html
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("gcc" ,gcc-4.8)))
|
2013-05-11 05:38:38 -04:00
|
|
|
|
(home-page "http://www.call-cc.org/")
|
|
|
|
|
(synopsis "R5RS Scheme implementation that compiles native code via C")
|
|
|
|
|
(description
|
|
|
|
|
"CHICKEN is a compiler for the Scheme programming language. CHICKEN
|
|
|
|
|
produces portable and efficient C, supports almost all of the R5RS Scheme
|
2013-05-11 14:00:48 -04:00
|
|
|
|
language standard, and includes many enhancements and extensions.")
|
2013-05-11 05:38:38 -04:00
|
|
|
|
(license bsd-3)))
|
2013-05-11 16:13:59 -04:00
|
|
|
|
|
|
|
|
|
(define-public scheme48
|
|
|
|
|
(package
|
|
|
|
|
(name "scheme48")
|
2016-04-04 15:01:40 -04:00
|
|
|
|
(version "1.9.2")
|
2013-05-11 16:13:59 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "http://s48.org/" version
|
|
|
|
|
"/scheme48-" version ".tgz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2016-04-04 15:01:40 -04:00
|
|
|
|
"1x4xfm3lyz2piqcw1h01vbs1iq89zq7wrsfjgh3fxnlm1slj2jcw"))
|
2016-04-08 08:18:13 -04:00
|
|
|
|
(patches (search-patches "scheme48-tests.patch"))))
|
2013-05-11 16:13:59 -04:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(home-page "http://s48.org/")
|
|
|
|
|
(synopsis "Scheme implementation using a bytecode interpreter")
|
|
|
|
|
(description
|
|
|
|
|
"Scheme 48 is an implementation of Scheme based on a byte-code
|
|
|
|
|
interpreter and is designed to be used as a testbed for experiments in
|
|
|
|
|
implementation techniques and as an expository tool.")
|
|
|
|
|
|
|
|
|
|
;; Most files are BSD-3; see COPYING for the few exceptions.
|
|
|
|
|
(license bsd-3)))
|
2013-06-16 14:43:29 -04:00
|
|
|
|
|
|
|
|
|
(define-public racket
|
|
|
|
|
(package
|
|
|
|
|
(name "racket")
|
2016-09-19 04:50:01 -04:00
|
|
|
|
(version "6.6")
|
2013-06-16 14:43:29 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2015-01-28 15:28:29 -05:00
|
|
|
|
(uri (list (string-append "http://mirror.racket-lang.org/installers/"
|
|
|
|
|
version "/racket-" version "-src.tgz")
|
2013-06-16 14:43:29 -04:00
|
|
|
|
(string-append
|
|
|
|
|
"http://mirror.informatik.uni-tuebingen.de/mirror/racket/"
|
|
|
|
|
version "/racket/racket-" version "-src-unix.tgz")))
|
|
|
|
|
(sha256
|
2015-01-28 15:28:29 -05:00
|
|
|
|
(base32
|
2016-09-19 04:50:01 -04:00
|
|
|
|
"1kzdi1n6h6hmz8zd9k8r5a5yp2ryi4w3c2fjm1k6cqicn18cwaxz"))))
|
2013-06-16 14:43:29 -04:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
2016-07-19 08:57:51 -04:00
|
|
|
|
(alist-cons-before
|
|
|
|
|
'configure 'pre-configure
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
;; Patch dynamically loaded libraries with their absolute paths.
|
|
|
|
|
(let* ((library-path (search-path-as-string->list
|
|
|
|
|
(getenv "LIBRARY_PATH")))
|
|
|
|
|
(find-so (lambda (soname)
|
|
|
|
|
(search-path
|
|
|
|
|
library-path
|
|
|
|
|
(format #f "~a.so" soname))))
|
|
|
|
|
(patch-ffi-libs (lambda (file libs)
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (lib)
|
|
|
|
|
(substitute* file
|
|
|
|
|
(((format #f "\"~a\"" lib))
|
|
|
|
|
(format #f "\"~a\"" (find-so lib)))))
|
|
|
|
|
libs))))
|
|
|
|
|
(substitute* "collects/db/private/sqlite3/ffi.rkt"
|
|
|
|
|
(("ffi-lib sqlite-so")
|
|
|
|
|
(format #f "ffi-lib \"~a\"" (find-so "libsqlite3"))))
|
|
|
|
|
(substitute* "collects/openssl/libssl.rkt"
|
|
|
|
|
(("ffi-lib libssl-so")
|
|
|
|
|
(format #f "ffi-lib \"~a\"" (find-so "libssl"))))
|
|
|
|
|
(substitute* "collects/openssl/libcrypto.rkt"
|
|
|
|
|
(("ffi-lib libcrypto-so")
|
|
|
|
|
(format #f "ffi-lib \"~a\"" (find-so "libcrypto"))))
|
|
|
|
|
(substitute* "share/pkgs/math-lib/math/private/bigfloat/gmp.rkt"
|
|
|
|
|
(("ffi-lib libgmp-so")
|
|
|
|
|
(format #f "ffi-lib \"~a\"" (find-so "libgmp"))))
|
|
|
|
|
(substitute* "share/pkgs/math-lib/math/private/bigfloat/mpfr.rkt"
|
|
|
|
|
(("ffi-lib libmpfr-so")
|
|
|
|
|
(format #f "ffi-lib \"~a\"" (find-so "libmpfr"))))
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (x) (apply patch-ffi-libs x))
|
|
|
|
|
'(("share/pkgs/draw-lib/racket/draw/unsafe/cairo-lib.rkt"
|
|
|
|
|
("libfontconfig" "libcairo"))
|
|
|
|
|
("share/pkgs/draw-lib/racket/draw/unsafe/glib.rkt"
|
|
|
|
|
("libglib-2.0" "libgmodule-2.0" "libgobject-2.0"))
|
|
|
|
|
("share/pkgs/draw-lib/racket/draw/unsafe/jpeg.rkt"
|
|
|
|
|
("libjpeg"))
|
|
|
|
|
("share/pkgs/draw-lib/racket/draw/unsafe/pango.rkt"
|
|
|
|
|
("libpango-1.0" "libpangocairo-1.0"))
|
|
|
|
|
("share/pkgs/draw-lib/racket/draw/unsafe/png.rkt"
|
|
|
|
|
("libpng"))
|
|
|
|
|
("share/pkgs/db-lib/db/private/odbc/ffi.rkt"
|
|
|
|
|
("libodbc"))
|
|
|
|
|
("share/pkgs/gui-lib/mred/private/wx/gtk/x11.rkt"
|
|
|
|
|
("libX11"))
|
|
|
|
|
("share/pkgs/gui-lib/mred/private/wx/gtk/gsettings.rkt"
|
|
|
|
|
("libgio-2.0"))
|
|
|
|
|
("share/pkgs/gui-lib/mred/private/wx/gtk/gtk3.rkt"
|
|
|
|
|
("libgdk-3" "libgtk-3"))
|
|
|
|
|
("share/pkgs/gui-lib/mred/private/wx/gtk/unique.rkt"
|
|
|
|
|
("libunique-1.0"))
|
|
|
|
|
("share/pkgs/gui-lib/mred/private/wx/gtk/utils.rkt"
|
|
|
|
|
("libgdk-x11-2.0" "libgdk_pixbuf-2.0" "libgtk-x11-2.0"))
|
|
|
|
|
("share/pkgs/gui-lib/mred/private/wx/gtk/gl-context.rkt"
|
|
|
|
|
("libGL"))
|
|
|
|
|
("share/pkgs/sgl/gl.rkt"
|
|
|
|
|
("libGL" "libGLU")))))
|
|
|
|
|
(chdir "src"))
|
|
|
|
|
(alist-cons-after
|
|
|
|
|
'unpack 'patch-/bin/sh
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "collects/racket/system.rkt"
|
|
|
|
|
(("/bin/sh") (which "sh"))))
|
|
|
|
|
%standard-phases))
|
2013-06-16 14:43:29 -04:00
|
|
|
|
#:tests? #f ; XXX: how to run them?
|
|
|
|
|
))
|
2016-07-19 09:26:42 -04:00
|
|
|
|
(inputs
|
|
|
|
|
`(("libffi" ,libffi)
|
|
|
|
|
;; Hardcode dynamically loaded libraries for better functionality.
|
|
|
|
|
;; sqlite and libraries for `racket/draw' are needed to build the doc.
|
|
|
|
|
("cairo" ,cairo)
|
|
|
|
|
("fontconfig" ,fontconfig)
|
|
|
|
|
("glib" ,glib)
|
|
|
|
|
("glu" ,glu)
|
|
|
|
|
("gmp" ,gmp)
|
|
|
|
|
("gtk+" ,gtk+) ; propagates gdk-pixbuf+svg
|
|
|
|
|
("libjpeg" ,libjpeg)
|
|
|
|
|
("libpng" ,libpng)
|
|
|
|
|
("libx11" ,libx11)
|
|
|
|
|
("mesa" ,mesa)
|
|
|
|
|
("mpfr" ,mpfr)
|
|
|
|
|
("openssl" ,openssl)
|
|
|
|
|
("pango" ,pango)
|
|
|
|
|
("sqlite" ,sqlite)
|
|
|
|
|
("unixodbc" ,unixodbc)))
|
2013-06-16 14:43:29 -04:00
|
|
|
|
(home-page "http://racket-lang.org")
|
|
|
|
|
(synopsis "Implementation of Scheme and related languages")
|
|
|
|
|
(description
|
|
|
|
|
"Racket is an implementation of the Scheme programming language (R5RS and
|
|
|
|
|
R6RS) and related languages, such as Typed Racket. It features a compiler and
|
|
|
|
|
a virtual machine with just-in-time native compilation, as well as a large set
|
|
|
|
|
of libraries.")
|
2015-01-28 16:54:12 -05:00
|
|
|
|
(license lgpl2.0+)))
|
2015-02-16 07:29:36 -05:00
|
|
|
|
|
|
|
|
|
(define-public gambit-c
|
|
|
|
|
(package
|
|
|
|
|
(name "gambit-c")
|
|
|
|
|
(version "4.7.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://www.iro.umontreal.ca/~gambit/download/gambit/v"
|
|
|
|
|
(version-major+minor version) "/source/gambc-v"
|
|
|
|
|
(string-map (lambda (c) (if (char=? c #\.) #\_ c)) version)
|
|
|
|
|
".tgz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0y2pklh4k65yrmxv63ass76xckrk9wqimbdad2gha35v2mi7blhs"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:configure-flags
|
|
|
|
|
;; According to the ./configure script, this makes the build slower and
|
|
|
|
|
;; use >= 1 GB memory, but makes Gambit much faster.
|
|
|
|
|
'("--enable-single-host")
|
|
|
|
|
#:phases
|
|
|
|
|
(alist-cons-before
|
|
|
|
|
'check 'fix-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* '("tests/makefile")
|
|
|
|
|
;; '-:' is how run-time options are set. 'tl' sets some terminal
|
|
|
|
|
;; option, which makes it fail in our build environment. It
|
|
|
|
|
;; recommends using 'd-' as a solution, which sets the REPL
|
|
|
|
|
;; interaction channel to stdin/stdout.
|
|
|
|
|
(("gsi -:tl") "gsi -:d-,tl")))
|
|
|
|
|
%standard-phases)))
|
|
|
|
|
(home-page "http://www.iro.umontreal.ca/~gambit/")
|
|
|
|
|
(synopsis "Efficient Scheme interpreter and compiler")
|
|
|
|
|
(description
|
|
|
|
|
"Gambit consists of two main programs: gsi, the Gambit Scheme
|
|
|
|
|
interpreter, and gsc, the Gambit Scheme compiler. The interpreter contains
|
|
|
|
|
the complete execution and debugging environment. The compiler is the
|
|
|
|
|
interpreter extended with the capability of generating executable files. The
|
|
|
|
|
compiler can produce standalone executables or compiled modules which can be
|
|
|
|
|
loaded at run time. Interpreted code and compiled code can be freely
|
|
|
|
|
mixed.")
|
|
|
|
|
;; Dual license.
|
|
|
|
|
(license (list lgpl2.1+ asl2.0))))
|
2015-02-16 15:58:36 -05:00
|
|
|
|
|
|
|
|
|
(define-public chibi-scheme
|
|
|
|
|
(package
|
|
|
|
|
(name "chibi-scheme")
|
2015-05-27 15:11:47 -04:00
|
|
|
|
(version "0.7.3")
|
2015-02-16 15:58:36 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
2015-05-27 15:11:47 -04:00
|
|
|
|
(uri (string-append "https://github.com/ashinn/chibi-scheme/archive/"
|
|
|
|
|
version ".tar.gz"))
|
2015-02-16 15:58:36 -05:00
|
|
|
|
(sha256
|
2015-05-27 15:11:47 -04:00
|
|
|
|
(base32 "16wppf4qzr0748iyp0m89gidsfgq9s6x3gw4xggym91waw4fh742"))
|
|
|
|
|
(file-name (string-append "chibi-scheme-" version ".tar.gz"))))
|
2015-02-16 15:58:36 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2016-09-15 09:40:00 -04:00
|
|
|
|
`(#:phases (modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(add-before 'build 'set-cc
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "CC" "gcc"))))
|
2015-02-16 15:58:36 -05:00
|
|
|
|
#:make-flags (let ((out (assoc-ref %outputs "out")))
|
|
|
|
|
(list (string-append "PREFIX=" out)
|
|
|
|
|
(string-append "LDFLAGS=-Wl,-rpath=" out "/lib")))
|
|
|
|
|
#:test-target "test"))
|
|
|
|
|
(home-page "https://code.google.com/p/chibi-scheme/")
|
|
|
|
|
(synopsis "Small embeddable Scheme implementation")
|
|
|
|
|
(description
|
|
|
|
|
"Chibi-Scheme is a very small library with no external dependencies
|
|
|
|
|
intended for use as an extension and scripting language in C programs. In
|
|
|
|
|
addition to support for lightweight VM-based threads, each VM itself runs in
|
|
|
|
|
an isolated heap allowing multiple VMs to run simultaneously in different OS
|
|
|
|
|
threads.")
|
|
|
|
|
(license bsd-3)))
|
2015-08-13 12:58:01 -04:00
|
|
|
|
|
2016-05-12 08:57:25 -04:00
|
|
|
|
(define nanopass
|
|
|
|
|
(let ((version "1.9"))
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/nanopass/nanopass-framework-scheme/archive"
|
|
|
|
|
"/v" version ".tar.gz"))
|
|
|
|
|
(sha256 (base32 "11pwyy4jiwhcl2am3a4ciczacjbjkyvdizqzdglb3l1hj2gj6nv2"))
|
|
|
|
|
(file-name (string-append "nanopass-" version ".tar.gz")))))
|
|
|
|
|
|
|
|
|
|
(define stex
|
|
|
|
|
(let ((version "1.2.1"))
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/dybvig/stex/archive"
|
|
|
|
|
"/v" version ".tar.gz"))
|
|
|
|
|
(sha256 (base32 "03pl3f668h24dn51vccr1sj5lsba9zq3j37bnxjvdadcdaj4qy5z"))
|
|
|
|
|
(file-name (string-append "stex-" version ".tar.gz")))))
|
|
|
|
|
|
|
|
|
|
(define-public chez-scheme
|
|
|
|
|
(package
|
|
|
|
|
(name "chez-scheme")
|
|
|
|
|
(version "9.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/cisco/ChezScheme/archive/"
|
|
|
|
|
"v" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0lprmpsjg2plc6ykgkz482zyvhkzv6gd0vnar71ph21h6zknyklz"))
|
|
|
|
|
(file-name (string-append "chez-scheme-" version ".tar.gz"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("ncurses" ,ncurses)
|
|
|
|
|
("libx11" ,libx11)
|
|
|
|
|
("xorg-rgb" ,xorg-rgb)
|
|
|
|
|
("nanopass" ,nanopass)
|
|
|
|
|
("zlib" ,zlib)
|
|
|
|
|
("stex" ,stex)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("texlive" ,texlive)
|
2016-07-25 05:37:43 -04:00
|
|
|
|
("ghostscript" ,ghostscript-gs)
|
2016-05-12 08:57:25 -04:00
|
|
|
|
("netpbm" ,netpbm)))
|
|
|
|
|
(outputs '("out" "doc"))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build gnu-build-system)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(ice-9 match))
|
|
|
|
|
#:test-target "test"
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; Adapt the custom 'configure' script.
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
|
(nanopass (assoc-ref inputs "nanopass"))
|
|
|
|
|
(stex (assoc-ref inputs "stex"))
|
|
|
|
|
(zlib (assoc-ref inputs "zlib"))
|
|
|
|
|
(unpack (assoc-ref %standard-phases 'unpack))
|
|
|
|
|
(patch-source-shebangs
|
|
|
|
|
(assoc-ref %standard-phases 'patch-source-shebangs)))
|
|
|
|
|
(map (match-lambda
|
|
|
|
|
((src orig-name new-name)
|
|
|
|
|
(with-directory-excursion "."
|
|
|
|
|
(apply unpack (list #:source src))
|
|
|
|
|
(apply patch-source-shebangs (list #:source src)))
|
|
|
|
|
(delete-file-recursively new-name)
|
|
|
|
|
(system* "mv" orig-name new-name)))
|
|
|
|
|
`((,nanopass "nanopass-framework-scheme-1.9" "nanopass")
|
|
|
|
|
(,stex "stex-1.2.1" "stex")))
|
|
|
|
|
;; The Makefile wants to download and compile "zlib". We patch
|
|
|
|
|
;; it to use the one from our 'zlib' package.
|
|
|
|
|
(substitute* "configure"
|
|
|
|
|
(("rmdir zlib .*$") "echo \"using system zlib\"\n"))
|
|
|
|
|
(substitute* (find-files "./c" "Mf-[a-zA-Z0-9.]+")
|
|
|
|
|
(("\\$\\{Kernel\\}: \\$\\{kernelobj\\} \\.\\./zlib/libz\\.a")
|
|
|
|
|
"${Kernel}: ${kernelobj}")
|
|
|
|
|
(("ld -melf_x86_64 -r -X -o \\$\\{Kernel\\} \\$\\{kernelobj\\} \\.\\./zlib/libz\\.a")
|
|
|
|
|
(string-append "ld -melf_x86_64 -r -X -o ${Kernel} ${kernelobj} "
|
|
|
|
|
zlib "/lib/libz.a"))
|
|
|
|
|
(("\\(cd \\.\\./zlib; CFLAGS=-m64 \\./configure --64)")
|
|
|
|
|
(which "true"))
|
|
|
|
|
(("(cd \\.\\./zlib; make)")
|
|
|
|
|
(which "true")))
|
|
|
|
|
(substitute* (find-files "mats" "Mf-.*")
|
|
|
|
|
(("^[[:space:]]+(cc ) *") "\tgcc "))
|
|
|
|
|
(substitute*
|
|
|
|
|
(find-files "." (string-append
|
|
|
|
|
"("
|
|
|
|
|
"Mf-[a-zA-Z0-9.]+"
|
|
|
|
|
"|Makefile[a-zA-Z0-9.]*"
|
|
|
|
|
"|checkin"
|
|
|
|
|
"|stex\\.stex"
|
|
|
|
|
"|newrelease"
|
|
|
|
|
"|workarea"
|
|
|
|
|
;;"|[a-zA-Z0-9.]+\\.ms" ; guile can't read
|
|
|
|
|
")"))
|
|
|
|
|
(("/bin/rm") (which "rm"))
|
|
|
|
|
(("/bin/ln") (which "ln"))
|
|
|
|
|
(("/bin/cp") (which "cp")))
|
|
|
|
|
(substitute* "makefiles/installsh"
|
|
|
|
|
(("/bin/true") (which "true")))
|
|
|
|
|
(substitute* "stex/Makefile"
|
|
|
|
|
(("PREFIX=/usr") (string-append "PREFIX=" out)))
|
|
|
|
|
(zero? (system* "./configure" "--threads"
|
|
|
|
|
(string-append "--installprefix=" out))))))
|
|
|
|
|
;; Installation of the documentation requires a running "chez".
|
|
|
|
|
(add-after 'install 'install-doc
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let ((bin (string-append (assoc-ref outputs "out") "/bin"))
|
|
|
|
|
(doc (string-append (assoc-ref outputs "doc")
|
|
|
|
|
"/share/doc/" ,name "-" ,version)))
|
|
|
|
|
(setenv "HOME" (getcwd))
|
|
|
|
|
(setenv "PATH" (string-append (getenv "PATH") ":" bin))
|
|
|
|
|
(with-directory-excursion "stex"
|
|
|
|
|
(system* "make" (string-append "BIN=" bin)))
|
|
|
|
|
(system* "make" "docs")
|
|
|
|
|
(with-directory-excursion "csug"
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
(("/tmp/csug9") doc)
|
|
|
|
|
(("^m = a6le")
|
|
|
|
|
"m := $(shell echo '(machine-type)' | scheme -q)"))
|
|
|
|
|
(system* "make" "install")
|
|
|
|
|
(install-file "csug.pdf" doc))
|
|
|
|
|
(with-directory-excursion "release_notes"
|
|
|
|
|
(install-file "release_notes.pdf" doc))
|
|
|
|
|
#t)))
|
|
|
|
|
;; The binary file name is called "scheme" as the one from MIT/GNU
|
|
|
|
|
;; Scheme. We add a symlink to use in case both are installed.
|
|
|
|
|
(add-after 'install 'install-symlink
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
|
(lib (string-append out "/lib"))
|
|
|
|
|
(name "chez-scheme"))
|
|
|
|
|
(symlink (string-append bin "/scheme")
|
|
|
|
|
(string-append bin "/" name))
|
|
|
|
|
(map (lambda (file)
|
|
|
|
|
(symlink file (string-append (dirname file)
|
|
|
|
|
"/" name ".boot")))
|
|
|
|
|
(find-files lib "scheme.boot"))
|
|
|
|
|
#t))))))
|
2016-09-20 14:57:15 -04:00
|
|
|
|
;; According to the documentation MIPS and ARM are not supported.
|
|
|
|
|
(supported-systems '("x86_64-linux" "i686-linux"))
|
2016-05-12 08:57:25 -04:00
|
|
|
|
(home-page "http://www.scheme.com")
|
|
|
|
|
(synopsis "R6RS Scheme compiler and run-time")
|
|
|
|
|
(description
|
|
|
|
|
"Chez Scheme is a compiler and run-time system for the language of the
|
|
|
|
|
Revised^6 Report on Scheme (R6RS), with numerous extensions. The compiler
|
|
|
|
|
generates native code for each target processor, with support for x86, x86_64,
|
|
|
|
|
and 32-bit PowerPC architectures.")
|
|
|
|
|
(license asl2.0)))
|
|
|
|
|
|
2015-08-13 12:58:01 -04:00
|
|
|
|
(define-public scmutils
|
|
|
|
|
(let ()
|
|
|
|
|
(define (system-suffix)
|
|
|
|
|
(cond
|
|
|
|
|
((string-prefix? "x86_64" (or (%current-target-system)
|
|
|
|
|
(%current-system)))
|
|
|
|
|
"x86-64")
|
|
|
|
|
(else "i386")))
|
|
|
|
|
|
|
|
|
|
(package
|
|
|
|
|
(name "scmutils")
|
|
|
|
|
(version "20140302")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
2016-02-21 18:29:54 -05:00
|
|
|
|
(method url-fetch/tarbomb)
|
2015-08-13 12:58:01 -04:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
;; Remove binary code
|
|
|
|
|
'(delete-file-recursively "scmutils/mit-scheme"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(uri (string-append "http://groups.csail.mit.edu/mac/users/gjs/6946"
|
|
|
|
|
"/scmutils-tarballs/" name "-" version
|
|
|
|
|
"-x86-64-gnu-linux.tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "10cnbm7nh78m5mrl1di85s29gny81jb1am9zd9f9yx725xb6dnfg"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("mit-scheme" ,mit-scheme)
|
2016-05-11 18:58:59 -04:00
|
|
|
|
("emacs" ,emacs-minimal)))
|
2015-08-13 12:58:01 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ;; no tests-suite
|
|
|
|
|
#:modules ((guix build gnu-build-system)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(guix build emacs-utils))
|
|
|
|
|
#:imported-modules (,@%gnu-build-system-modules
|
|
|
|
|
(guix build emacs-utils))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
;; No standard build procedure is used. We set the correct
|
|
|
|
|
;; runtime path in the custom build system.
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
;; Required to find .bci files at runtime.
|
|
|
|
|
(with-directory-excursion "scmutils"
|
|
|
|
|
(rename-file "src" "scmutils"))
|
|
|
|
|
(substitute* "scmutils/scmutils/load.scm"
|
|
|
|
|
(("/usr/local/scmutils/")
|
|
|
|
|
(string-append out "/lib/mit-scheme-"
|
|
|
|
|
,(system-suffix) "/")))
|
|
|
|
|
#t)))
|
|
|
|
|
(replace 'build
|
|
|
|
|
;; Compile the code and build a band.
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(make-img (string-append
|
|
|
|
|
"echo '(load \"load\") "
|
|
|
|
|
"(disk-save \"edwin-mechanics.com\")'"
|
|
|
|
|
"| mit-scheme")))
|
|
|
|
|
(with-directory-excursion "scmutils/scmutils"
|
|
|
|
|
(and (zero? (system "mit-scheme < compile.scm"))
|
|
|
|
|
(zero? (system make-img)))))))
|
|
|
|
|
(add-before 'install 'fix-directory-names
|
|
|
|
|
;; Correct directory names in the startup script.
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(scm-root (assoc-ref inputs "mit-scheme")))
|
|
|
|
|
(substitute* "bin/mechanics"
|
|
|
|
|
(("ROOT=\"\\$\\{SCMUTILS_ROOT:-/.*\\}\"")
|
|
|
|
|
(string-append
|
|
|
|
|
"ROOT=\"${SCMUTILS_ROOT:-" scm-root "}\"\n"
|
|
|
|
|
"LIB=\"${ROOT}/lib/mit-scheme-"
|
|
|
|
|
,(system-suffix) ":"
|
|
|
|
|
out "/lib/mit-scheme-" ,(system-suffix) "\""))
|
|
|
|
|
(("EDWIN_INFO_DIRECTORY=.*\n") "")
|
|
|
|
|
(("SCHEME=.*\n")
|
|
|
|
|
(string-append "SCHEME=\"${ROOT}/bin/scheme "
|
|
|
|
|
"--library ${LIB}\"\n"))
|
|
|
|
|
(("export EDWIN_INFO_DIRECTORY") ""))
|
|
|
|
|
#t)))
|
|
|
|
|
(add-before 'install 'emacs-tags
|
|
|
|
|
;; Generate Emacs's tags for easy reference to source
|
|
|
|
|
;; code.
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(with-directory-excursion "scmutils/scmutils"
|
|
|
|
|
(zero? (apply system* "etags"
|
|
|
|
|
(find-files "." "\\.scm"))))))
|
|
|
|
|
(replace 'install
|
|
|
|
|
;; Copy files to the store.
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(define* (copy-files-to-directory files dir
|
|
|
|
|
#:optional (delete? #f))
|
|
|
|
|
(for-each (lambda (f)
|
|
|
|
|
(copy-file f (string-append dir "/" f))
|
|
|
|
|
(when delete? (delete-file f)))
|
|
|
|
|
files))
|
|
|
|
|
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
|
(doc (string-append out "/share/doc/"
|
|
|
|
|
,name "-" ,version))
|
|
|
|
|
(lib (string-append out "/lib/mit-scheme-"
|
|
|
|
|
,(system-suffix)
|
|
|
|
|
"/scmutils")))
|
|
|
|
|
(for-each mkdir-p (list lib doc bin))
|
|
|
|
|
(with-directory-excursion "scmutils/scmutils"
|
|
|
|
|
(copy-files-to-directory '("COPYING" "LICENSE")
|
|
|
|
|
doc #t)
|
|
|
|
|
(for-each delete-file (find-files "." "\\.bin"))
|
|
|
|
|
(copy-files-to-directory '("edwin-mechanics.com")
|
|
|
|
|
(string-append lib "/..") #t)
|
|
|
|
|
(copy-recursively "." lib))
|
|
|
|
|
(with-directory-excursion "bin"
|
|
|
|
|
(copy-files-to-directory (find-files ".") bin))
|
|
|
|
|
(with-directory-excursion "scmutils/manual"
|
|
|
|
|
(copy-files-to-directory (find-files ".") doc))
|
|
|
|
|
#t)))
|
|
|
|
|
(add-after 'install 'emacs-helpers
|
|
|
|
|
;; Add convenience Emacs commands to easily load the
|
|
|
|
|
;; Scmutils band in an MIT-Scheme buffer inside of Emacs
|
|
|
|
|
;; and to easily load code tags.
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(mit-root (assoc-ref inputs "mit-scheme"))
|
|
|
|
|
(emacs-lisp-dir
|
|
|
|
|
(string-append out "/share/emacs/site-lisp"
|
|
|
|
|
"/guix.d/" ,name "-" ,version))
|
|
|
|
|
(el-file (string-append emacs-lisp-dir
|
|
|
|
|
"/scmutils.el"))
|
|
|
|
|
(lib-relative-path
|
|
|
|
|
(string-append "/lib/mit-scheme-"
|
|
|
|
|
,(system-suffix))))
|
|
|
|
|
(mkdir-p emacs-lisp-dir)
|
|
|
|
|
(call-with-output-file el-file
|
|
|
|
|
(lambda (p)
|
|
|
|
|
(format p
|
|
|
|
|
";;;###autoload
|
|
|
|
|
(defun scmutils-load ()
|
|
|
|
|
(interactive)
|
|
|
|
|
(require 'xscheme)
|
|
|
|
|
(let ((mit-root \"~a\")
|
|
|
|
|
(scmutils \"~a\"))
|
|
|
|
|
(run-scheme
|
|
|
|
|
(concat mit-root \"/bin/scheme --library \"
|
|
|
|
|
mit-root \"~a:\" scmutils \"~a\"
|
|
|
|
|
\" --band edwin-mechanics.com\"
|
|
|
|
|
\" --emacs\"))))
|
|
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun scmutils-load-tags ()
|
|
|
|
|
(interactive)
|
|
|
|
|
(let ((scmutils \"~a\"))
|
|
|
|
|
(visit-tags-table (concat scmutils \"/TAGS\"))))
|
|
|
|
|
"
|
|
|
|
|
mit-root out
|
|
|
|
|
lib-relative-path
|
|
|
|
|
lib-relative-path
|
|
|
|
|
(string-append out lib-relative-path
|
|
|
|
|
"/scmutils"))))
|
2015-12-24 07:29:54 -05:00
|
|
|
|
(emacs-generate-autoloads ,name emacs-lisp-dir)
|
|
|
|
|
(emacs-byte-compile-directory emacs-lisp-dir)
|
2015-08-13 12:58:01 -04:00
|
|
|
|
#t))))))
|
|
|
|
|
(home-page
|
|
|
|
|
"http://groups.csail.mit.edu/mac/users/gjs/6946/linux-install.htm")
|
|
|
|
|
(synopsis "Scmutils library for MIT Scheme")
|
|
|
|
|
(description "The Scmutils system is an integrated library of
|
|
|
|
|
procedures, embedded in the programming language Scheme, and intended to
|
|
|
|
|
support teaching and research in mathematical physics and electrical
|
|
|
|
|
engineering.")
|
|
|
|
|
(license gpl2+))))
|
2016-05-19 17:50:09 -04:00
|
|
|
|
|
|
|
|
|
(define-public sicp
|
|
|
|
|
(let ((commit "5b52db566968d28a89fbbaf338d207f01cc81cac"))
|
|
|
|
|
(package
|
|
|
|
|
(name "sicp")
|
|
|
|
|
(version (string-append "20160220-1." (string-take commit 7)))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/sarabander/sicp")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"10h6h7szwlfbshwh18bnl2hvyddj5i7106l79s145l0sjjv15cxb"))
|
|
|
|
|
(file-name (string-append name "-" version "-checkout"))))
|
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
|
(native-inputs `(("gzip" ,gzip)
|
|
|
|
|
("source" ,source)
|
|
|
|
|
("texinfo" ,texinfo)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:modules ((guix build utils)
|
|
|
|
|
(srfi srfi-1)
|
|
|
|
|
(srfi srfi-26))
|
|
|
|
|
#:builder
|
|
|
|
|
(begin
|
|
|
|
|
(use-modules (guix build utils)
|
|
|
|
|
(srfi srfi-1)
|
|
|
|
|
(srfi srfi-26))
|
|
|
|
|
(let ((gzip (assoc-ref %build-inputs "gzip"))
|
|
|
|
|
(source (assoc-ref %build-inputs "source"))
|
|
|
|
|
(texinfo (assoc-ref %build-inputs "texinfo"))
|
|
|
|
|
(info-dir (string-append %output "/share/info")))
|
|
|
|
|
(setenv "PATH" (string-append gzip "/bin"
|
|
|
|
|
":" texinfo "/bin"))
|
|
|
|
|
(mkdir-p info-dir)
|
|
|
|
|
(and (zero?
|
|
|
|
|
(system* "makeinfo" "--output"
|
|
|
|
|
(string-append info-dir "/sicp.info")
|
|
|
|
|
(string-append source "/sicp-pocket.texi")))
|
|
|
|
|
(every zero?
|
|
|
|
|
(map (cut system* "gzip" "-9n" <>)
|
|
|
|
|
(find-files info-dir))))))))
|
|
|
|
|
(home-page "http://sarabander.github.io/sicp")
|
|
|
|
|
(synopsis "Structure and Interpretation of Computer Programs")
|
|
|
|
|
(description "Structure and Interpretation of Computer Programs (SICP) is
|
|
|
|
|
a textbook aiming to teach the principles of computer programming.
|
|
|
|
|
|
|
|
|
|
Using Scheme, a dialect of the Lisp programming language, the book explains
|
|
|
|
|
core computer science concepts such as abstraction in programming,
|
|
|
|
|
metalinguistic abstraction, recursion, interpreters, and modular programming.")
|
|
|
|
|
(license cc-by-sa4.0))))
|