spacepaste

  1.  
  2. $ cat /tmp/gtk+-3.22.19.atk-bridge.patch
  3. $NetBSD: patch-configure.ac,v 1.2 2014/09/08 12:06:48 wiz Exp $
  4. Make gtk3-atk-bridge an option to avoid unwanted dbus dependency.
  5. --- 1/configure.ac
  6. +++ 2/configure.ac
  7. @@ -1370,8 +1370,13 @@ AC_SUBST(GDK_DEP_CFLAGS)
  8. # Check for Accessibility Toolkit flags
  9. ########################################
  10. -if test x$enable_x11_backend = xyes; then
  11. +AC_ARG_WITH(atk-bridge,
  12. + AS_HELP_STRING([--without-atk-bridge], [Do not use atk-bridge-2.0]),
  13. + :, with_atk_bridge=yes)
  14. +
  15. +if test x$enable_x11_backend = xyes -a x$with_atk_bridge = xyes; then
  16. ATK_PACKAGES="atk atk-bridge-2.0"
  17. + AC_DEFINE([HAVE_ATK_BRIDGE], [1], [Define if we're using atk-bridge-2.0])
  18. else
  19. ATK_PACKAGES="atk"
  20. fi
  21. $NetBSD: patch-config.h.in,v 1.2 2014/09/08 12:06:48 wiz Exp $
  22. Make gtk3-atk-bridge an option to avoid unwanted dbus dependency.
  23. --- 1/config.h.in
  24. +++ 1/config.h.in
  25. @@ -10,6 +10,9 @@
  26. /* Disable deprecation warnings from glib */
  27. #undef GLIB_DISABLE_DEPRECATION_WARNINGS
  28. +/* Define if we're using atk-bridge-2.0 */
  29. +#undef HAVE_ATK_BRIDGE
  30. +
  31. /* Define to 1 if you have the `bind_textdomain_codeset' function. */
  32. #undef HAVE_BIND_TEXTDOMAIN_CODESET
  33. Make gtk3-atk-bridge an option to avoid unwanted dbus dependency.
  34. --- 1/gtk/a11y/gtkaccessibility.c
  35. +++ 1/gtk/a11y/gtkaccessibility.c
  36. @@ -38,8 +38,10 @@
  37. #include <gtk/gtkaccessible.h>
  38. #ifdef GDK_WINDOWING_X11
  39. +#ifdef HAVE_ATK_BRIDGE
  40. #include <atk-bridge.h>
  41. #endif
  42. +#endif
  43. static gboolean gail_focus_watcher (GSignalInvocationHint *ihint,
  44. guint n_param_values,
  45. @@ -989,8 +991,10 @@ _gtk_accessibility_init (void)
  46. do_window_event_initialization ();
  47. #ifdef GDK_WINDOWING_X11
  48. +#ifdef HAVE_ATK_BRIDGE
  49. atk_bridge_adaptor_init (NULL, NULL);
  50. #endif
  51. +#endif
  52. atk_misc_instance = g_object_new (GTK_TYPE_MISC_IMPL, NULL);
  53. }
  54. $ cat /tmp/gtk+-3.22.19.ebuild.patch
  55. --- /usr/portage/x11-libs/gtk+/gtk+-3.22.19.ebuild 2018-05-21 20:39:19.000000000 -0500
  56. +++ /usr/local/portage/x11-libs/gtk+/gtk+-3.22.19.ebuild 2018-07-19 17:49:00.890779434 -0500
  57. @@ -11,7 +11,7 @@
  58. LICENSE="LGPL-2+"
  59. SLOT="3"
  60. -IUSE="aqua broadway cloudprint colord cups examples +introspection test vim-syntax wayland +X xinerama"
  61. +IUSE="aqua atk-bridge broadway cloudprint colord cups examples +introspection test vim-syntax wayland +X xinerama"
  62. REQUIRED_USE="
  63. || ( aqua wayland X )
  64. xinerama? ( X )
  65. @@ -48,7 +48,7 @@
  66. >=x11-libs/libxkbcommon-0.2[${MULTILIB_USEDEP}]
  67. )
  68. X? (
  69. - >=app-accessibility/at-spi2-atk-2.5.3[${MULTILIB_USEDEP}]
  70. + atk-bridge? ( >=app-accessibility/at-spi2-atk-2.5.3[${MULTILIB_USEDEP}] )
  71. x11-libs/libX11[${MULTILIB_USEDEP}]
  72. >=x11-libs/libXi-1.3[${MULTILIB_USEDEP}]
  73. x11-libs/libXext[${MULTILIB_USEDEP}]
  74. @@ -120,6 +120,9 @@
  75. # gtk-update-icon-cache is installed by dev-util/gtk-update-icon-cache
  76. eapply "${FILESDIR}"/${PN}-3.22.2-update-icon-cache.patch
  77. + # get rid of gtk3-atk-bridge crap
  78. + eapply "${FILESDIR}"/${PN}-3.22.19.atk-bridge.patch
  79. +
  80. eautoreconf
  81. gnome2_src_prepare
  82. }
  83. @@ -143,6 +146,7 @@
  84. $(use_enable X xkb) \
  85. $(use_enable X xrandr) \
  86. $(use_enable xinerama) \
  87. + $(use_with atk-bridge) \
  88. --disable-papi \
  89. --disable-mir-backend \
  90. --enable-man \
  91.