project: Renamed the names of the icons' files
The names of icons' files, besides containing the final names, they also contained the path in which they were going to be installed. This implies that they have to be renamed on the installation process. This patch creates the proper directory tree needed on the installation process and renames all files' names to their final names. https://bugzilla.gnome.org/show_bug.cgi?id=782843
|
Before Width: | Height: | Size: 769 B After Width: | Height: | Size: 769 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 193 KiB After Width: | Height: | Size: 193 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
@@ -1,21 +1,4 @@
|
||||
icon_sizes = [
|
||||
'16x16',
|
||||
'22x22',
|
||||
'24x24',
|
||||
'32x32',
|
||||
'48x48',
|
||||
'256x256',
|
||||
'512x512'
|
||||
]
|
||||
|
||||
foreach icon_size: icon_sizes
|
||||
install_data(
|
||||
'_'.join(['hicolor', 'apps', icon_size, 'org.gnome.Calendar.png']),
|
||||
install_dir: join_paths(calendar_datadir, 'icons', 'hicolor', icon_size, 'apps')
|
||||
)
|
||||
endforeach
|
||||
|
||||
install_data(
|
||||
'_'.join(['hicolor', 'apps', 'symbolic', 'org.gnome.Calendar-symbolic.svg']),
|
||||
install_dir: join_paths(calendar_datadir, 'icons', 'hicolor', 'symbolic', 'apps')
|
||||
install_subdir(
|
||||
'hicolor',
|
||||
install_dir: join_paths(calendar_datadir, 'icons')
|
||||
)
|
||||
|
||||
@@ -1,19 +1,10 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import glob
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
|
||||
install_prefix = os.environ['MESON_INSTALL_PREFIX']
|
||||
|
||||
name_pattern = re.compile('hicolor_apps_(?:\d+x\d+|symbolic)_(.*)')
|
||||
search_pattern = '/**/hicolor_*'
|
||||
|
||||
icondir = os.path.join(install_prefix, 'share', 'icons', 'hicolor')
|
||||
[os.rename(file, os.path.join(os.path.dirname(file), name_pattern.search(file).group(1)))
|
||||
for file in glob.glob(icondir + search_pattern, recursive=True)]
|
||||
|
||||
schemadir = os.path.join(install_prefix, 'share', 'glib-2.0', 'schemas')
|
||||
|
||||
if not os.environ.get('DESTDIR'):
|
||||
|
||||