unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#62166] [PATCH 1/2] gnu: Add python-clickgen.
@ 2023-03-13 18:41 conses
  2023-03-13 18:43 ` [bug#62166] [PATCH 2/2] gnu: Add bibata-cursor-theme conses
  2023-03-22  7:50 ` [bug#62166] [PATCH 1/2] gnu: Add python-clickgen Andrew Tropin
  0 siblings, 2 replies; 4+ messages in thread
From: conses @ 2023-03-13 18:41 UTC (permalink / raw)
  To: 62166; +Cc: contact

* gnu/packages/python-xyz.scm (python-clickgen): New variable.
---
 gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 83f3ec02ea..10c2ca3019 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3802,6 +3802,28 @@ (define-public python-click-7
         (base32 "06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj"))))
     (arguments `())))
 
+(define-public python-clickgen
+  (package
+    (name "python-clickgen")
+    (version "2.1.3")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "clickgen" version))
+              (sha256
+               (base32
+                "010j9zz0gd2za5l4hibicypnfw721x0gxp3rr0329bc97vw5maha"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     (list python-pillow python-toml python-numpy-next python-attrs))
+    (inputs (list libx11 libpng libxcursor))
+    (native-inputs (list python-setuptools python-wheel))
+    (home-page "https://github.com/ful1e5/clickgen")
+    (synopsis "The hassle-free cursor building toolbox")
+    (description
+     "clickgen is an API for building X11 and Windows cursors from .png files.
+clickgen is using @code{anicursorgen} and @code{xcursorgen} under the hood.")
+    (license license:expat)))
+
 (define-public python-cligj
   (package
     (name "python-cligj")
-- 
2.39.1



-- 
Best regards,
conses




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

* [bug#62166] [PATCH 2/2] gnu: Add bibata-cursor-theme.
  2023-03-13 18:41 [bug#62166] [PATCH 1/2] gnu: Add python-clickgen conses
@ 2023-03-13 18:43 ` conses
  2023-03-22  9:11   ` Andrew Tropin
  2023-03-22  7:50 ` [bug#62166] [PATCH 1/2] gnu: Add python-clickgen Andrew Tropin
  1 sibling, 1 reply; 4+ messages in thread
From: conses @ 2023-03-13 18:43 UTC (permalink / raw)
  To: 62166; +Cc: contact

* gnu/packages/gnome-xyz.scm (bibata-cursor-theme): New variable.
---
 gnu/packages/gnome-xyz.scm | 50 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 49 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm
index 19838c3dd5..a7414d09ee 100644
--- a/gnu/packages/gnome-xyz.scm
+++ b/gnu/packages/gnome-xyz.scm
@@ -320,6 +320,54 @@ (define-public flat-remix-gnome-theme
 highlights, and gradients for some depth.")
     (license license:gpl3+)))
 
+(define-public bibata-cursor-theme
+  (package
+    (name "bibata-cursor-theme")
+    (version "2.0.3")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/ful1e5/Bibata_Cursor")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1bhspswgxizc4sr2bihfjic8wm4khd6waw9qgw0yssfy0fm3nafc"))))
+    (build-system trivial-build-system)
+    (native-inputs (list python-attrs python-clickgen))
+    (arguments
+     (list
+      #:modules '((guix build utils))
+      #:builder
+      #~(begin
+          (use-modules (guix build utils))
+          (let ((themes-dir (string-append #$output "/share/icons")))
+            (mkdir-p themes-dir)
+            (let loop
+                ((themes '(("Bibata-Modern-Amber" . "Yellowish and rounded")
+                           ("Bibata-Modern-Classic" . "Black and rounded")
+                           ("Bibata-Modern-Ice" . "White and rounded")
+                           ("Bibata-Original-Amber" . "Yellowish and sharp")
+                           ("Bibata-Original-Classic" . "Black and sharp")
+                           ("Bibata-Original-Ice" . "White and sharp"))))
+              (define theme
+                (car themes))
+              (invoke #$(file-append python-clickgen "/bin/ctgen")
+                      (string-append #$source "/build.toml")
+                      "-p" "x11"
+                      "-d" (string-append #$source "/bitmaps/" (car theme))
+                      "-n" (car theme)
+                      "-c" (string-append (cdr theme) " edge Bibata cursors")
+                      "-o" themes-dir)
+              (unless (null? (cdr themes))
+                (loop (cdr themes))))))))
+    (home-page "https://github.com/ful1e5/Bibata_Cursor")
+    (synopsis "Open-source, compact, and material-designed cursor set")
+    (description
+     "Bibata is an open-source, compact, and material designed
+cursor set.  This project aims at improving the cursor experience.")
+    (license license:gpl3)))
+
 (define-public gnome-plots
   (package
     (name "gnome-plots")
@@ -1690,7 +1738,7 @@ (define-public yaru-theme
  sound themes.
 @end itemize")
     (license (list license:lgpl2.1 license:lgpl3 license:cc-by-sa4.0))))
-  
+
 (define-public nordic-theme
   (let ((commit "07d764c5ebd5706e73d2e573f1a983e37b318915")
 	(revision "0"))
-- 
2.39.1



-- 
Best regards,
conses




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

* [bug#62166] [PATCH 1/2] gnu: Add python-clickgen.
  2023-03-13 18:41 [bug#62166] [PATCH 1/2] gnu: Add python-clickgen conses
  2023-03-13 18:43 ` [bug#62166] [PATCH 2/2] gnu: Add bibata-cursor-theme conses
@ 2023-03-22  7:50 ` Andrew Tropin
  1 sibling, 0 replies; 4+ messages in thread
From: Andrew Tropin @ 2023-03-22  7:50 UTC (permalink / raw)
  To: conses, 62166; +Cc: contact

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

On 2023-03-13 19:41, conses wrote:

> * gnu/packages/python-xyz.scm (python-clickgen): New variable.
> ---
>  gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
>
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
> index 83f3ec02ea..10c2ca3019 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -3802,6 +3802,28 @@ (define-public python-click-7
>          (base32 "06kbzd6sjfkqan3miwj9wqyddfxc2b6hi7p5s4dvqjb3gif2bdfj"))))
>      (arguments `())))
>  
> +(define-public python-clickgen
> +  (package
> +    (name "python-clickgen")
> +    (version "2.1.3")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (pypi-uri "clickgen" version))
> +              (sha256
> +               (base32
> +                "010j9zz0gd2za5l4hibicypnfw721x0gxp3rr0329bc97vw5maha"))))
> +    (build-system python-build-system)
> +    (propagated-inputs
> +     (list python-pillow python-toml python-numpy-next python-attrs))
> +    (inputs (list libx11 libpng libxcursor))
> +    (native-inputs (list python-setuptools python-wheel))

Removed python-setuptools from inputs.

> +    (home-page "https://github.com/ful1e5/clickgen")
> +    (synopsis "The hassle-free cursor building toolbox")
> +    (description
> +     "clickgen is an API for building X11 and Windows cursors from .png files.

Capitalized the description.

> +clickgen is using @code{anicursorgen} and @code{xcursorgen} under the hood.")
> +    (license license:expat)))
> +
>  (define-public python-cligj
>    (package
>      (name "python-cligj")
> -- 
> 2.39.1

Thank you for the patch, applied.

-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* [bug#62166] [PATCH 2/2] gnu: Add bibata-cursor-theme.
  2023-03-13 18:43 ` [bug#62166] [PATCH 2/2] gnu: Add bibata-cursor-theme conses
@ 2023-03-22  9:11   ` Andrew Tropin
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Tropin @ 2023-03-22  9:11 UTC (permalink / raw)
  To: conses, 62166; +Cc: contact

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

On 2023-03-13 19:43, conses wrote:

> * gnu/packages/gnome-xyz.scm (bibata-cursor-theme): New variable.
> ---
>  gnu/packages/gnome-xyz.scm | 50 +++++++++++++++++++++++++++++++++++++-
>  1 file changed, 49 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm
> index 19838c3dd5..a7414d09ee 100644
> --- a/gnu/packages/gnome-xyz.scm
> +++ b/gnu/packages/gnome-xyz.scm
> @@ -320,6 +320,54 @@ (define-public flat-remix-gnome-theme
>  highlights, and gradients for some depth.")
>      (license license:gpl3+)))
>  
> +(define-public bibata-cursor-theme
> +  (package
> +    (name "bibata-cursor-theme")
> +    (version "2.0.3")
> +    (source (origin
> +              (method git-fetch)
> +              (uri (git-reference
> +                    (url "https://github.com/ful1e5/Bibata_Cursor")
> +                    (commit (string-append "v" version))))
> +              (file-name (git-file-name name version))
> +              (sha256
> +               (base32
> +                "1bhspswgxizc4sr2bihfjic8wm4khd6waw9qgw0yssfy0fm3nafc"))))
> +    (build-system trivial-build-system)
> +    (native-inputs (list python-attrs python-clickgen))
> +    (arguments
> +     (list
> +      #:modules '((guix build utils))
> +      #:builder
> +      #~(begin
> +          (use-modules (guix build utils))
> +          (let ((themes-dir (string-append #$output "/share/icons")))
> +            (mkdir-p themes-dir)
> +            (let loop
> +                ((themes '(("Bibata-Modern-Amber" . "Yellowish and rounded")
> +                           ("Bibata-Modern-Classic" . "Black and rounded")
> +                           ("Bibata-Modern-Ice" . "White and rounded")
> +                           ("Bibata-Original-Amber" . "Yellowish and sharp")
> +                           ("Bibata-Original-Classic" . "Black and sharp")
> +                           ("Bibata-Original-Ice" . "White and sharp"))))
> +              (define theme
> +                (car themes))
> +              (invoke #$(file-append python-clickgen "/bin/ctgen")

Changed it to
(search-input-file %build-inputs "/bin/ctgen")

> +                      (string-append #$source "/build.toml")
> +                      "-p" "x11"
> +                      "-d" (string-append #$source "/bitmaps/" (car theme))
> +                      "-n" (car theme)
> +                      "-c" (string-append (cdr theme) " edge Bibata cursors")
> +                      "-o" themes-dir)
> +              (unless (null? (cdr themes))
> +                (loop (cdr themes))))))))
> +    (home-page "https://github.com/ful1e5/Bibata_Cursor")
> +    (synopsis "Open-source, compact, and material-designed cursor set")
> +    (description
> +     "Bibata is an open-source, compact, and material designed
> +cursor set.  This project aims at improving the cursor experience.")
> +    (license license:gpl3)))
> +
>  (define-public gnome-plots
>    (package
>      (name "gnome-plots")
> @@ -1690,7 +1738,7 @@ (define-public yaru-theme
>   sound themes.
>  @end itemize")
>      (license (list license:lgpl2.1 license:lgpl3 license:cc-by-sa4.0))))
> -  
> +
>  (define-public nordic-theme
>    (let ((commit "07d764c5ebd5706e73d2e573f1a983e37b318915")
>  	(revision "0"))
> -- 
> 2.39.1

Thank you for the patch! Applied, pushed as ac64367262.
-- 
Best regards,
Andrew Tropin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

end of thread, other threads:[~2023-03-22  9:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-13 18:41 [bug#62166] [PATCH 1/2] gnu: Add python-clickgen conses
2023-03-13 18:43 ` [bug#62166] [PATCH 2/2] gnu: Add bibata-cursor-theme conses
2023-03-22  9:11   ` Andrew Tropin
2023-03-22  7:50 ` [bug#62166] [PATCH 1/2] gnu: Add python-clickgen Andrew Tropin

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