From 44e820472b8356abfb0899dcd880717fbe8c19b1 Mon Sep 17 00:00:00 2001 From: Alexpux Date: Wed, 20 Aug 2014 19:39:47 +0400 Subject: [PATCH] goocanvas: Install python module. --- .../001-convert-python-path-to-unix.patch | 14 ++++++++++++++ mingw-w64-goocanvas/PKGBUILD | 8 ++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 mingw-w64-goocanvas/001-convert-python-path-to-unix.patch diff --git a/mingw-w64-goocanvas/001-convert-python-path-to-unix.patch b/mingw-w64-goocanvas/001-convert-python-path-to-unix.patch new file mode 100644 index 0000000000..0507ae1afd --- /dev/null +++ b/mingw-w64-goocanvas/001-convert-python-path-to-unix.patch @@ -0,0 +1,14 @@ +--- goocanvas-2.0.2/configure.in.orig 2014-08-20 19:26:32.167400000 +0400 ++++ goocanvas-2.0.2/configure.in 2014-08-20 19:27:30.074600000 +0400 +@@ -95,6 +95,11 @@ + PKG_CHECK_MODULES(PYTHON, [pygobject-3.0 >= $PYGOBJECT_REQUIRED]) + + pyoverridesdir=`$PYTHON -c "import gi;print gi._overridesdir"` ++case "$host" in ++ *-*-mingw*) ++ pyoverridesdir=`cygpath -u $pyoverridesdir` ++ ;; ++esac + AC_SUBST(pyoverridesdir) + fi + diff --git a/mingw-w64-goocanvas/PKGBUILD b/mingw-w64-goocanvas/PKGBUILD index f14b56496a..400adf5322 100644 --- a/mingw-w64-goocanvas/PKGBUILD +++ b/mingw-w64-goocanvas/PKGBUILD @@ -10,6 +10,7 @@ license=("LGPL 2") url="http://www.gnome.org" depends=("${MINGW_PACKAGE_PREFIX}-gtk3") makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" + "${MINGW_PACKAGE_PREFIX}-python2" "make" "libtool" "automake-wrapper" @@ -18,11 +19,14 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "libintl" "patch") options=('strip' '!debug' 'staticlibs') -source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver:0:3}/${_realname}-$pkgver.tar.xz) -sha256sums=('f20e5fbef8d1a2633033edbd886dd13146a1b948d1813a9c353a80a29295d1d0') +source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver:0:3}/${_realname}-$pkgver.tar.xz + 001-convert-python-path-to-unix.patch) +sha256sums=('f20e5fbef8d1a2633033edbd886dd13146a1b948d1813a9c353a80a29295d1d0' + '0aabbc30449243076c0533efe54d79b5236e000204d510fdbbcb28d9c452ae5f') prepare() { cd ${_realname}-${pkgver} + patch -p1 -i ${srcdir}/001-convert-python-path-to-unix.patch autoreconf -fi }