Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-themes/numix-gtk-theme/, x11-themes/numix-gtk-theme/files/
Date: Fri, 29 May 2020 13:35:05
Message-Id: 1590759275.76e2dd7a60b5b6be7ba51ba1d252db29a194aced.juippis@gentoo
1 commit: 76e2dd7a60b5b6be7ba51ba1d252db29a194aced
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 29 13:31:28 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri May 29 13:34:35 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76e2dd7a
7
8 x11-themes/numix-gtk-theme: replace dev-ruby/sassc with dev-lang/sassc
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 ....7-replace-ruby-sassc-with-dev-lang-sassc.patch | 79 ++++++++++++++++++++++
13 .../numix-gtk-theme-2.6.7-r2.ebuild | 22 ++++++
14 2 files changed, 101 insertions(+)
15
16 diff --git a/x11-themes/numix-gtk-theme/files/numix-gtk-theme-2.6.7-replace-ruby-sassc-with-dev-lang-sassc.patch b/x11-themes/numix-gtk-theme/files/numix-gtk-theme-2.6.7-replace-ruby-sassc-with-dev-lang-sassc.patch
17 new file mode 100644
18 index 00000000000..85dffd57650
19 --- /dev/null
20 +++ b/x11-themes/numix-gtk-theme/files/numix-gtk-theme-2.6.7-replace-ruby-sassc-with-dev-lang-sassc.patch
21 @@ -0,0 +1,79 @@
22 +From 08b43b716a44e91f94e66135266cf2ad729a7821 Mon Sep 17 00:00:00 2001
23 +From: KTB <ktb83@××××××××××××××××××××.com>
24 +Date: Fri, 15 Nov 2019 07:56:27 -0500
25 +Subject: [PATCH 1/3] Updates Makefile to replace Ruby Sass with SassC
26 +
27 +This commit replaces the use of the Ruby Sass scss command with SassC's sassc command. Due to the more limited functionality of sassc, output directories must be created prior to running the command and only one file may be processed at a time unlike the many-to-many mode functionality of the scss command.
28 +---
29 + Makefile | 12 ++++++++----
30 + 1 file changed, 8 insertions(+), 4 deletions(-)
31 +
32 +diff --git a/Makefile b/Makefile
33 +index d2735a91..c580a2a7 100755
34 +--- a/Makefile
35 ++++ b/Makefile
36 +@@ -1,5 +1,5 @@
37 +-SASS=scss
38 +-SASSFLAGS=--sourcemap=none
39 ++SASS=sassc
40 ++SASSFLAGS=-M -t expanded
41 + GLIB_COMPILE_RESOURCES=glib-compile-resources
42 + RES_DIR=src/gtk-3.0
43 + SCSS_DIR=$(RES_DIR)/scss
44 +@@ -14,8 +14,12 @@ UTILS=scripts/utils.sh
45 + all: clean gresource
46 +
47 + css:
48 +- $(SASS) --update $(SASSFLAGS) $(SCSS_DIR):$(DIST_DIR)
49 +- $(SASS) --update $(SASSFLAGS) $(SCSS_DIR320):$(DIST_DIR320)
50 ++ mkdir $(DIST_DIR)
51 ++ $(SASS) $(SASSFLAGS) $(SCSS_DIR)/gtk.scss $(DIST_DIR)/gtk.css
52 ++ $(SASS) $(SASSFLAGS) $(SCSS_DIR)/gtk-dark.scss $(DIST_DIR)/gtk-dark.css
53 ++ mkdir $(DIST_DIR320)
54 ++ $(SASS) $(SASSFLAGS) $(SCSS_DIR320)/gtk.scss $(DIST_DIR320)/gtk.css
55 ++ $(SASS) $(SASSFLAGS) $(SCSS_DIR320)/gtk-dark.scss $(DIST_DIR320)/gtk-dark.css
56 +
57 + gresource: css
58 + $(GLIB_COMPILE_RESOURCES) --sourcedir=$(RES_DIR) $(RES_DIR)/gtk.gresource.xml
59 +
60 +From 6ba019fae4b8c90ed721dfe2dad279752f454968 Mon Sep 17 00:00:00 2001
61 +From: KTB <ktb83@××××××××××××××××××××.com>
62 +Date: Fri, 15 Nov 2019 08:19:32 -0500
63 +Subject: [PATCH 2/3] Makes import directive relative in _gnome-terminal.scss
64 +
65 +This commit changes the "widgets/button" import directive to be relative in the gtk-3.20 _gnome-terminal.scss file which is necessary when using SassC.
66 +---
67 + src/gtk-3.20/scss/apps/_gnome-terminal.scss | 2 +-
68 + 1 file changed, 1 insertion(+), 1 deletion(-)
69 +
70 +diff --git a/src/gtk-3.20/scss/apps/_gnome-terminal.scss b/src/gtk-3.20/scss/apps/_gnome-terminal.scss
71 +index fd3af1c5..704faf5d 100644
72 +--- a/src/gtk-3.20/scss/apps/_gnome-terminal.scss
73 ++++ b/src/gtk-3.20/scss/apps/_gnome-terminal.scss
74 +@@ -1,4 +1,4 @@
75 +-@import "widgets/button";
76 ++@import "../widgets/button";
77 +
78 + /**********************
79 + ! Genome Terminal *
80 +
81 +From 0d3fd3f2ce5e5e7079b8a87ee3ddbf5d8923c67b Mon Sep 17 00:00:00 2001
82 +From: KTB <ktb83@××××××××××××××××××××.com>
83 +Date: Thu, 12 Dec 2019 23:46:09 -0500
84 +Subject: [PATCH 3/3] Removes import directive in _gnome-terminal.scss
85 +
86 +This commit removes the "widgets/button" import directive in the gtk-3.20 _gnome-terminal.scss file which is unnecessary.
87 +---
88 + src/gtk-3.20/scss/apps/_gnome-terminal.scss | 2 --
89 + 1 file changed, 2 deletions(-)
90 +
91 +diff --git a/src/gtk-3.20/scss/apps/_gnome-terminal.scss b/src/gtk-3.20/scss/apps/_gnome-terminal.scss
92 +index 704faf5d..6e9ee4e4 100644
93 +--- a/src/gtk-3.20/scss/apps/_gnome-terminal.scss
94 ++++ b/src/gtk-3.20/scss/apps/_gnome-terminal.scss
95 +@@ -1,5 +1,3 @@
96 +-@import "../widgets/button";
97 +-
98 + /**********************
99 + ! Genome Terminal *
100 + ***********************/
101
102 diff --git a/x11-themes/numix-gtk-theme/numix-gtk-theme-2.6.7-r2.ebuild b/x11-themes/numix-gtk-theme/numix-gtk-theme-2.6.7-r2.ebuild
103 new file mode 100644
104 index 00000000000..23c7381147d
105 --- /dev/null
106 +++ b/x11-themes/numix-gtk-theme/numix-gtk-theme-2.6.7-r2.ebuild
107 @@ -0,0 +1,22 @@
108 +# Copyright 1999-2020 Gentoo Authors
109 +# Distributed under the terms of the GNU General Public License v2
110 +
111 +EAPI=7
112 +
113 +DESCRIPTION="A modern flat theme with a combination of light and dark elements"
114 +HOMEPAGE="https://github.com/numixproject/numix-gtk-theme"
115 +SRC_URI="https://github.com/numixproject/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
116 +
117 +LICENSE="GPL-3"
118 +SLOT="0"
119 +KEYWORDS="~amd64 ~x86"
120 +
121 +RDEPEND="dev-libs/libxml2:2
122 + x11-libs/gtk+:3
123 + x11-themes/gtk-engines-murrine"
124 +DEPEND="${RDEPEND}
125 + dev-libs/glib:2
126 + x11-libs/gdk-pixbuf:2"
127 +BDEPEND="dev-lang/sassc"
128 +
129 +PATCHES=( "${FILESDIR}/${P}-replace-ruby-sassc-with-dev-lang-sassc.patch" )