From 3483886cf47199eaf3f11fb132605e7f39e9e12d Mon Sep 17 00:00:00 2001 From: Leo Prikler Date: Wed, 17 Feb 2021 11:16:40 +0100 Subject: gnu: Add orchis-theme. * gnu/packages/gnome-xyz.scm (orchis-theme): New variable. --- gnu/packages/gnome-xyz.scm | 58 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) (limited to 'gnu/packages/gnome-xyz.scm') diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm index aa7949478c..e481a10e11 100644 --- a/gnu/packages/gnome-xyz.scm +++ b/gnu/packages/gnome-xyz.scm @@ -781,6 +781,64 @@ dark elements. It supports GNOME, Unity, Xfce, and Openbox.") (define-public numix-theme (deprecated-package "numix-theme" numix-gtk-theme)) +(define-public orchis-theme + (package + (name "orchis-theme") + (version "2021-01-22") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vinceliuice/Orchis-theme") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1m0wilvrscg2xnkp6a90j0iccxd8ywvfpza1345sc6xmml9gvjzc")) + (modules '((guix build utils) + (ice-9 regex) + (srfi srfi-26))) + (snippet + '(begin + (for-each + (lambda (f) + (let* ((r (make-regexp "\\.scss")) + (f* (regexp-substitute #f (regexp-exec r f) 'pre ".css"))) + (if (file-exists? f*) + (delete-file f*)))) + (find-files "." ".*\\.scss")) + #t)))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ; no tests + #:phases + (modify-phases %standard-phases + (delete 'bootstrap) + (delete 'configure) + (replace 'build (lambda _ (invoke "./parse-sass.sh"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((themes (string-append (assoc-ref outputs "out") + "/share/themes"))) + (mkdir-p themes) + (invoke "./install.sh" "-d" themes) + #t)))))) + (inputs + `(("gtk-engines" ,gtk-engines))) + (native-inputs + `(;("coreutils" ,coreutils) + ("gtk+" ,gtk+) + ("sassc" ,sassc))) + (home-page "https://github.com/vinceliuice/Orchis-theme") + (synopsis "Material Design theme for a wide range of environments") + (description "Orchis is a Material Design them for GNOME/GTK based +desktop environments. It is based on materia-theme and adds more color +variants.") + (license (list license:gpl3 ; Claimed by README.md. + license:lgpl2.1 ; Some style sheets. + license:cc-by-sa4.0)))) ; Some icons + (define-public markets (package (name "markets") -- cgit v1.2.3 From 8a920dc6716599e58776d41f73b0aff4281530ed Mon Sep 17 00:00:00 2001 From: Leo Prikler Date: Sat, 6 Mar 2021 21:36:31 +0100 Subject: gnu: orchis-theme: Fix misleading comment. * gnu/packages/gnome-xyz.scm (orchis-theme)[license]: Adjust comment. --- gnu/packages/gnome-xyz.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/gnome-xyz.scm') diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm index e481a10e11..55af65b686 100644 --- a/gnu/packages/gnome-xyz.scm +++ b/gnu/packages/gnome-xyz.scm @@ -835,7 +835,7 @@ dark elements. It supports GNOME, Unity, Xfce, and Openbox.") (description "Orchis is a Material Design them for GNOME/GTK based desktop environments. It is based on materia-theme and adds more color variants.") - (license (list license:gpl3 ; Claimed by README.md. + (license (list license:gpl3 ; According to COPYING. license:lgpl2.1 ; Some style sheets. license:cc-by-sa4.0)))) ; Some icons -- cgit v1.2.3 From f4a435cccad892b8b7892ce9795e5cf039c1d2fe Mon Sep 17 00:00:00 2001 From: Leo Prikler Date: Sun, 7 Mar 2021 16:33:08 +0100 Subject: gnu: orchis-theme: Update to 2021-02-28. * gnu/packages/gnome-xyz.scm (orchis-theme): Update to 2021-02-28. --- gnu/packages/gnome-xyz.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/gnome-xyz.scm') diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm index 55af65b686..de43d255f0 100644 --- a/gnu/packages/gnome-xyz.scm +++ b/gnu/packages/gnome-xyz.scm @@ -784,7 +784,7 @@ dark elements. It supports GNOME, Unity, Xfce, and Openbox.") (define-public orchis-theme (package (name "orchis-theme") - (version "2021-01-22") + (version "2021-02-28") (source (origin (method git-fetch) @@ -795,7 +795,7 @@ dark elements. It supports GNOME, Unity, Xfce, and Openbox.") (file-name (git-file-name name version)) (sha256 (base32 - "1m0wilvrscg2xnkp6a90j0iccxd8ywvfpza1345sc6xmml9gvjzc")) + "1qp3phiza93qllrjm5xjjca5b7l2sbng8c382khy9m97grxvcq0y")) (modules '((guix build utils) (ice-9 regex) (srfi srfi-26))) -- cgit v1.2.3 From c4195a1078336281592394ff9585c85e8d2f6e6d Mon Sep 17 00:00:00 2001 From: Leo Prikler Date: Sun, 7 Mar 2021 16:33:24 +0100 Subject: gnu: orchis-theme: Build all versions. * gnu/packages/gnome-xyz.scm (orchis-theme)[arguments]: Add #:configure-flags. Use them in 'install phase. --- gnu/packages/gnome-xyz.scm | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'gnu/packages/gnome-xyz.scm') diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm index de43d255f0..f73001f64b 100644 --- a/gnu/packages/gnome-xyz.scm +++ b/gnu/packages/gnome-xyz.scm @@ -811,19 +811,25 @@ dark elements. It supports GNOME, Unity, Xfce, and Openbox.") #t)))) (build-system gnu-build-system) (arguments - '(#:tests? #f ; no tests + `(#:configure-flags (list + "--dest" (string-append + (assoc-ref %outputs "out") + "/share/themes") + "--theme" "all" + "--radio-color") + #:tests? #f ; no tests #:phases (modify-phases %standard-phases (delete 'bootstrap) (delete 'configure) (replace 'build (lambda _ (invoke "./parse-sass.sh"))) (replace 'install - (lambda* (#:key outputs #:allow-other-keys) - (let ((themes (string-append (assoc-ref outputs "out") - "/share/themes"))) - (mkdir-p themes) - (invoke "./install.sh" "-d" themes) - #t)))))) + (lambda* (#:key configure-flags #:allow-other-keys) + (mkdir-p + (cadr (or (member "--dest" configure-flags) + (member "-d" configure-flags)))) + (apply invoke "./install.sh" configure-flags) + #t))))) (inputs `(("gtk-engines" ,gtk-engines))) (native-inputs -- cgit v1.2.3