telepathy-qt5: move sed to post_extract()
This commit is contained in:
parent
aef0a19584
commit
8dcfcbd080
1 changed files with 7 additions and 2 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue