[gimp/meson: 29/127] Fix themes : rename dirs, remove find call.



commit d4fdf95f588d5b46452044bcd5498786b08a2e57
Author: Félix Piédallu <felix piedallu me>
Date:   Fri Nov 17 11:38:20 2017 +0100

    Fix themes : rename dirs, remove find call.

 themes/meson.build |   30 +++++++++++++++++-------------
 1 files changed, 17 insertions(+), 13 deletions(-)
---
diff --git a/themes/meson.build b/themes/meson.build
index 6598f67..a161d96 100644
--- a/themes/meson.build
+++ b/themes/meson.build
@@ -1,21 +1,25 @@
-themes = run_command('find',
-  meson.current_source_dir(),
-  '-maxdepth', '1',
-  '-mindepth', '1',
-  '-type', 'd',
-  '-printf', '%f\n'
-).stdout().strip().split('\n')
 
-foreach theme : themes
+theme_names = [
+  [ 'Lighter',  '00-Lighter' ],
+  [ 'Light',    '01-Light' ],
+  [ 'Gray',     '02-Gray' ],
+  [ 'Dark',     '03-Dark' ],
+  [ 'Darker',   '04-Darker' ],
+  [ 'System',   'System' ],
+]
+
+foreach theme : theme_names
+  theme_srcdir = theme[0]
+  theme_bindir = theme[1]
   install_data(
-    join_paths(theme, 'gtkrc'),
-    install_dir: join_paths(datadir, 'themes', theme)
+    join_paths(theme_srcdir, 'gtkrc'),
+    install_dir: join_paths(gimpdatadir, 'themes', theme_bindir)
   )
 
-  if run_command('[', '-d', join_paths(theme, 'ui'), ']').returncode() == 0
+  if run_command('[', '-d', join_paths(theme_srcdir, 'ui'), ']').returncode() == 0
     install_subdir(
-      join_paths(theme, 'ui'),
-      install_dir: join_paths(datadir, 'themes', theme)
+      join_paths(theme_srcdir, 'ui'),
+      install_dir: join_paths(gimpdatadir, 'themes', theme_bindir)
     )
   endif
 endforeach


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]