python3-cmake: New recipe

Some python modules rely on "import cmake".

Only build and ship the python parts, and don't download and
build cmake from sources. Use the already built cmake instead.

The CMakeLists.txt file is a crippled copy from this cmake
python module's sources, removing almost everything, and
adding a dummy install target, so do_install() doesn't fail.

The python code is patched so cmake is used from PATH.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Zoltán Böszörményi
2023-03-10 14:46:36 +01:00
committed by Khem Raj
parent bf6779b62a
commit 78f2b8c793
3 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
cmake_minimum_required(VERSION 3.6)
#
# For more details, see docs/building.rst
#
project(CMakePythonDistributions NONE)
install(CODE "
message(STATUS \"Install CMake project\")
")