mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-09-28 20:23:36 +00:00
Install correctly devel profile
This commit is contained in:
parent
179b615abf
commit
8bb3509b31
|
@ -1,8 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Name=gitg
|
||||
Name=@binary@
|
||||
Comment=Git repository browser
|
||||
Exec=@binary@ --no-wd %U
|
||||
TryExec=gitg
|
||||
TryExec=@binary@
|
||||
Terminal=false
|
||||
Type=Application
|
||||
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
|
||||
|
|
|
@ -206,9 +206,8 @@ configure_file(
|
|||
|
||||
meson.add_install_script(
|
||||
'meson_post_install.py',
|
||||
gitg_datadir,
|
||||
(enable_python ? 'python' : ''),
|
||||
gitg_libdir,
|
||||
gitg_name,
|
||||
gitg_datadir
|
||||
)
|
||||
|
||||
output = '\nConfiguration:\n\n'
|
||||
|
|
|
@ -7,7 +7,9 @@ import subprocess
|
|||
import sys
|
||||
|
||||
if not os.environ.get('DESTDIR'):
|
||||
icondir = os.path.join(sys.argv[1], 'icons', 'hicolor')
|
||||
gitg_name = sys.argv[1]
|
||||
datadir = sys.argv[2]
|
||||
icondir = os.path.join(datadir, 'icons', 'hicolor')
|
||||
|
||||
name_pattern = re.compile('hicolor_(?:apps)_(?:\d+x\d+|scalable)_(.*)')
|
||||
search_pattern = '/**/hicolor_*'
|
||||
|
@ -18,10 +20,10 @@ if not os.environ.get('DESTDIR'):
|
|||
print('Update icon cache...')
|
||||
subprocess.call(['gtk-update-icon-cache', '-f', '-t', '-q', icondir])
|
||||
|
||||
icondir = os.path.join(sys.argv[1], 'gitg', 'icons', 'hicolor')
|
||||
icondir = os.path.join(datadir, gitg_name, 'icons', 'hicolor')
|
||||
subprocess.call(['gtk-update-icon-cache', '-f', '-t', '-q', icondir])
|
||||
|
||||
schemadir = os.path.join(sys.argv[1], 'glib-2.0', 'schemas')
|
||||
schemadir = os.path.join(datadir, 'glib-2.0', 'schemas')
|
||||
print('Compiling gsettings schemas...')
|
||||
subprocess.call(['glib-compile-schemas', schemadir])
|
||||
|
||||
|
|
Loading…
Reference in a new issue