From 8dcfcbd080913ac87b1d6989f9fd2a27d10d91a1 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Thu, 30 Nov 2017 23:59:15 +0000 Subject: [PATCH] telepathy-qt5: move sed to post_extract() --- srcpkgs/telepathy-qt5/template | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/srcpkgs/telepathy-qt5/template b/srcpkgs/telepathy-qt5/template index c832e43095..43d5da3c24 100644 --- a/srcpkgs/telepathy-qt5/template +++ b/srcpkgs/telepathy-qt5/template @@ -20,8 +20,6 @@ checksum=21bad30be7ebc4ba667d53d92cd1cec1be23114103f2149404d9740721693d4f if [ -n "$CROSS_BUILD" ]; then hostmakedepends+=" qt5-host-tools qt5-devel" - # cmake/FindPythonLibrary.cmake fails when cross compiling - sed -i CMakeLists.txt -e "/find_package(PythonLibrary ${REQUIRED_PY} REQUIRED)/d" configure_args+=" -DPYTHON_SHORT_VERSION=2.7" configure_args+=" -DPYTHON_LONG_VERSION=2.7.3" configure_args+=" -DPYTHON_SITE_PACKAGES_DIR=${XBPS_CROSS_BASE}/usr/lib/python2.7/site-packages" @@ -33,6 +31,13 @@ CXXFLAGS="-D_DEFAULT_SOURCE" subpackages="telepathy-qt5-farstream telepathy-qt5-devel" +post_extract() { + if [ -n "$CROSS_BUILD" ]; then + # cmake/FindPythonLibrary.cmake fails when cross compiling + sed -i CMakeLists.txt -e "/find_package(PythonLibrary ${REQUIRED_PY} REQUIRED)/d" + fi +} + telepathy-qt5-farstream_package() { short_desc+=" - farstream component" depends="telepathy-qt5>=${version}_${revision}"