* [bug#43777] [PATCH] gnu: Add emacs-ob-sclang.
@ 2020-10-03 11:17 Pierre Langlois
2020-10-03 15:00 ` Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: Pierre Langlois @ 2020-10-03 11:17 UTC (permalink / raw)
To: 43777
[-- Attachment #1.1: Type: text/plain, Size: 328 bytes --]
Hello Guix!
Recently I realised I had to build/download qtwebengine because of
pulling in supercollider from the emacs-org-contrib package. I thought
it'd be a good idea to package the supercollider Org-babel support into
its own package to reduce emacs-org-contrib's set of dependencies.
What do you think?
Thanks,
Pierre
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 519 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-emacs-ob-sclang.patch --]
[-- Type: text/x-patch, Size: 3115 bytes --]
From 35b1ff862ef66c756ed01755552f977a98138cdd Mon Sep 17 00:00:00 2001
From: Pierre Langlois <pierre.langlois@gmx.com>
Date: Sat, 3 Oct 2020 12:13:50 +0100
Subject: [PATCH] gnu: Add emacs-ob-sclang.
Remove emacs-org-contrib's dependency on SuperCollider by extracting
ob-sclang.el into its own package.
* gnu/packages/emacs-xyz.scm (emacs-org-contrib)[source]: Add snippet
that deletes ob-sclang.el.
[propagated-inputs]: Remove emacs-scel.
(emacs-ob-sclang): New variable.
---
gnu/packages/emacs-xyz.scm | 31 ++++++++++++++++++++++++++++---
1 file changed, 28 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index e3ec431d94..66c61aa182 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -9825,7 +9825,11 @@ programming and reproducible research.")
(uri (string-append "https://orgmode.org/elpa/"
"org-plus-contrib-" version ".tar"))
(sha256
- (base32 "1naq25g4d95cx29axx428rnpc4m9hd0j7w1l0vqwkdjyr5qfj0ab"))))
+ (base32 "1naq25g4d95cx29axx428rnpc4m9hd0j7w1l0vqwkdjyr5qfj0ab"))
+ ;; ob-sclang.el is packaged separately to avoid the dependency on
+ ;; SuperCollider and qtwebengine.
+ (modules '((guix build utils)))
+ (snippet '(begin (delete-file "ob-sclang.el") #t))))
(arguments
`(#:modules ((guix build emacs-build-system)
(guix build utils)
@@ -9852,8 +9856,7 @@ programming and reproducible research.")
(propagated-inputs
`(("arduino-mode" ,emacs-arduino-mode)
("cider" ,emacs-cider)
- ("org" ,emacs-org)
- ("scel" ,emacs-scel)))
+ ("org" ,emacs-org)))
(synopsis "Contributed packages to Org mode")
(description "Org is an Emacs mode for keeping notes, maintaining TODO
lists, and project planning with a fast and effective plain-text system.
@@ -9861,6 +9864,28 @@ lists, and project planning with a fast and effective plain-text system.
This package is equivalent to org-plus-contrib, but only includes additional
files that you would find in @file{contrib/} from the git repository.")))
+(define-public emacs-ob-sclang
+ (package
+ (inherit emacs-org-contrib)
+ (name "emacs-ob-sclang")
+ (source
+ (origin (inherit (package-source emacs-org-contrib))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (for-each (lambda (file)
+ (unless (equal? file "./ob-sclang.el")
+ (delete-file file)))
+ (find-files "." "\\.el"))
+ #t))))
+ (propagated-inputs
+ `(("org" ,emacs-org)
+ ("scel" ,emacs-scel)))
+ (synopsis "Org-babel support for SuperCollider")
+ (description "This package adds support for evaluating @code{sclang}
+Org-mode source blocks. It is extracted from the @code{emacs-org-contrib}
+package.")))
+
(define-public emacs-org-edna
(package
(name "emacs-org-edna")
--
2.28.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#43777] [PATCH] gnu: Add emacs-ob-sclang.
2020-10-03 11:17 [bug#43777] [PATCH] gnu: Add emacs-ob-sclang Pierre Langlois
@ 2020-10-03 15:00 ` Nicolas Goaziou
2020-10-06 19:45 ` bug#43777: " Pierre Langlois
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2020-10-03 15:00 UTC (permalink / raw)
To: Pierre Langlois; +Cc: 43777
Hello,
Pierre Langlois <pierre.langlois@gmx.com> writes:
> Recently I realised I had to build/download qtwebengine because of
> pulling in supercollider from the emacs-org-contrib package. I thought
> it'd be a good idea to package the supercollider Org-babel support into
> its own package to reduce emacs-org-contrib's set of dependencies.
>
> What do you think?
It is a good idea. I wish all these libraries were separated upstream;
org-contrib does not make much sense as a meta package.
Some nit-picking follows.
> + (synopsis "Org-babel support for SuperCollider")
-> Org Babel support for SuperCollider
> + (description "This package adds support for evaluating @code{sclang}
> +Org-mode source blocks. It is extracted from the
> @code{emacs-org-contrib} package.")))
-> Org mode source blocks
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#43777: [PATCH] gnu: Add emacs-ob-sclang.
2020-10-03 15:00 ` Nicolas Goaziou
@ 2020-10-06 19:45 ` Pierre Langlois
0 siblings, 0 replies; 3+ messages in thread
From: Pierre Langlois @ 2020-10-06 19:45 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: Pierre Langlois, 43777-done
[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]
Hello,
Nicolas Goaziou writes:
> Hello,
>
> Pierre Langlois <pierre.langlois@gmx.com> writes:
>
>> Recently I realised I had to build/download qtwebengine because of
>> pulling in supercollider from the emacs-org-contrib package. I thought
>> it'd be a good idea to package the supercollider Org-babel support into
>> its own package to reduce emacs-org-contrib's set of dependencies.
>>
>> What do you think?
>
> It is a good idea. I wish all these libraries were separated upstream;
> org-contrib does not make much sense as a meta package.
Yeah I agree, it's tempting to do that ourselves downstream but it's
probably more trouble than it's worth.
>
> Some nit-picking follows.
>
>> + (synopsis "Org-babel support for SuperCollider")
>
> -> Org Babel support for SuperCollider
>
>> + (description "This package adds support for evaluating @code{sclang}
>> +Org-mode source blocks. It is extracted from the
>> @code{emacs-org-contrib} package.")))
>
> -> Org mode source blocks
Thanks for the review! I tweaked the descriptions as suggested and
pushed with 38094a4f8d56ea8f3ce200a88a2a11885c929348 .
Thanks,
Pierre
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 519 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-10-06 19:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-03 11:17 [bug#43777] [PATCH] gnu: Add emacs-ob-sclang Pierre Langlois
2020-10-03 15:00 ` Nicolas Goaziou
2020-10-06 19:45 ` bug#43777: " Pierre Langlois
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.