upstream_Patch-47-respect-DESTDIR-when-installing-python-stuf.patch 860 B

123456789101112131415161718192021222324
  1. From 9ec857bb403accc262a9b5a9c2921b5c064fc9c8 Mon Sep 17 00:00:00 2001
  2. From: Sebastian Kraft <mail@sebastiankraft.net>
  3. Date: Sat, 9 Jan 2016 20:55:21 +0100
  4. Subject: [PATCH] Patch #47: respect DESTDIR when installing python stuff
  5. ---
  6. apps/CMakeLists.txt | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt
  9. index 70c77fd..2f6f8f1 100644
  10. --- a/apps/CMakeLists.txt
  11. +++ b/apps/CMakeLists.txt
  12. @@ -42,5 +42,5 @@ IF(PYTHON)
  13. IF(NOT DEFINED SETUP_PY_INSTALL_PREFIX)
  14. SET(SETUP_PY_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
  15. ENDIF()
  16. - INSTALL(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install --prefix=${SETUP_PY_INSTALL_PREFIX})")
  17. + INSTALL(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install --prefix=\$ENV{DESTDIR}${SETUP_PY_INSTALL_PREFIX})")
  18. ENDIF(PYTHON)
  19. --
  20. 2.6.4