diff --git a/pygtk/pygtk-c99.patch b/pygtk/pygtk-c99.patch new file mode 100644 index 00000000..2ad209ec --- /dev/null +++ b/pygtk/pygtk-c99.patch @@ -0,0 +1,15 @@ +diff --git a/pango.override b/pango.override +index afe43ab..0bb5209 100644 +--- a/pango.override ++++ b/pango.override +@@ -27,6 +27,10 @@ headers + #include + #include + ++/* Fix problem with accessing private interface */ ++PANGO_AVAILABLE_IN_ALL PangoFontMetrics *pango_font_metrics_new (void); ++PANGO_AVAILABLE_IN_ALL const char *pango_font_map_get_shape_engine_type (PangoFontMap *fontmap); ++ + typedef struct { + PyObject *func, *data; + } PyGtkCustomNotify; diff --git a/pygtk/pygtk.json b/pygtk/pygtk.json index 5319e4b3..13fd4be7 100644 --- a/pygtk/pygtk.json +++ b/pygtk/pygtk.json @@ -11,7 +11,10 @@ }, { "type": "patch", - "path": "pygtk.patch" + "paths": [ + "pygtk.patch", + "pygtk-c99.patch" + ] }, { "type": "shell", @@ -30,6 +33,8 @@ "/share/pygtk" ], "modules": [ + "../python2.7/python-2.7.json", + "../gtk2/gtk2.json", { "name": "python2-pycairo", "buildsystem": "meson", @@ -73,6 +78,11 @@ { "name": "libglade", "rm-configure": true, + "build-options": { + "env": { + "GTKDOCIZE": "true" + } + }, "cleanup": [ "/bin", "/include/libglade-2.0",