diff --git a/extra/gtk+3/build b/extra/gtk+3/build index a602962d..cce4e9fe 100755 --- a/extra/gtk+3/build +++ b/extra/gtk+3/build @@ -1,7 +1,11 @@ #!/bin/sh -e -# Remove configure check for atk-bridge. -sed 's/\(ATK_PACKAGES="atk\) atk-bridge-2.0"/\1"/' configure > _ +patch -p1 < no-fribidi.patch + +# Remove configure check for atk-bridge and fribidi. +sed -e 's/\(ATK_PACKAGES="atk\) atk-bridge-2.0"/\1"/' \ + -e 's/fribidi >= 0\.19\.7//g' \ + configure > _ mv -f _ configure chmod +x configure diff --git a/extra/gtk+3/checksums b/extra/gtk+3/checksums index 8e8e9efb..656e3925 100644 --- a/extra/gtk+3/checksums +++ b/extra/gtk+3/checksums @@ -1 +1,2 @@ f57ec4ade8f15cab0c23a80dcaee85b876e70a8823d9105f067ce335a8268caa +e44b643a9ec01ea153817602241d6d7e6fd2d121b3ce4e29f99a87d8836a3ff0 diff --git a/extra/gtk+3/depends b/extra/gtk+3/depends index 561ac12f..49c8f7d0 100644 --- a/extra/gtk+3/depends +++ b/extra/gtk+3/depends @@ -1,5 +1,4 @@ atk -fribidi gdk-pixbuf libXcomposite libXcursor diff --git a/extra/gtk+3/patches/no-fribidi.patch b/extra/gtk+3/patches/no-fribidi.patch new file mode 100644 index 00000000..360c3780 --- /dev/null +++ b/extra/gtk+3/patches/no-fribidi.patch @@ -0,0 +1,60 @@ +diff --git a/gdk/gdk.c b/gdk/gdk.c +index f0869a6..2f3c039 100644 +--- a/gdk/gdk.c ++++ b/gdk/gdk.c +@@ -44,7 +44,6 @@ + #include + #include + +-#include + + + /** +@@ -1118,17 +1117,6 @@ gdk_disable_multidevice (void) + PangoDirection + gdk_unichar_direction (gunichar ch) + { +- FriBidiCharType fribidi_ch_type; +- +- G_STATIC_ASSERT (sizeof (FriBidiChar) == sizeof (gunichar)); +- +- fribidi_ch_type = fribidi_get_bidi_type (ch); +- +- if (!FRIBIDI_IS_STRONG (fribidi_ch_type)) +- return PANGO_DIRECTION_NEUTRAL; +- else if (FRIBIDI_IS_RTL (fribidi_ch_type)) +- return PANGO_DIRECTION_RTL; +- else + return PANGO_DIRECTION_LTR; + } + +diff --git a/gtk/gtkpango.c b/gtk/gtkpango.c +index aaac4cc..a76ad57 100644 +--- a/gtk/gtkpango.c ++++ b/gtk/gtkpango.c +@@ -25,7 +25,6 @@ + #include "config.h" + #include "gtkpango.h" + #include +-#include + #include "gtkintl.h" + + #define GTK_TYPE_FILL_LAYOUT_RENDERER (_gtk_fill_layout_renderer_get_type()) +@@ -1326,17 +1325,6 @@ _gtk_pango_attr_list_merge (PangoAttrList *into, + PangoDirection + _gtk_pango_unichar_direction (gunichar ch) + { +- FriBidiCharType fribidi_ch_type; +- +- G_STATIC_ASSERT (sizeof (FriBidiChar) == sizeof (gunichar)); +- +- fribidi_ch_type = fribidi_get_bidi_type (ch); +- +- if (!FRIBIDI_IS_STRONG (fribidi_ch_type)) +- return PANGO_DIRECTION_NEUTRAL; +- else if (FRIBIDI_IS_RTL (fribidi_ch_type)) +- return PANGO_DIRECTION_RTL; +- else + return PANGO_DIRECTION_LTR; + } + diff --git a/extra/gtk+3/sources b/extra/gtk+3/sources index 42aee20f..47e0fbc7 100644 --- a/extra/gtk+3/sources +++ b/extra/gtk+3/sources @@ -1 +1,2 @@ https://download.gnome.org/sources/gtk+/3.24/gtk+-3.24.29.tar.xz +patches/no-fribidi.patch diff --git a/extra/gtk+3/version b/extra/gtk+3/version index c2f912a2..f7f31d79 100644 --- a/extra/gtk+3/version +++ b/extra/gtk+3/version @@ -1 +1 @@ -3.24.29 1 +3.24.29 2