unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#55276] [PATCH] gnu: Add xkblayout.
@ 2022-05-05 16:46 Attila Lendvai
  2022-05-05 17:18 ` Maxime Devos
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Attila Lendvai @ 2022-05-05 16:46 UTC (permalink / raw)
  To: 55276; +Cc: Attila Lendvai

* gnu/packages/xdisorg.scm (xkblayout): New variable.
---
 gnu/packages/xdisorg.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index d41c520962..b88f1b9445 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -387,6 +387,29 @@ (define-public xkb-switch
 state.")
     (license license:gpl3+)))
 
+(define-public xkblayout
+  ;; Upstream has no tags as of 2022-05-04
+  (let ((revision "0")
+        (commit "c0851b0f4bc9bc1a07240605baac8e50abe63fa8"))
+    (package
+      (name "xkblayout")
+      (version (string-append "0.0.0-" revision "-" (substring commit 0 7)))
+      (home-page "https://gitlab.freedesktop.org/whot/xkblayout")
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url home-page)
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0057988l5l7pmwg7dp6cqvj5l4lr0g5z3wq189g6kz36l9rmh675"))))
+      (build-system python-build-system)
+      (synopsis "XKB layout template generator")
+      (description "xkblayout is a CLI application to generate templates for
+a new XKB layout, either in the user's home directory or the system directory.")
+      (license license:gpl3+))))
+
 (define-public xclip
   (package
     (name "xclip")
-- 
2.35.1





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [bug#55276] [PATCH] gnu: Add xkblayout.
  2022-05-05 16:46 [bug#55276] [PATCH] gnu: Add xkblayout Attila Lendvai
@ 2022-05-05 17:18 ` Maxime Devos
  2022-05-05 17:19 ` Maxime Devos
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Maxime Devos @ 2022-05-05 17:18 UTC (permalink / raw)
  To: Attila Lendvai, 55276

[-- Attachment #1: Type: text/plain, Size: 650 bytes --]

Attila Lendvai schreef op do 05-05-2022 om 18:46 [+0200]:
> +(define-public xkblayout
> +  ;; Upstream has no tags as of 2022-05-04
> +  (let ((revision "0")
> +        (commit "c0851b0f4bc9bc1a07240605baac8e50abe63fa8"))

I don't think the lack of tags matters, what relevant is whether there
is some kind of version number system.  So I'd go for

  ;; Upstream doesn't have any version numbers

However, upstream does have versions:

https://gitlab.freedesktop.org/whot/xkblayout/-/blob/master/setup.py#L6

... but it's an old version, so maybe upstream could be asked if it's a
’good’ version?

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#55276] [PATCH] gnu: Add xkblayout.
  2022-05-05 16:46 [bug#55276] [PATCH] gnu: Add xkblayout Attila Lendvai
  2022-05-05 17:18 ` Maxime Devos
@ 2022-05-05 17:19 ` Maxime Devos
  2022-05-05 17:19 ` Maxime Devos
  2022-05-06  6:22 ` [bug#55276] [PATCH v2] " Attila Lendvai
  3 siblings, 0 replies; 8+ messages in thread
From: Maxime Devos @ 2022-05-05 17:19 UTC (permalink / raw)
  To: Attila Lendvai, 55276

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

Attila Lendvai schreef op do 05-05-2022 om 18:46 [+0200]:
> +      (version (string-append "0.0.0-" revision "-" (substring commit 0 7)))

'git-version'?

[-- 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#55276] [PATCH] gnu: Add xkblayout.
  2022-05-05 16:46 [bug#55276] [PATCH] gnu: Add xkblayout Attila Lendvai
  2022-05-05 17:18 ` Maxime Devos
  2022-05-05 17:19 ` Maxime Devos
@ 2022-05-05 17:19 ` Maxime Devos
  2022-05-06  6:22 ` [bug#55276] [PATCH v2] " Attila Lendvai
  3 siblings, 0 replies; 8+ messages in thread
From: Maxime Devos @ 2022-05-05 17:19 UTC (permalink / raw)
  To: Attila Lendvai, 55276

[-- Attachment #1: Type: text/plain, Size: 181 bytes --]

Attila Lendvai schreef op do 05-05-2022 om 18:46 [+0200]:
> +      (license license:gpl3+))))

xkblayout.py says otherwise (some kind of BSD maybe?)

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#55276] [PATCH v2] gnu: Add xkblayout.
  2022-05-05 16:46 [bug#55276] [PATCH] gnu: Add xkblayout Attila Lendvai
                   ` (2 preceding siblings ...)
  2022-05-05 17:19 ` Maxime Devos
@ 2022-05-06  6:22 ` Attila Lendvai
  2022-05-06 12:19   ` Maxime Devos
                     ` (2 more replies)
  3 siblings, 3 replies; 8+ messages in thread
From: Attila Lendvai @ 2022-05-06  6:22 UTC (permalink / raw)
  To: 55276; +Cc: Attila Lendvai

