* [bug#54692] [PATCH] gnu: Add emacs-opencl-mode
@ 2022-04-03 13:41 Thomas Albers via Guix-patches via
2022-04-03 14:30 ` Maxime Devos
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Thomas Albers via Guix-patches via @ 2022-04-03 13:41 UTC (permalink / raw)
To: 54692; +Cc: Thomas Albers
Hi guix,
the following patch adds the emacs-opencl-mode package. It provides
syntax highlighting when editing OpenCL kernels.
Regards,
Thomas
---
gnu/packages/emacs-xyz.scm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 42fc13f4c2..6c82a9d784 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -108,6 +108,7 @@
;;; Copyright © 2021, 2022 Taiju HIGASHI <higashi@taiju.info>
;;; Copyright © 2022 Brandon Lucas <br@ndon.dk>
;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
+;;; Copyright © 2022 Thomas Albers Raviola <thomas@thomaslabs.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -30833,3 +30834,23 @@ (define-public emacs-osm
zoomable and moveable map display, display of tracks and POIs from GPX files,
parallel fetching of tiles with cURL, and more.")
(license license:gpl3+)))
+
+(define-public emacs-opencl-mode
+ (let ((commit "15091eff92c33ee0d1ece40eb99299ef79fee92d")
+ (revision "1"))
+ (package
+ (name "emacs-opencl-mode")
+ (version (git-version "1.0" revision commit))
+ (source (origin
+ (uri (git-reference
+ (url "https://github.com/salmanebah/opencl-mode")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1zn6rr48w0ai0sn51zzyp546va6flfgf9lm12vfrdb6kkiiiq403"))
+ (method git-fetch)))
+ (build-system emacs-build-system)
+ (synopsis "OpenCL syntax coloring for Emacs")
+ (description "This Emacs package provides syntax coloring for OpenCL kernels.")
+ (home-page "https://github.com/salmanebah/opencl-mode")
+ (license license:gpl3))))
--
2.34.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#54692] [PATCH] gnu: Add emacs-opencl-mode
2022-04-03 13:41 [bug#54692] [PATCH] gnu: Add emacs-opencl-mode Thomas Albers via Guix-patches via
@ 2022-04-03 14:30 ` Maxime Devos
2022-04-03 14:31 ` Maxime Devos
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Maxime Devos @ 2022-04-03 14:30 UTC (permalink / raw)
To: Thomas Albers, 54692
[-- Attachment #1: Type: text/plain, Size: 188 bytes --]
Thomas Albers via Guix-patches via schreef op zo 03-04-2022 om 15:41
[+0200]:
> + (license license:gpl3))))
According to opencl-mode.el, it's GPL3+.
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#54692] [PATCH] gnu: Add emacs-opencl-mode
2022-04-03 13:41 [bug#54692] [PATCH] gnu: Add emacs-opencl-mode Thomas Albers via Guix-patches via
2022-04-03 14:30 ` Maxime Devos
@ 2022-04-03 14:31 ` Maxime Devos
2022-04-03 14:33 ` Maxime Devos
2022-04-03 14:42 ` Maxime Devos
3 siblings, 0 replies; 8+ messages in thread
From: Maxime Devos @ 2022-04-03 14:31 UTC (permalink / raw)
To: Thomas Albers, 54692
[-- Attachment #1: Type: text/plain, Size: 272 bytes --]
Thomas Albers via Guix-patches via schreef op zo 03-04-2022 om 15:41
[+0200]:
> + (source (origin
The code does (require 'cc-fonts) -- is this part of Emacs itself, or
is it a dependency that needs to be added to propagated-inputs?
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#54692] [PATCH] gnu: Add emacs-opencl-mode
2022-04-03 13:41 [bug#54692] [PATCH] gnu: Add emacs-opencl-mode Thomas Albers via Guix-patches via
2022-04-03 14:30 ` Maxime Devos
2022-04-03 14:31 ` Maxime Devos
@ 2022-04-03 14:33 ` Maxime Devos
2022-04-03 14:42 ` Maxime Devos
3 siblings, 0 replies; 8+ messages in thread
From: Maxime Devos @ 2022-04-03 14:33 UTC (permalink / raw)
To: Thomas Albers, 54692
[-- Attachment #1: Type: text/plain, Size: 361 bytes --]
Thomas Albers via Guix-patches via schreef op zo 03-04-2022 om 15:41
[+0200]:
> + (version (git-version "1.0" revision commit))
I would add a comment here, maybe
;; Upstream never makes any formal releases, there is only v1.0.
;; Use the latest commit instead.
to explain why a non-version commit was chosen.
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#54692] [PATCH] gnu: Add emacs-opencl-mode
2022-04-03 13:41 [bug#54692] [PATCH] gnu: Add emacs-opencl-mode Thomas Albers via Guix-patches via
` (2 preceding siblings ...)
2022-04-03 14:33 ` Maxime Devos
@ 2022-04-03 14:42 ` Maxime Devos
2022-04-03 17:53 ` Thomas Albers via Guix-patches via
3 siblings, 1 reply; 8+ messages in thread
From: Maxime Devos @ 2022-04-03 14:42 UTC (permalink / raw)
To: Thomas Albers, 54692
[-- Attachment #1: Type: text/plain, Size: 697 bytes --]
Thomas Albers via Guix-patches via schreef op zo 03-04-2022 om 15:41
[+0200]:
> + (description "This Emacs package provides syntax coloring for OpenCL kernels.")
This is a bit short. Some additional things that could be mentioned:
* the name of the emacs mode (in case a non-recognised file name is
used)
* its documentation support (opencl-lookup)
Additionally, for offline usage, it would be nice if the OpenCL
documentation was built from source (*) and referred to by
file:///gnu/store/... instead of http://www.khronos.org, though I don't
think that can be a requirement.
Greetings,
Maxime.
(*) https://github.com/KhronosGroup/OpenCL-Docs#license
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#54692] [PATCH] gnu: Add emacs-opencl-mode
2022-04-03 14:42 ` Maxime Devos
@ 2022-04-03 17:53 ` Thomas Albers via Guix-patches via
2022-04-03 18:43 ` Maxime Devos
2022-06-07 22:03 ` bug#54692: " Nicolas Goaziou
0 siblings, 2 replies; 8+ messages in thread
From: Thomas Albers via Guix-patches via @ 2022-04-03 17:53 UTC (permalink / raw)
To: 54692; +Cc: Thomas Albers, maximedevos
Hello Maxime,
thank you for your feedback. Here I send a new patch with the suggested
corrections.
About your questions:
- cc-fonts is part of emacs
- Offline access to the OpenCL documentation would indeed be nice, I guess
this should however be a separate package. I could add this afterwards,
once this package is available.
Greetings,
Thomas
---
gnu/packages/emacs-xyz.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 42fc13f4c2..8aef0b42eb 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -108,6 +108,7 @@
;;; Copyright © 2021, 2022 Taiju HIGASHI <higashi@taiju.info>
;;; Copyright © 2022 Brandon Lucas <br@ndon.dk>
;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
+;;; Copyright © 2022 Thomas Albers Raviola <thomas@thomaslabs.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -30833,3 +30834,27 @@ (define-public emacs-osm
zoomable and moveable map display, display of tracks and POIs from GPX files,
parallel fetching of tiles with cURL, and more.")
(license license:gpl3+)))
+
+(define-public emacs-opencl-mode
+ ;; Upstream never makes any formal releases, there is only v1.0.
+ ;; Use the latest commit instead.
+ (let ((commit "15091eff92c33ee0d1ece40eb99299ef79fee92d")
+ (revision "1"))
+ (package
+ (name "emacs-opencl-mode")
+ (version (git-version "1.0" revision commit))
+ (source (origin
+ (uri (git-reference
+ (url "https://github.com/salmanebah/opencl-mode")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1zn6rr48w0ai0sn51zzyp546va6flfgf9lm12vfrdb6kkiiiq403"))
+ (method git-fetch)))
+ (build-system emacs-build-system)
+ (synopsis "Emacs major mode for editing OpenCL kernels")
+ (description "This Emacs package provides the @code{opencl-mode} major
+mode for editing OpenCL kernels. It supports syntax highlighting and online
+access to the OpenCL documentation through the @code{opencl-lookup} function.")
+ (home-page "https://github.com/salmanebah/opencl-mode")
+ (license license:gpl3+))))
--
2.34.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#54692] [PATCH] gnu: Add emacs-opencl-mode
2022-04-03 17:53 ` Thomas Albers via Guix-patches via
@ 2022-04-03 18:43 ` Maxime Devos
2022-06-07 22:03 ` bug#54692: " Nicolas Goaziou
1 sibling, 0 replies; 8+ messages in thread
From: Maxime Devos @ 2022-04-03 18:43 UTC (permalink / raw)
To: Thomas Albers, 54692
[-- Attachment #1: Type: text/plain, Size: 367 bytes --]
Thomas Albers schreef op zo 03-04-2022 om 19:53 [+0200]:
> + (description "This Emacs package provides the @code{opencl-mode} major
> +mode for editing OpenCL kernels. It supports syntax highlighting and online
> +access to the OpenCL documentation through the @code{opencl-lookup} function.")
Looks like a nice description!
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#54692: [PATCH] gnu: Add emacs-opencl-mode
2022-04-03 17:53 ` Thomas Albers via Guix-patches via
2022-04-03 18:43 ` Maxime Devos
@ 2022-06-07 22:03 ` Nicolas Goaziou
1 sibling, 0 replies; 8+ messages in thread
From: Nicolas Goaziou @ 2022-06-07 22:03 UTC (permalink / raw)
To: Thomas Albers via Guix-patches via; +Cc: Thomas Albers, 54692-done, maximedevos
Hello,
Thomas Albers via Guix-patches via <guix-patches@gnu.org> writes:
>
> ---
> gnu/packages/emacs-xyz.scm | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
>
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index 42fc13f4c2..8aef0b42eb 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -108,6 +108,7 @@
> ;;; Copyright © 2021, 2022 Taiju HIGASHI <higashi@taiju.info>
> ;;; Copyright © 2022 Brandon Lucas <br@ndon.dk>
> ;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan@gmail.com>
> +;;; Copyright © 2022 Thomas Albers Raviola <thomas@thomaslabs.org>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -30833,3 +30834,27 @@ (define-public emacs-osm
> zoomable and moveable map display, display of tracks and POIs from GPX files,
> parallel fetching of tiles with cURL, and more.")
> (license license:gpl3+)))
> +
> +(define-public emacs-opencl-mode
I added a proper commit message and pushed.
Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-06-07 23:17 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-03 13:41 [bug#54692] [PATCH] gnu: Add emacs-opencl-mode Thomas Albers via Guix-patches via
2022-04-03 14:30 ` Maxime Devos
2022-04-03 14:31 ` Maxime Devos
2022-04-03 14:33 ` Maxime Devos
2022-04-03 14:42 ` Maxime Devos
2022-04-03 17:53 ` Thomas Albers via Guix-patches via
2022-04-03 18:43 ` Maxime Devos
2022-06-07 22:03 ` bug#54692: " Nicolas Goaziou
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).