diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2020-12-22 15:01:16 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2021-01-31 22:22:14 +0100 |
commit | 44b07653bdae0f008b5f2eb9bdbf4e5096d866f0 (patch) | |
tree | 67d0bb0ccf7a7a3115b5173b8379f1dd641856ad /pkgs/development/libraries/gtk/hooks/gtk4-clean-immodules-cache.sh | |
parent | 44ad80ab1036c5cc83ada4bfa451dac9939f2a10 (diff) |
gtk4: init at 4.0.2
Major API change; adds multimedia and 3D graphics widgets.
Changes:
- https://gitlab.gnome.org/GNOME/gtk/-/blob/4.0.2/NEWS
- https://blog.gtk.org/2020/12/16/gtk-4-0/
Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
Co-authored-by: Tad Fisher <tadfisher@gmail.com>
Diffstat (limited to 'pkgs/development/libraries/gtk/hooks/gtk4-clean-immodules-cache.sh')
-rw-r--r-- | pkgs/development/libraries/gtk/hooks/gtk4-clean-immodules-cache.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gtk/hooks/gtk4-clean-immodules-cache.sh b/pkgs/development/libraries/gtk/hooks/gtk4-clean-immodules-cache.sh new file mode 100644 index 000000000000..49f7051aabb6 --- /dev/null +++ b/pkgs/development/libraries/gtk/hooks/gtk4-clean-immodules-cache.sh @@ -0,0 +1,11 @@ +# shellcheck shell=bash + +fixupOutputHooks+=(_gtk4CleanComments) + +# Clean comments that link to generator of the file +_gtk4CleanComments() { + local f="${prefix:?}/lib/gtk-4.0/4.0.0/immodules.cache" + if [ -f "$f" ]; then + sed 's|Created by .*bin/gtk-query-|Created by bin/gtk-query-|' -i "$f" + fi +} |