diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2023-08-18 07:39:57 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2023-08-18 08:11:43 -0400 |
commit | 44ae26cf8619d521cf66e7bd2373740a024df7f6 (patch) | |
tree | ed1b31a68e3926ef7577c1770b09203842a15a11 /games-kids | |
parent | licenses: The Lucent Public License is version 1.02, not 1.2 (diff) | |
download | gentoo-44ae26cf8619d521cf66e7bd2373740a024df7f6.tar.gz gentoo-44ae26cf8619d521cf66e7bd2373740a024df7f6.tar.bz2 gentoo-44ae26cf8619d521cf66e7bd2373740a024df7f6.zip |
games-kids/gmult: workaround for vala-0.56.11
Will see how this go, but for now just do a dirty fix.
Closes: https://bugs.gentoo.org/912438
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-kids')
-rw-r--r-- | games-kids/gmult/files/gmult-12.0-vala-0.56.11.patch | 15 | ||||
-rw-r--r-- | games-kids/gmult/gmult-12.0.ebuild | 15 |
2 files changed, 28 insertions, 2 deletions
diff --git a/games-kids/gmult/files/gmult-12.0-vala-0.56.11.patch b/games-kids/gmult/files/gmult-12.0-vala-0.56.11.patch new file mode 100644 index 000000000000..fb0ba7a5227d --- /dev/null +++ b/games-kids/gmult/files/gmult-12.0-vala-0.56.11.patch @@ -0,0 +1,15 @@ +vala-0.56.11 gtk4 bindings seemingly broke API, and so this +workaround must either be applied conditionally or depend +on >=vala-0.56.11 as it breaks older VALA_0_56 and we cannot +check for minor versions from defines. + +https://bugs.gentoo.org/912438 +--- a/gmult/main.vala ++++ b/gmult/main.vala +@@ -108,4 +108,4 @@ + var provider = new Gtk.CssProvider(); +-#if VALA_0_58 +- provider.load_from_data(css); ++#if VALA_0_56 ++ provider.load_from_data(css, -1); + #else diff --git a/games-kids/gmult/gmult-12.0.ebuild b/games-kids/gmult/gmult-12.0.ebuild index b2b12394e1db..6fda353fb576 100644 --- a/games-kids/gmult/gmult-12.0.ebuild +++ b/games-kids/gmult/gmult-12.0.ebuild @@ -20,14 +20,25 @@ RDEPEND=" >=gui-libs/libadwaita-1.3:1[vala] virtual/libintl x11-libs/cairo - x11-libs/pango" + x11-libs/pango +" DEPEND="${RDEPEND}" BDEPEND=" $(vala_depend) - sys-devel/gettext" + sys-devel/gettext +" DOCS=( NEWS.md README.md ) +src_prepare() { + default + + # TODO: verify if this is still needed with new vala releases + # as it may instead break them if reverted (see patch for details) + has_version -b ">=dev-lang/vala-0.56.11" && + eapply "${FILESDIR}"/${PN}-12.0-vala-0.56.11.patch +} + src_configure() { vala_setup meson_src_configure |