MINGW-packages/mingw-w64-goocanvas/001-convert-python-path-to-unix.patch
Christoph Reiter 2d3eefe13b goocanvas: Update to 2.0.4. Fixes #3131 (#3136)
And while at it move to mingw gtk-doc and fix some
path conversation problems with newer glib-mkenums.
2017-11-12 18:36:13 +03:00

19 lines
678 B
Diff

--- ./configure.ac.orig 2013-11-03 17:56:29.000000000 +0100
+++ ./configure.ac 2015-02-22 19:47:45.372532600 +0100
@@ -94,8 +94,13 @@
if test "x$enable_python" = "xauto"; then
PKG_CHECK_MODULES(PYTHON, [pygobject-3.0 >= $PYGOBJECT_REQUIRED])
- pyoverridesdir=`$PYTHON -c "import gi;print (gi._overridesdir)"`
- AC_SUBST(pyoverridesdir)
+ pyoverridesdir=`$PYTHON -c "import gi; from os.path import abspath; print(abspath(gi._overridesdir))"`
+ case "$host" in
+ *-*-mingw*)
+ pyoverridesdir=`cygpath -u $pyoverridesdir`
+ ;;
+ esac
+ AC_SUBST(pyoverridesdir)
fi
AM_CONDITIONAL(ENABLE_PYTHON, test x"$enable_python" = "xyes")