File: Move-sass-compilation-to-its-own-custom-target-so-it-show.patch

package info (click to toggle)
cinnamon 6.4.13-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 13,300 kB
  • sloc: javascript: 54,298; ansic: 51,499; python: 21,971; xml: 2,803; sh: 96; makefile: 27; perl: 13
file content (63 lines) | stat: -rw-r--r-- 1,959 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
From: Matt Turnbull <SparkyBluefang@users.noreply.github.com>
Date: Thu, 16 Jan 2025 09:22:11 -0500
Subject: Move sass compilation to its own custom target so it shows up in the
 build log. Support both pysassc and sassc. (#12588)

---
 data/meson.build                     |  3 +--
 data/theme/cinnamon-sass/meson.build | 11 +++++++++++
 data/theme/meson.build               |  4 +---
 data/theme/parse-sass.sh             |  3 ---
 4 files changed, 13 insertions(+), 8 deletions(-)
 create mode 100644 data/theme/cinnamon-sass/meson.build
 delete mode 100755 data/theme/parse-sass.sh

diff --git a/data/meson.build b/data/meson.build
index dba549d..2235c38 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -11,8 +11,7 @@ install_subdir(
     'theme',
     exclude_files: [
         'theme-changelog.txt',
-        'meson.build',
-        'parse-sass.sh'
+        'meson.build'
     ],
     exclude_directories: ['cinnamon-sass'],
     install_dir: pkgdatadir,
diff --git a/data/theme/cinnamon-sass/meson.build b/data/theme/cinnamon-sass/meson.build
new file mode 100644
index 0000000..5e97fa9
--- /dev/null
+++ b/data/theme/cinnamon-sass/meson.build
@@ -0,0 +1,11 @@
+sassc = find_program('pysassc', 'sassc')
+
+custom_target(
+  'cinnamon_css',
+  input: 'cinnamon.scss',
+  output: 'cinnamon.css',
+  command: [sassc, '@INPUT@', '@OUTPUT@'],
+  build_always_stale: true,
+  install: true,
+  install_dir: join_paths(pkgdatadir, 'theme')
+)
diff --git a/data/theme/meson.build b/data/theme/meson.build
index b02e5c1..4e34cc4 100644
--- a/data/theme/meson.build
+++ b/data/theme/meson.build
@@ -1,3 +1 @@
-sassc = find_program('pysassc')
-
-run_command('parse-sass.sh', check: true)
+subdir('cinnamon-sass')
diff --git a/data/theme/parse-sass.sh b/data/theme/parse-sass.sh
deleted file mode 100755
index 3313971..0000000
--- a/data/theme/parse-sass.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#! /bin/bash
-
-pysassc ./cinnamon-sass/cinnamon.scss cinnamon.css