GNU bug report logs - #38095
[PATCH] gnu: Add matcha-theme.

Previous Next

Package: guix-patches;

Reported by: Alexandros Theodotou <alex <at> zrythm.org>

Date: Thu, 7 Nov 2019 06:29:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Alexandros Theodotou <alex <at> zrythm.org>
Subject: bug#38095: closed (Re: [bug#38095] [PATCH] gnu: Add matcha-theme.)
Date: Sat, 09 Nov 2019 21:48:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#38095: [PATCH] gnu: Add matcha-theme.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 38095 <at> debbugs.gnu.org.

-- 
38095: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38095
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: Leo Prikler <leo.prikler <at> student.tugraz.at>
Cc: alex <at> zrythm.org, 38095-done <at> debbugs.gnu.org
Subject: Re: [bug#38095] [PATCH] gnu: Add matcha-theme.
Date: Sat, 09 Nov 2019 22:47:17 +0100
Hi Leo and Alexandros,

I changed the license to ‘gpl3+’ (was ‘gpl3’) because the package does
not mandate any specific version, and applied the patch.

Thanks to both of you for your work!

Ludo’.

[Message part 3 (message/rfc822, inline)]
From: Alexandros Theodotou <alex <at> zrythm.org>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add matcha-theme.
Date: Thu, 07 Nov 2019 07:02:06 +0100
From c3dcea272a6600263cc806b64331b3d68d881b9c Mon Sep 17 00:00:00 2001
From: Alexandros Theodotou <alex <at> zrythm.org>
Date: Thu, 7 Nov 2019 05:37:42 +0000
Subject: [PATCH] gnu: Add matcha-theme.

* gnu/packages/matcha-theme.scm (matcha-theme): New variable.
---
 gnu/packages/matcha-theme.scm | 76 +++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)
 create mode 100644 gnu/packages/matcha-theme.scm

diff --git a/gnu/packages/matcha-theme.scm 
b/gnu/packages/matcha-theme.scm
new file mode 100644
index 0000000000..1eaf1659a7
--- /dev/null
+++ b/gnu/packages/matcha-theme.scm
@@ -0,0 +1,76 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2019 Alexandros Theodotou <alex <at> zrythm.org>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or 
(at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+(define-module (matcha-theme)
+  #:use-module (guix licenses)
+  #:use-module (guix packages)
+  #:use-module (guix download)
+  #:use-module (guix build-system trivial)
+  #:use-module (gnu packages base)
+  #:use-module (gnu packages bash)
+  #:use-module (gnu packages compression))
+
+(define-public matcha-theme
+  (package
+   (name "matcha-theme")
+   (version "2019-11-02")
+   (source (origin
+            (method url-fetch)
+            (uri (string-append 
"https://github.com/vinceliuice/matcha/archive/" version
+                                ".tar.gz"))
+            (sha256
+             (base32
+              
"0vv16lxrfin187rbn844hfkrg3368in1wmmnygsnag8k2pzhw1a4"))))
+   (build-system trivial-build-system)
+   (outputs '("out"))
+   (arguments
+    '(#:modules ((guix build utils))
+      #:builder
+      (begin
+        (use-modules (guix build utils))
+        (let* ((out (assoc-ref %outputs "out"))
+               (source (assoc-ref %build-inputs "source"))
+               (tar (assoc-ref %build-inputs "tar"))
+               (bash (assoc-ref %build-inputs "bash"))
+               (gzip (assoc-ref %build-inputs "gzip"))
+               (coreutils (assoc-ref %build-inputs "coreutils"))
+               (themesdir (string-append out "/share/themes")))
+          ;; set PATH so we can use tar and the install script can find 
coreutils
+          (setenv "PATH" (string-append tar "/bin:"
+                                        (string-append gzip "/bin:")
+                                        (string-append coreutils 
"/bin:")))
+          ;; untar
+          (invoke "tar" "xf" source)
+          (chdir "matcha-2019-11-02")
+          ;; replace shebang
+          (substitute* "Install" (("/bin/bash") (string-append bash 
"/bin/bash")))
+          ;; install
+          (mkdir-p themesdir)
+          (invoke (string-append bash "/bin/bash") "-c"
+                  (string-append "./Install -d " themesdir))))))
+   (native-inputs
+    `(("tar", tar)
+      ("bash", bash)
+      ("coreutils", coreutils)
+      ("gzip", gzip)))
+   (synopsis "Flat design theme for GTK 3, GTK 2 and GNOME-Shell")
+   (description
+    "Matcha is a flat Design theme for GTK 3, GTK 2 and Gnome-Shell
+which supports GTK 3 and GTK 2 based desktop environments
+like Gnome, Unity, Budgie, Pantheon, XFCE, Mate and others.")
+   (home-page "https://github.com/vinceliuice/matcha")
+   (license gpl3)))
-- 
2.24.0



This bug report was last modified 5 years and 197 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.