[gnome-tweak-tool/tingping: 1/2] build: Have installed scripts respect python version
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweak-tool/tingping: 1/2] build: Have installed scripts respect python version
- Date: Wed, 19 Jul 2017 19:22:59 +0000 (UTC)
commit 1d65d3660a01a1d1f473f1c4b275c6c7fefb4c31
Author: Patrick Griffis <tingping tingping se>
Date: Wed Jun 7 19:06:09 2017 -0400
build: Have installed scripts respect python version
https://bugzilla.gnome.org/show_bug.cgi?id=783531
...-inhibitor => gnome-tweak-tool-lid-inhibitor.in | 2 +-
gnome-tweak-tool => gnome-tweak-tool.in | 2 +-
meson.build | 20 ++++++++++++++++++--
3 files changed, 20 insertions(+), 4 deletions(-)
---
diff --git a/gnome-tweak-tool-lid-inhibitor b/gnome-tweak-tool-lid-inhibitor.in
similarity index 98%
rename from gnome-tweak-tool-lid-inhibitor
rename to gnome-tweak-tool-lid-inhibitor.in
index 8d67210..7a48f6b 100755
--- a/gnome-tweak-tool-lid-inhibitor
+++ b/gnome-tweak-tool-lid-inhibitor.in
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!@PYTHON@
import gi
gi.require_version("GLib", "2.0")
diff --git a/gnome-tweak-tool b/gnome-tweak-tool.in
similarity index 99%
rename from gnome-tweak-tool
rename to gnome-tweak-tool.in
index ff3461a..015395c 100755
--- a/gnome-tweak-tool
+++ b/gnome-tweak-tool.in
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!@PYTHON@
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/meson.build b/meson.build
index d973c99..752d32e 100644
--- a/meson.build
+++ b/meson.build
@@ -31,8 +31,24 @@ gtk_dep = dependency('gtk+-3.0', version: gtk_req)
pygobject_dep = dependency('pygobject-3.0', version: pygobject_req)
schemas_dep = dependency('gsettings-desktop-schemas', version: schemas_req)
-install_data('gnome-tweak-tool', install_dir: bindir)
-install_data('gnome-tweak-tool-lid-inhibitor', install_dir: libexecdir)
+conf = configuration_data()
+conf.set('PYTHON', python3.find_python().path())
+
+configure_file(
+ input: 'gnome-tweak-tool.in',
+ output: 'gnome-tweak-tool',
+ configuration: conf,
+ install: true,
+ install_dir: bindir,
+)
+
+configure_file(
+ input: 'gnome-tweak-tool-lid-inhibitor.in',
+ output: 'gnome-tweak-tool-lid-inhibitor',
+ configuration: conf,
+ install: true,
+ install_dir: libexecdir,
+)
subdir('gtweak')
subdir('data')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]