diff --git a/srcpkgs/vte/patches/cross-python.patch b/srcpkgs/vte/patches/cross-python.patch deleted file mode 100644 index b3f2574bfc2..00000000000 --- a/srcpkgs/vte/patches/cross-python.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- configure.in.orig 2018-09-02 12:20:57.364425905 +0200 -+++ configure.in 2018-09-02 12:21:18.834425049 +0200 -@@ -483,10 +483,6 @@ - fi - - if $BUILD_PYTHON ; then -- AM_CHECK_PYTHON_HEADERS(,BUILD_PYTHON=false) --fi -- --if $BUILD_PYTHON ; then - AC_MSG_CHECKING([for pygtk-2.0]) - if pkg-config --exists pygtk-2.0 ; then - AC_MSG_RESULT([found]) diff --git a/srcpkgs/vte/template b/srcpkgs/vte/template index c8fa6b47244..da7295784bf 100644 --- a/srcpkgs/vte/template +++ b/srcpkgs/vte/template @@ -3,7 +3,7 @@ pkgname=vte version=0.28.2 revision=15 build_style=gnu-configure -configure_args="--disable-static --with-gtk=2.0" +configure_args="PYTHON=python2 --disable-static --with-gtk=2.0" hostmakedepends="automake gettext-devel gtk-doc gobject-introspection libtool pkg-config intltool python-devel glib-devel pygtk-devel" makedepends="gtk+-devel ncurses-devel python-devel pygtk-devel" @@ -14,13 +14,11 @@ license="LGPL-2.1-or-later" distfiles="${GNOME_SITE}/vte/0.28/${pkgname}-${version}.tar.bz2" checksum=8d04e202b617373dfb47689e5e628febe2c58840b34cccc4af4feb88c48df903 -CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7" - pre_configure() { NOCONFIGURE=1 autoreconf -fi -} -do_configure() { - env PYTHON=python2 ./configure ${configure_args} + if [ "$CROSS_BUILD" ]; then + sed -i "s,\(PYTHON_INCLUDES\)=.*,\1=-I${XBPS_CROSS_BASE}/usr/include/python2.7,g" configure + fi } vte-python_package() {