Files
ports/science/thermofun/files/patch-python_thermofun_CMakeLists.txt
2026-10-04 04:07:15 +00:00

21 lines
1.1 KiB
Plaintext

--- python/thermofun/CMakeLists.txt.orig 2025-05-05 07:34:58 UTC
+++ python/thermofun/CMakeLists.txt
@@ -26,7 +26,7 @@ add_custom_target(thermofun ALL
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:PyThermoFun>
${CMAKE_CURRENT_BINARY_DIR}/$<TARGET_FILE_NAME:PyThermoFun>
#COMMAND ${PYTHON_EXECUTABLE} -m pip install ${_PIP_ARG} -e ${CMAKE_CURRENT_BINARY_DIR}
- COMMAND ${PYTHON_EXECUTABLE} -m pip install --prefix ${CMAKE_BINARY_DIR} --ignore-installed .
+ COMMAND ${PYTHON_EXECUTABLE} -m pip install --root ${FREEBSD_STAGEDIR} --prefix ${FREEBSD_PREFIX} --ignore-installed .
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
# Set dependencies of thermofun target
@@ -71,7 +71,7 @@ install(CODE
endif()
execute_process(
- COMMAND \"${PYTHON_EXECUTABLE}\" -m pip install --prefix \"${THERMOFUN_PYTHON_INSTALL_PREFIX}\" \"${CMAKE_CURRENT_BINARY_DIR}\"
+ COMMAND \"${PYTHON_EXECUTABLE}\" -m pip install --root ${FREEBSD_STAGEDIR} --prefix ${FREEBSD_PREFIX} \"${CMAKE_CURRENT_BINARY_DIR}\"
WORKING_DIRECTORY \"${CMAKE_CURRENT_BINARY_DIR}\")
"
)