* gnu/packages/xdisorg.scm (xkblayout): New variable.
---

i've addressed the issues i could, but i'm not sure anymore
whether this should be packaged for Guix at all. maybe
people should just clone the repo and run it from there?

feel free to reject it.

either way, i've requested some clarifications:

https://gitlab.freedesktop.org/whot/xkblayout/-/issues/

licensing is contradictory, COPYING says GPL.

 gnu/packages/xdisorg.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm
index d41c520962..08f4780fc2 100644
--- a/gnu/packages/xdisorg.scm
+++ b/gnu/packages/xdisorg.scm
@@ -387,6 +387,30 @@ (define-public xkb-switch
 state.")
     (license license:gpl3+)))
 
+(define-public xkblayout
+  ;; Upstream doesn't have any version numbers
+  (let ((version "0.0.0")
+        (revision "0")
+        (commit "c0851b0f4bc9bc1a07240605baac8e50abe63fa8"))
+    (package
+      (name "xkblayout")
+      (version (git-version version revision commit))
+      (home-page "https://gitlab.freedesktop.org/whot/xkblayout")
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url home-page)
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0057988l5l7pmwg7dp6cqvj5l4lr0g5z3wq189g6kz36l9rmh675"))))
+      (build-system python-build-system)
+      (synopsis "XKB layout template generator")
+      (description "xkblayout is a CLI application to generate templates for
+a new XKB layout, either in the user's home directory or the system directory.")
+      (license license:gpl3+))))
+
 (define-public xclip
   (package
     (name "xclip")
-- 
2.35.1





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [bug#55276] [PATCH v2] gnu: Add xkblayout.
  2022-05-06  6:22 ` [bug#55276] [PATCH v2] " Attila Lendvai
@ 2022-05-06 12:19   ` Maxime Devos
  2022-05-06 12:21   ` Maxime Devos
  2022-05-09 10:06   ` bug#55276: [PATCH] " Ludovic Courtès
  2 siblings, 0 replies; 8+ messages in thread
From: Maxime Devos @ 2022-05-06 12:19 UTC (permalink / raw)
  To: Attila Lendvai, 55276

[-- Attachment #1: Type: text/plain, Size: 377 bytes --]

Attila Lendvai schreef op vr 06-05-2022 om 08:22 [+0200]:
> +  ;; Upstream doesn't have any version numbers
> +  (let ((version "0.0.0")
> +        (revision "0")
> +        (commit "c0851b0f4bc9bc1a07240605baac8e50abe63fa8"))

TBC I don't think this is a blocker, it's more of an ‘it would be
convenient to have them’ thing.

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#55276] [PATCH v2] gnu: Add xkblayout.
  2022-05-06  6:22 ` [bug#55276] [PATCH v2] " Attila Lendvai
  2022-05-06 12:19   ` Maxime Devos
@ 2022-05-06 12:21   ` Maxime Devos
  2022-05-09 10:06   ` bug#55276: [PATCH] " Ludovic Courtès
  2 siblings, 0 replies; 8+ messages in thread
From: Maxime Devos @ 2022-05-06 12:21 UTC (permalink / raw)
  To: Attila Lendvai, 55276

[-- Attachment #1: Type: text/plain, Size: 439 bytes --]

Attila Lendvai schreef op vr 06-05-2022 om 08:22 [+0200]:
> * gnu/packages/xdisorg.scm (xkblayout): New variable.
> ---
> 
> i've addressed the issues i could, but i'm not sure anymore
> whether this should be packaged for Guix at all.

I don't see why not, it's software and Guix is a software distribution
and some people create their own layouts.  Though you can close the
debbugs issue if you want to.

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#55276: [PATCH] gnu: Add xkblayout.
  2022-05-06  6:22 ` [bug#55276] [PATCH v2] " Attila Lendvai
  2022-05-06 12:19   ` Maxime Devos
  2022-05-06 12:21   ` Maxime Devos
@ 2022-05-09 10:06   ` Ludovic Courtès
  2 siblings, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2022-05-09 10:06 UTC (permalink / raw)
  To: Attila Lendvai; +Cc: 55276-done, Maxime Devos

Hi,

Attila Lendvai <attila@lendvai.name> skribis:

> * gnu/packages/xdisorg.scm (xkblayout): New variable.

Applied, thanks!  And thanks to Maxime for reviewing.

Ludo’.




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-05-09 10:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05 16:46 [bug#55276] [PATCH] gnu: Add xkblayout Attila Lendvai
2022-05-05 17:18 ` Maxime Devos
2022-05-05 17:19 ` Maxime Devos
2022-05-05 17:19 ` Maxime Devos
2022-05-06  6:22 ` [bug#55276] [PATCH v2] " Attila Lendvai
2022-05-06 12:19   ` Maxime Devos
2022-05-06 12:21   ` Maxime Devos
2022-05-09 10:06   ` bug#55276: [PATCH] " Ludovic Courtès

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).