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
| | ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2023 Antero Mejr <antero@mailbox.org>
;;;
;;; 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 book-software)
#:use-module (gnu packages)
#:use-module (gnu packages scheme)
#:use-module (gnu packages tex)
#:use-module (gnu packages texinfo)
#:use-module (guix build-system copy)
#:use-module (guix download)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module ((guix licenses) #:prefix license:))
(define-public rrrs2txi
(package
(name "rrrs2txi")
(version "2001-03-28")
(source (origin
(method url-fetch)
(uri "https://people.csail.mit.edu/jaffer/rrrs2txi.scm")
(sha256
(base32
"11bmm0c2plri0mf3jjabjpbs342h4983s8jdlsvhxr384j2nlyai"))))
(build-system copy-build-system)
(arguments
(list #:install-plan #~'(("rrrs2txi.scm" "lib/"))))
(home-page "https://people.csail.mit.edu/jaffer/Scheme.html")
(synopsis "Translate LaTeX sources r3rs, r4rs, and r5rs to texinfo")
(description
"This package provides @code{rrrs2txi.scm}, which
translates the LaTeX r3rs, r4rs, and r5rs to texinfo format (r3rs.txi,
r4rs.txi, and r5rs.txi).")
(license license:bsd-3)))
(define-public book-r5rs
(package
(name "book-r5rs")
(version "5")
(source (origin
(method url-fetch)
(uri
"https://groups.csail.mit.edu/mac/ftpdir/scheme-reports/r5rs.tar.gz")
(sha256
(base32
"12c6087zdffigmdl9bx1xv71si9jfpffsbpimivx3j80j8hvxrci"))))
(build-system copy-build-system)
(arguments
(list #:phases #~(modify-phases %standard-phases
(add-before 'install 'build
(lambda _
(invoke "pdflatex" "r5rs.tex")
(invoke "pdflatex" "r5rs.tex")
(system* "scm" "-f" ;expected to fail
(string-append
#$(this-package-native-input "rrrs2txi")
"/lib/rrrs2txi.scm")
"-e" "(go)")
;; forcing because the online txi is broken too
(invoke "makeinfo" "--force" "r5rs.txi"))))
#:install-plan #~'(("r5rs.pdf" "share/doc/r5rs/")
("r5rs.info" "share/info/"))))
(native-inputs (list rrrs2txi scm texinfo
(texlive-updmap.cfg (list texlive-fonts-ec))))
(home-page "https://people.csail.mit.edu/jaffer/Scheme.html")
(synopsis "Specification for the R5RS implementation of Scheme")
(description
"The report gives a defining description of the programming language
Scheme. Scheme is a statically scoped and properly tail-recursive dialect of
the Lisp programming language.")
(license (license:non-copyleft
"https://people.csail.mit.edu/jaffer/Scheme_TERMS.html"))))
|