diff --git a/srcpkgs/vte/patches/cross-python.patch b/srcpkgs/vte/patches/cross-python.patch new file mode 100644 index 00000000000..b3f2574bfc2 --- /dev/null +++ b/srcpkgs/vte/patches/cross-python.patch @@ -0,0 +1,13 @@ +--- 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 5c20cdc79f0..c8fa6b47244 100644 --- a/srcpkgs/vte/template +++ b/srcpkgs/vte/template @@ -6,7 +6,7 @@ build_style=gnu-configure configure_args="--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 pygtk-devel" +makedepends="gtk+-devel ncurses-devel python-devel pygtk-devel" short_desc="Terminal widget with improved accessibility and I18N support" maintainer="Juan RP " homepage="http://www.gnome.org" @@ -14,13 +14,12 @@ 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() { - if [ "$CROSS_BUILD" ]; then - ln -s ${XBPS_WRAPPERDIR}/python-config ${wrksrc} - fi env PYTHON=python2 ./configure ${configure_args} }