From ba429d344132c088177e853cce8ff7181570b221 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 19:42:51 +0200 Subject: Adding upstream version 44.2. Signed-off-by: Daniel Baumann --- build-aux/meson/post_install.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 build-aux/meson/post_install.py (limited to 'build-aux/meson/post_install.py') diff --git a/build-aux/meson/post_install.py b/build-aux/meson/post_install.py new file mode 100755 index 0000000..15b7838 --- /dev/null +++ b/build-aux/meson/post_install.py @@ -0,0 +1,30 @@ +#!/usr/bin/env python3 + +import os +import subprocess +import sys + +libdir = sys.argv[1] +datadir = sys.argv[2] + +# Packaging tools define DESTDIR and this isn't needed for them +if 'DESTDIR' not in os.environ: + print('Compiling gsettings schemas...') + subprocess.call(['glib-compile-schemas', + os.path.join(datadir, 'glib-2.0', 'schemas')]) + + print('Updating icon cache...') + subprocess.call(['gtk-update-icon-cache', '-qtf', + os.path.join(datadir, 'icons', 'hicolor')]) + + print('Updating desktop database...') + subprocess.call(['update-desktop-database', '-q', + os.path.join(datadir, 'applications')]) + + print('Compiling python modules...') + subprocess.call([sys.executable, '-m', 'compileall', '-f', '-q', + os.path.join(libdir, 'gedit', 'plugins')]) + + print('Compiling python modules (optimized versions) ...') + subprocess.call([sys.executable, '-O', '-m', 'compileall', '-f', '-q', + os.path.join(libdir, 'gedit', 'plugins')]) -- cgit v1.2.3