unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Prafulla Giri <pratheblackdiamond@gmail.com>
To: 43198@debbugs.gnu.org
Subject: [bug#43198] Add breeze icon assets
Date: Fri, 4 Sep 2020 14:07:27 +0545	[thread overview]
Message-ID: <CAFw+=j1+2NZqGtOSGsvGKaZgpLe6CcEcCkxa07rZm3oJ8=pKtA@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2162 bytes --]

Esteemed maintainers,

I submit the following two patches to you for review.

They add breeze-assets and breeze packages.

Currently, guix only has `breeze-icons`, and this package only supplies the
icons, and not the entire breeze theme.

I have, however, a few concerns/comments regarding the patches.

# Regarding the first patch:
1. Regarding `breeze-assets`, I am not entirely sure if that is the right
name for the package. If there are any better suggestions, perhaps it
should be changed (?)
2. The `breeze-assets` package inheriting from `breeze-icons` package is
intentional: so as to show the relationship. I started with `guix
environment breeze-icons --ad-hoc stuffs` to package breeze-assets,
anyways. I think this makes it more read-able. (Can we keep it, please?)
3. I could not really find a proper home-page for the package.
4. I wonder if there should be better synopsis/description? But I'm not
sure. But if I get an 'it's all right', I'd like to run with it as-is,
please.

# Regarding the second patch:
1. I intentionally used (inherit, again, and used (@ to inherit from
mate.scm. Probably a bad idea. And it got me thinking, since union-builds
aren't all that common yet, perhaps a boilerplate union-build package could
be created. I saw that `mate` and `xfce` use almost identical package
definitions. Perhaps abstracting that away into some hidden package like
(@@ (guix some place) union-build-boilerplate) or something would keep us
from repeating ourselves? I understand that inheriting from something from
an entirely different desktop-environment might be too much spaghetti code.
And I am in favour of changing this. However, I send this patch in as a
sample of how having union-build boilerplate might help us.
2. I am not entirely certain what the version number should be. It seems
`breeze-icons` and `breeze-assets` differ in their latest version. But
since `breeze-assets` is the bigger of the two packages, I decided to go
with `breeze-assets`'s version number.

I hope to learn a lot from the review of these patches, and will try to
send updated/polished patches - as per the reviews - as promptly as
possible.

Thank you

[-- Attachment #1.2: Type: text/html, Size: 2495 bytes --]

[-- Attachment #2: 0001-gnu-kde-frameworks-Add-breeze-assets.patch --]
[-- Type: text/x-patch, Size: 2306 bytes --]

From ac4c48493cff931d8f04abf8f52236e49bc818ae Mon Sep 17 00:00:00 2001
From: Prafulla Giri <pratheblackdiamond@gmail.com>
Date: Fri, 4 Sep 2020 12:56:26 +0545
Subject: [PATCH 1/2] gnu: kde-frameworks: Add breeze-assets

* gnu/packages/kde-frameworks.scm (breeze-assets): New variable.
---
 gnu/packages/kde-frameworks.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index a1abd7d46c..7fd17d92b7 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -57,6 +57,7 @@
   #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages image)
   #:use-module (gnu packages kerberos)
+  #:use-module (gnu packages kde-plasma)
   #:use-module (gnu packages libreoffice)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages mp3)
@@ -325,6 +326,35 @@ It is the default icon theme for the KDE Plasma 5 desktop.")
     ;; text.
     (license license:lgpl3+)))
 
+(define-public breeze-assets
+  (package (inherit breeze-icons)
+           (name "breeze-assets")
+           (version "5.19.5")
+           (source (origin
+                     (method url-fetch)
+                     (uri (string-append
+                           "https://codeload.github.com/KDE/breeze/tar.gz/v"
+                           version))
+                     (sha256
+                      (base32
+                       "12ffrm0nrhi2avq2z7jx3pdp0zgsxsary7gpfp60vvxs1jrvnk1b"))))
+           (inputs
+            `(,@(package-inputs breeze-icons)
+              ("ki18n" ,ki18n)
+              ("kpackage" ,kpackage)
+              ("kguiaddons" ,kguiaddons)
+              ("kdecoration" ,kdecoration)
+              ("kcoreaddons" ,kcoreaddons)
+              ("kiconthemes" ,kiconthemes)
+              ("kwindowsystem" ,kwindowsystem)
+              ("kconfigwidgets" ,kconfigwidgets)
+              ("qtx11extras" ,qtx11extras)))
+           (home-page "https://github.com/KDE/breeze")
+           (synopsis "Artwork, styles and assets for the Breeze visual style")
+           (description "Artwork, styles and assets associated with the Breeze
+visual style.")
+           (license license:gpl2)))
+
 (define-public kapidox
   (package
     (name "kapidox")
-- 
2.28.0


[-- Attachment #3: 0002-gnu-kde-frameworks-Add-breeze.patch --]
[-- Type: text/x-patch, Size: 1402 bytes --]

From 468f64cd140bf38b6142fa0e4e1d6cae22c2b8df Mon Sep 17 00:00:00 2001
From: Prafulla Giri <pratheblackdiamond@gmail.com>
Date: Fri, 4 Sep 2020 12:59:28 +0545
Subject: [PATCH 2/2] gnu: kde-frameworks: Add breeze

* gnu/packages/kde-frameworks.scm (breeze): New variable.
---
 gnu/packages/kde-frameworks.scm | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 7fd17d92b7..2ff90fb915 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -355,6 +355,20 @@ It is the default icon theme for the KDE Plasma 5 desktop.")
 visual style.")
            (license license:gpl2)))
 
+(define-public breeze
+  (package (inherit (@ (gnu packages mate) mate)) ;; union-build boilerplate
+           (name "breeze")
+           (version (package-version breeze-assets))
+           (native-inputs '()) ;; over-write inherited native-inputs
+           (inputs
+            `(("breeze-icons" ,breeze-icons)
+              ("breeze-assets" ,breeze-assets)))
+           (home-page "https://github.com/KDE/breeze-icons")
+           (synopsis "Full Breeze Theme")
+           (description "The full Breeze icon theme: a union-build of
+breeze-assets and breeze-icons.")
+           (license (list license:gpl2 license:gpl3+))))
+
 (define-public kapidox
   (package
     (name "kapidox")
-- 
2.28.0


             reply	other threads:[~2020-09-04  8:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-04  8:22 Prafulla Giri [this message]
2020-09-04  9:29 ` [bug#43198] Add breeze icon assets Ludovic Courtès
     [not found]   ` <CAFw+=j2GyvfVWw-qsR1ju4+CEVAzhfP7p6hociAfF1YcBDOuSg@mail.gmail.com>
2020-09-04 11:00     ` [bug#43198] Fwd: " Prafulla Giri
2020-09-07  8:06     ` Ludovic Courtès
2020-09-08 11:11       ` Prafulla Giri
2020-09-08 11:25         ` [bug#43198] Fwd: " Prafulla Giri
2020-09-09  7:26         ` bug#43198: " Ludovic Courtès
2020-09-09  8:27           ` [bug#43198] " Prafulla Giri
2020-10-26 19:07 ` [bug#43198] Questions about "Add breeze icon assets" Hartmut Goebel
2020-10-27  4:35   ` Prafulla Giri

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='CAFw+=j1+2NZqGtOSGsvGKaZgpLe6CcEcCkxa07rZm3oJ8=pKtA@mail.gmail.com' \
    --to=pratheblackdiamond@gmail.com \
    --cc=43198@debbugs.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).