Skip to content

Commit b25c777

Browse files
authored
build: drop intltool requirement (#13157)
1 parent c00e053 commit b25c777

File tree

7 files changed

+356
-45
lines changed

7 files changed

+356
-45
lines changed

data/cinnamon-wayland.desktop.in.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Desktop Entry]
22
Type=Application
3-
_Name=Cinnamon (Wayland session)
4-
_Comment=Window management and application launching
3+
Name=Cinnamon (Wayland session)
4+
Comment=Window management and application launching
55
Exec=cinnamon --replace
66
X-GNOME-Bugzilla-Bugzilla=GNOME
77
X-GNOME-Bugzilla-Product=cinnamon

data/cinnamon.desktop.in.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Desktop Entry]
22
Type=Application
3-
_Name=Cinnamon
4-
_Comment=Window management and application launching
3+
Name=Cinnamon
4+
Comment=Window management and application launching
55
Exec=@bindir@/cinnamon-launcher
66
X-GNOME-Bugzilla-Bugzilla=GNOME
77
X-GNOME-Bugzilla-Product=cinnamon

data/cinnamon2d.desktop.in.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Desktop Entry]
22
Type=Application
3-
_Name=Cinnamon 2D
4-
_Comment=Window management and application launching
3+
Name=Cinnamon 2D
4+
Comment=Window management and application launching
55
Exec=@bindir@/cinnamon2d
66
Categories=GNOME;GTK;System;Core;
77
OnlyShowIn=X-Cinnamon;

data/meson.build

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,15 @@ if get_option('wayland')
2828
endif
2929

3030
foreach desktop_file : desktop_files
31-
desktop = configure_file(
32-
input: desktop_file + '.in.in',
33-
output: desktop_file + '.in',
34-
configuration: desktop_conf,
35-
)
36-
37-
custom_target(
38-
desktop_file,
39-
input: desktop,
31+
i18n.merge_file(
32+
type: 'desktop',
33+
input: configure_file(
34+
input: desktop_file + '.in.in',
35+
output: desktop_file + '.in',
36+
configuration: desktop_conf,
37+
),
4038
output: desktop_file,
41-
command: [intltool_merge, '-d', '-u', po_dir, '@INPUT@', '@OUTPUT@'],
39+
po_dir: po_dir,
4240
install: true,
4341
install_dir: desktopdir,
4442
)

makepot

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
#!/bin/bash
22

3-
find files/usr/share/cinnamon -name "*.ui" -exec intltool-extract --type=gettext/glade {} \;
3+
xgettext -cTranslators -cTRANSLATORS --keyword=_ --keyword=N_ --from-code=UTF-8 \
4+
--files-from=po/POTFILES.in --output=cinnamon.pot
5+
xgettext -c --language=Python --keyword=_ --output=cinnamon.pot --join-existing files/usr/bin/*
46

5-
xgettext --language=C --keyword=_ --keyword=N_ --output=cinnamon.pot src/*.c src/*/*.c
6-
7-
find files/usr/share/cinnamon -name "*.ui.h" -exec xgettext --language=C --keyword=_ --keyword=N_ --output=cinnamon.pot --join-existing {} \;
8-
9-
xgettext -cTranslators --language=JavaScript --keyword=_ --keyword=N_ --output=cinnamon.pot --join-existing --from-code=UTF-8 js/*/*.js files/usr/share/cinnamon/*/*/*.js
10-
xgettext -c --language=Python --keyword=_ --output=cinnamon.pot --join-existing generate_additional_files.py files/usr/share/cinnamon/*/*.py files/usr/share/cinnamon/*/*/*.py files/usr/bin/*
117
files/usr/bin/cinnamon-xlet-makepot -j -p -m -o cinnamon.pot files/usr/share/cinnamon/applets/
128
files/usr/bin/cinnamon-xlet-makepot -j -p -m -o cinnamon.pot files/usr/share/cinnamon/desklets/
13-
14-
find files/usr/share/cinnamon -name "*.ui.h" -exec rm -f {} \;

meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ message('Building recorder: @0@'.format(get_option('build_recorder')))
7979
cc = meson.get_compiler('c')
8080
math = cc.find_library('m', required: false)
8181

82-
intltool_merge = find_program('intltool-merge')
8382
python = find_program('python3')
8483

8584
# generate config.h

0 commit comments

Comments
 (0)