From 35504d91654321ff2b378229ff13150f53d5aad2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:49:37 +0200 Subject: Adding upstream version 43.0. Signed-off-by: Daniel Baumann --- meson_post_install.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 meson_post_install.py (limited to 'meson_post_install.py') diff --git a/meson_post_install.py b/meson_post_install.py new file mode 100644 index 0000000..27017f6 --- /dev/null +++ b/meson_post_install.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python3 + +import os +import shutil +import subprocess +import sys + +if os.environ.get('DESTDIR'): + install_root = os.environ.get('DESTDIR') + os.path.abspath(sys.argv[1]) +else: + install_root = sys.argv[1] + +if not os.environ.get('DESTDIR'): + schemadir = os.path.join(install_root, 'glib-2.0', 'schemas') + print('Compile gsettings schemas...') + subprocess.call(['glib-compile-schemas', schemadir]) + +# FIXME: Meson is unable to copy a generated target file: +# https://groups.google.com/forum/#!topic/mesonbuild/3iIoYPrN4P0 +dst_dir = os.path.join(install_root, 'wayland-sessions') +if not os.path.exists(dst_dir): + os.makedirs(dst_dir) + +src = os.path.join(install_root, 'xsessions', 'gnome.desktop') +dst = os.path.join(dst_dir, 'gnome.desktop') +shutil.copyfile(src, dst) -- cgit v1.2.3