Date: Saturday, December 14, 2019 @ 11:05:13 Author: arojas Revision: 371405
archrelease: copy trunk to testing-any Added: extra-cmake-modules/repos/testing-any/ extra-cmake-modules/repos/testing-any/ECM-no-init.py.patch (from rev 371404, extra-cmake-modules/trunk/ECM-no-init.py.patch) extra-cmake-modules/repos/testing-any/ECM-sip5.patch (from rev 371404, extra-cmake-modules/trunk/ECM-sip5.patch) extra-cmake-modules/repos/testing-any/PKGBUILD (from rev 371404, extra-cmake-modules/trunk/PKGBUILD) ----------------------+ ECM-no-init.py.patch | 10 ++++++++++ ECM-sip5.patch | 12 ++++++++++++ PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) Copied: extra-cmake-modules/repos/testing-any/ECM-no-init.py.patch (from rev 371404, extra-cmake-modules/trunk/ECM-no-init.py.patch) =================================================================== --- testing-any/ECM-no-init.py.patch (rev 0) +++ testing-any/ECM-no-init.py.patch 2019-12-14 11:05:13 UTC (rev 371405) @@ -0,0 +1,10 @@ +diff --git a/find-modules/GeneratePythonBindingUmbrellaModule.cmake b/find-modules/GeneratePythonBindingUmbrellaModule.cmake +index de79393..144fab4 100644 +--- a/find-modules/GeneratePythonBindingUmbrellaModule.cmake ++++ b/find-modules/GeneratePythonBindingUmbrellaModule.cmake +@@ -4,4 +4,4 @@ get_filename_component(PYTHON_UMBRELLA_MODULE_DIR ${PYTHON_UMBRELLA_MODULE_FILE} + + file(MAKE_DIRECTORY "${PYTHON_UMBRELLA_MODULE_DIR}") + +-execute_process(COMMAND "${CMAKE_COMMAND}" -E touch "${PYTHON_UMBRELLA_MODULE_FILE}") ++#execute_process(COMMAND "${CMAKE_COMMAND}" -E touch "${PYTHON_UMBRELLA_MODULE_FILE}") Copied: extra-cmake-modules/repos/testing-any/ECM-sip5.patch (from rev 371404, extra-cmake-modules/trunk/ECM-sip5.patch) =================================================================== --- testing-any/ECM-sip5.patch (rev 0) +++ testing-any/ECM-sip5.patch 2019-12-14 11:05:13 UTC (rev 371405) @@ -0,0 +1,12 @@ +diff --git a/find-modules/FindPythonModuleGeneration.cmake b/find-modules/FindPythonModuleGeneration.cmake +index 9a34220..2b4e382 100644 +--- a/find-modules/FindPythonModuleGeneration.cmake ++++ b/find-modules/FindPythonModuleGeneration.cmake +@@ -309,6 +309,7 @@ get_filename_component(libclang_file "${libclang_file}" REALPATH) + + find_file(SIP_Qt5Core_Mod_FILE + NAMES QtCoremod.sip ++ PATHS ${KDE_INSTALL_PYTHON3DIR}/PyQt5/bindings/QtCore + PATH_SUFFIXES share/sip/PyQt5/QtCore + ) + Copied: extra-cmake-modules/repos/testing-any/PKGBUILD (from rev 371404, extra-cmake-modules/trunk/PKGBUILD) =================================================================== --- testing-any/PKGBUILD (rev 0) +++ testing-any/PKGBUILD 2019-12-14 11:05:13 UTC (rev 371405) @@ -0,0 +1,47 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Maintainer: Antonio Rojas <aro...@archlinux.org> +# Contributor: Andrea Scarpino <and...@archlinux.org> + +pkgname=extra-cmake-modules +pkgver=5.65.0 +pkgrel=1 +pkgdesc='Extra modules and scripts for CMake' +arch=(any) +url='https://community.kde.org/Frameworks' +license=(LGPL) +depends=(cmake) +makedepends=(python-sphinx python-requests qt5-tools) +groups=(kf5) +source=("https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz"{,.sig} + ECM-no-init.py.patch ECM-sip5.patch) +sha256sums=('41634536ca1165a758acd85aa11112177616019e2d3974693a92d1d9bc91c105' + 'SKIP' + '5695e45c7621a00c0bca28f058c13b5d524f963a00b53337c8cefcdaf22c4b52' + '0eff96db80a96716010356d88b869be643fde9204ec2334869c11112b934afaf') +validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <fa...@kde.org> + +prepare() { + mkdir -p build + + cd $pkgname-$pkgver + sed -e 's|/usr/bin/env python|/usr/bin/env python2|' -i find-modules/*.py +# Don't create __init__.py + patch -p1 -i ../ECM-no-init.py.patch +# Compatibility with sip 5 + patch -p1 -i ../ECM-sip5.patch +} + +build() { + cd build + cmake ../$pkgname-$pkgver \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_HTML_DOCS=OFF \ + -DBUILD_QTHELP_DOCS=ON \ + -DBUILD_TESTING=OFF + make +} + +package() { + cd build + make DESTDIR="$pkgdir" install +}