gnu: jami-gnome: Fix version string.

* gnu/packages/jami.scm (jami-gnome)[phases]{fix-version-string}: New phase.
This commit is contained in:
Maxim Cournoyer 2022-01-14 17:07:30 -05:00
parent bd872a6f75
commit 056935506b
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -527,6 +527,12 @@ (define-public jami-gnome
(substitute* "CMakeLists.txt" (substitute* "CMakeLists.txt"
(("WEBKIT webkit2gtk-4.0") (("WEBKIT webkit2gtk-4.0")
"WEBKIT webkit2gtk-4.1")))) "WEBKIT webkit2gtk-4.1"))))
(add-after 'change-directory/maybe 'fix-version-string
(lambda _
(substitute* "CMakeLists.txt"
(("^# Set VERSION.*" anchor)
(string-append anchor
"set(PROJECT_VERSION \"" ,version "\")\n")))))
(add-after 'install 'glib-or-gtk-compile-schemas (add-after 'install 'glib-or-gtk-compile-schemas
(assoc-ref gtk:%standard-phases 'glib-or-gtk-compile-schemas)) (assoc-ref gtk:%standard-phases 'glib-or-gtk-compile-schemas))
(add-after 'glib-or-gtk-compile-schemas 'glib-or-gtk-wrap (add-after 'glib-or-gtk-compile-schemas 'glib-or-gtk-wrap