From: Federico Beffa <beffa@ieee.org>
To: Guix-devel <guix-devel@gnu.org>
Subject: [PATCH 3/6] gnu: Add emacs-mit-scheme-doc.
Date: Wed, 30 Dec 2015 18:32:53 +0100 [thread overview]
Message-ID: <CAKrPhPNwUgMJZwOHgYJqAaycghmrP3FjkfLEno+3P1MxgJCigw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: 0003-gnu-Add-emacs-mit-scheme-doc.patch --]
[-- Type: text/x-diff, Size: 2934 bytes --]
From 77b339ef57692e5c930b2b659f53cb1c65352857 Mon Sep 17 00:00:00 2001
From: Federico Beffa <beffa@fbengineering.ch>
Date: Fri, 25 Dec 2015 23:21:11 +0100
Subject: [PATCH 3/6] gnu: Add emacs-mit-scheme-doc.
* gnu/packages/emacs.scm (emacs-mit-scheme-doc): New variable.
---
gnu/packages/emacs.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 28b3ca0..3a7c4ad 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -54,6 +54,7 @@
#:use-module (gnu packages acl)
#:use-module (gnu packages perl)
#:use-module (gnu packages pdf)
+ #:use-module (gnu packages scheme)
#:use-module (gnu packages xiph)
#:use-module (gnu packages mp3)
#:use-module (guix utils)
@@ -1203,3 +1204,44 @@ which you can use for intelligent, context-sensitive completion for any Scheme
implementation in Emacs. To use it just load this file and bind that function
to a key in your preferred mode.")
(license license:gpl3+))) ;; check license
+
+(define-public emacs-mit-scheme-doc
+ (package
+ (name "emacs-mit-scheme-doc")
+ (version "20140203")
+ (source
+ (origin
+ (modules '((guix build utils)))
+ (snippet
+ ;; keep only file of interest
+ '(begin
+ (for-each delete-file '("dot-emacs.el" "Makefile"))
+ (copy-file "6.945-config/mit-scheme-doc.el" "mit-scheme-doc.el")
+ (delete-file-recursively "6.945-config")))
+ (file-name (string-append name "-" version ".tar.bz2"))
+ (method url-fetch)
+ (uri (string-append "http://groups.csail.mit.edu/mac/users/gjs/"
+ "6.945/dont-panic/emacs-basic-config.tar.bz2"))
+ (sha256
+ (base32
+ "0dqidg2bd66pawqfarvwca93w5gqf9mikn1k2a2rmd9ymfjpziq1"))))
+ (build-system emacs-build-system)
+ (inputs `(("mit-scheme" ,mit-scheme)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'configure-doc
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let* ((mit-scheme-dir (assoc-ref inputs "mit-scheme"))
+ (doc-dir (string-append mit-scheme-dir "/share/doc/"
+ "mit-scheme-"
+ ,(package-version mit-scheme))))
+ (substitute* "mit-scheme-doc.el"
+ (("http://www\\.gnu\\.org/software/mit-scheme/documentation/mit-scheme-ref/")
+ (string-append "file:" doc-dir "/mit-scheme-ref/")))))))))
+ (home-page "http://groups.csail.mit.edu/mac/users/gjs/6.945/dont-panic/")
+ (synopsis "MIT-Scheme documentation lookup for Emacs")
+ (description
+ "This package provides a set of Emacs functions to search definitions of
+identifiers in the MIT-Scheme documentation.")
+ (license license:gpl2+)))
--
2.6.3
next reply other threads:[~2015-12-30 17:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-30 17:32 Federico Beffa [this message]
2016-01-05 21:52 ` [PATCH 3/6] gnu: Add emacs-mit-scheme-doc Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKrPhPNwUgMJZwOHgYJqAaycghmrP3FjkfLEno+3P1MxgJCigw@mail.gmail.com \
--to=beffa@ieee.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).