diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2024-02-12 00:08:37 -0800 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2024-02-12 12:07:33 -0800 |
commit | 8aafb5f26d638d8bfd4b14d4d83a5ce04f47e46f (patch) | |
tree | 323bdec93dfe3bf537cc15dbc80f64f44111fac2 /science/py-spglib/files/patch-CMakeLists.txt | |
parent | net-mgmt/icingaweb2: Update to 2.12.1 (diff) |
science/py-spglib: Build using PEP517 tools instead of cmake
Diffstat (limited to 'science/py-spglib/files/patch-CMakeLists.txt')
-rw-r--r-- | science/py-spglib/files/patch-CMakeLists.txt | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/science/py-spglib/files/patch-CMakeLists.txt b/science/py-spglib/files/patch-CMakeLists.txt deleted file mode 100644 index 7c42c23d1d4b..000000000000 --- a/science/py-spglib/files/patch-CMakeLists.txt +++ /dev/null @@ -1,42 +0,0 @@ ---- CMakeLists.txt.orig 2024-02-11 01:27:19 UTC -+++ CMakeLists.txt -@@ -1,8 +1,13 @@ -+cmake_minimum_required(VERSION 3.15) -+ -+find_package(Spglib REQUIRED) -+find_package(Python3 COMPONENTS REQUIRED Interpreter Development.Module NumPy) -+ - Python3_add_library(Spglib_python MODULE WITH_SOABI _spglib.c) - set_target_properties(Spglib_python PROPERTIES - OUTPUT_NAME _spglib) - target_link_libraries(Spglib_python PRIVATE -- Spglib_symspg Python3::NumPy) -+ Spglib::symspg Python3::NumPy) - if (NOT Python_INSTALL_DIR) - if (SKBUILD) - # If built with scikit-build-core, let it handle the installation -@@ -12,16 +17,16 @@ endif () - set(Python_INSTALL_DIR ${Python3_SITEARCH}/spglib) - endif () - endif () --if (SPGLIB_INSTALL) -+if (TRUE) - # TODO: Cmake forces to install PUBLIC_HEADER when defined - # https://gitlab.kitware.com/cmake/cmake/-/issues/24326 -- install(TARGETS Spglib_symspg -- LIBRARY DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime -- NAMELINK_COMPONENT Spglib_Development -- ARCHIVE DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Development -- PUBLIC_HEADER DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Development -- RUNTIME DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime -- ) -+ #install(TARGETS Spglib_symspg -+ # LIBRARY DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime -+ # NAMELINK_COMPONENT Spglib_Development -+ # ARCHIVE DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Development -+ # PUBLIC_HEADER DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Development -+ # RUNTIME DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime -+ #) - install(TARGETS Spglib_python - LIBRARY DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime - ) |