kf5-kapidox-install.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. diff -Nur kapidox-kf6-5.93.0/CMakeLists.txt kapidox-kf6-5.91.0/CMakeLists.txt
  2. --- kapidox-kf6-5.93.0/CMakeLists.txt 2022-03-13 13:10:03.000000000 +0100
  3. +++ kapidox-kf6-5.91.0/CMakeLists.txt 2022-01-25 08:43:21.000000000 +0100
  4. @@ -1,7 +1,7 @@
  5. cmake_minimum_required(VERSION 3.16)
  6. project(kapidox-kf6 NONE)
  7. -include(FindUnixCommands)
  8. +find_package(Python3 COMPONENTS Interpreter)
  9. if(WIN32)
  10. # Needs native path and extra escaping of spaces
  11. @@ -11,7 +11,26 @@
  12. endif()
  13. add_custom_target(build ALL
  14. - COMMAND ${BASH} bootstrap-devenv.sh
  15. + COMMAND ${Python3_EXECUTABLE} setup.py build --build-base ${BINARY_DIR}
  16. WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
  17. -)
  18. + )
  19. +# DESTDIR may be set at install time (eg: `make DESTDIR=/tmp/package install`)
  20. +# so we need to check for it when the install code is run and pass the appropriate
  21. +# argument to distutils.
  22. +#
  23. +# Note that if(\$ENV{DESTDIR}) always fails, regardless of the value of the DESTDIR
  24. +# environment variable, hence the STREQUAL test.
  25. +# See https://public.kitware.com/Bug/view.php?id=14737
  26. +install(CODE
  27. + "set(_root_arg)
  28. + if (NOT \$ENV{DESTDIR} STREQUAL \"\")
  29. + file(TO_NATIVE_PATH \$ENV{DESTDIR} DESTDIR)
  30. + set(_root_arg --root \"\${DESTDIR}\")
  31. + endif()
  32. + file(TO_NATIVE_PATH ${CMAKE_INSTALL_PREFIX} INSTALL_PREFIX)
  33. + execute_process(
  34. + COMMAND ${Python3_EXECUTABLE} setup.py install --prefix \"\${INSTALL_PREFIX}\" \${_root_arg}
  35. + WORKING_DIRECTORY \"${CMAKE_SOURCE_DIR}\"
  36. + )"
  37. + )
  38. diff -up kapidox-kf6-5.93.0/setup.py.me kapidox-kf6-5.93.0/setup.py
  39. --- kapidox-kf6-5.93.0/setup.py.me 2022-04-28 14:13:13.168061970 +0200
  40. +++ kapidox-kf6-5.93.0/setup.py 2022-04-28 14:14:00.170175582 +0200
  41. @@ -17,5 +17,5 @@ setup(
  42. "kapidox-kf6-depdiagram-generate = kapidox-kf6.depdiagram_generate:main",
  43. ],
  44. },
  45. - install_requires=["doxypypy", "doxyqml", "requests", "jinja2", "pyyaml"]
  46. + install_requires=["requests", "jinja2", "pyyaml"]
  47. )