diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 11:50:53 -0500 |
| commit | 290aebdea65a02557706eaeda477fef0437b6a48 (patch) | |
| tree | f87a939169a508a2e943570501b64cc16b411cda /sci-libs/pastix | |
| parent | 6783ddcd4b73d9ce586a71770caed352bec93b16 (diff) | |
| download | baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.gz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.tar.xz baldeagleos-repo-290aebdea65a02557706eaeda477fef0437b6a48.zip | |
Adding metadata
Diffstat (limited to 'sci-libs/pastix')
| -rw-r--r-- | sci-libs/pastix/Manifest | 1 | ||||
| -rw-r--r-- | sci-libs/pastix/files/pastix-6.0.3-cmake-examples-optional.patch | 170 | ||||
| -rw-r--r-- | sci-libs/pastix/files/pastix-6.0.3-cmake-installdirs.patch | 424 | ||||
| -rw-r--r-- | sci-libs/pastix/files/pastix-6.0.3-cmake-python-optional.patch | 64 | ||||
| -rw-r--r-- | sci-libs/pastix/files/pastix-6.0.3-cmake-spm-project.patch | 12 | ||||
| -rw-r--r-- | sci-libs/pastix/files/pastix-6.0.3-multiple-coeftabMemory.patch | 11 | ||||
| -rw-r--r-- | sci-libs/pastix/metadata.xml | 29 | ||||
| -rw-r--r-- | sci-libs/pastix/pastix-6.0.3.ebuild | 87 |
8 files changed, 0 insertions, 798 deletions
diff --git a/sci-libs/pastix/Manifest b/sci-libs/pastix/Manifest deleted file mode 100644 index 2d332d8ba962..000000000000 --- a/sci-libs/pastix/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST pastix-6.0.3.tar.gz 1793579 BLAKE2B 9e0ee71c80b2c93c6762c1a824b2e1262fd1a9f406194fb99eeecbfc172cf82f497d23a541b56c44e5487c3c228cab781f47f683ee04c6cdf426da6126750a69 SHA512 5bf8dfa6ed02ee7e236c63e21c80bd45af807b465b21a8c0520b1328e179095f1416f925be9f8b5ec0e8078ca9bc4398bf0d091fdc8e9ea51b9af12a06d9a544 diff --git a/sci-libs/pastix/files/pastix-6.0.3-cmake-examples-optional.patch b/sci-libs/pastix/files/pastix-6.0.3-cmake-examples-optional.patch deleted file mode 100644 index 5f0701168271..000000000000 --- a/sci-libs/pastix/files/pastix-6.0.3-cmake-examples-optional.patch +++ /dev/null @@ -1,170 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -94,6 +94,9 @@ - "Build PaStiX with PaRSEC runtime support" OFF) - - # Internal options -+option(INSTALL_EXAMPLES -+ "Install example code" OFF) -+ - option(PASTIX_GENERATE_MODEL - "Enable performances profiling for model generation" OFF) - ---- a/example/CMakeLists.txt -+++ b/example/CMakeLists.txt -@@ -38,15 +38,18 @@ - ) - set (example_install_dir "${CMAKE_INSTALL_DOCDIR}/examples/c") - -+if (BUILD_TESTING) - foreach (_file ${EXAMPLES}) - get_filename_component(_name_we ${_file} NAME_WE) - add_executable(${_name_we} ${_file}) - target_link_libraries(${_name_we} pastix) - target_link_libraries(${_name_we} ${BLAS_LIBRARIES}) -- -- install(TARGETS ${_name_we} RUNTIME DESTINATION ${example_install_dir} ) -- install(FILES ${_file} DESTINATION ${example_install_dir} ) - endforeach() -+endif() -+ -+if (INSTALL_EXAMPLES) -+ -+install(FILES ${EXAMPLES} DESTINATION ${example_install_dir} ) - - ### Install a makefile for user compilation test - set( EXAMPLE_LIBS ${DEPS_LIBRARIES} ) -@@ -61,4 +64,6 @@ - install(FILES "${CMAKE_CURRENT_BINARY_DIR}/make/Makefile" - DESTINATION ${example_install_dir}) - -+endif (INSTALL_EXAMPLES) -+ - include(CTestLists.txt) ---- a/example/old/CMakeLists.txt -+++ b/example/old/CMakeLists.txt -@@ -15,14 +15,17 @@ - ) - set (example_install_dir "${CMAKE_INSTALL_DOCDIR}/examples/c/old") - -+if (BUILD_TESTING) - foreach (_file ${EXAMPLES}) - get_filename_component(_name_we ${_file} NAME_WE) - add_executable("old_${_name_we}" ${_file}) - target_link_libraries("old_${_name_we}" pastix) -- -- install(TARGETS old_${_name_we} RUNTIME DESTINATION ${example_install_dir} ) -- install(FILES ${_file} DESTINATION ${example_install_dir} ) - endforeach() -+endif() -+ -+if (INSTALL_EXAMPLES) -+ -+install(FILES ${EXAMPLES} DESTINATION ${example_install_dir} ) - - ### Install a makefile for user compilation test - set( EXAMPLE_LIBS -@@ -36,3 +39,4 @@ - install(FILES "${CMAKE_CURRENT_BINARY_DIR}/make/Makefile" - DESTINATION ${example_install_dir} ) - -+endif (INSTALL_EXAMPLES) ---- a/spm/wrappers/fortran90/CMakeLists.txt -+++ b/spm/wrappers/fortran90/CMakeLists.txt -@@ -43,15 +43,19 @@ - ) - set ( example_install_dir "${CMAKE_INSTALL_DOCDIR}/examples/fortran" ) - -+if (BUILD_TESTING) - foreach (_file ${EXAMPLES}) - get_filename_component(_name_we ${_file} NAME_WE) - add_executable(${_name_we} examples/${_file}) - target_link_libraries(${_name_we} spmf) - -- install(TARGETS ${_name_we} RUNTIME DESTINATION ${example_install_dir} ) -- install(FILES examples/${_file} DESTINATION ${example_install_dir} ) -- - add_test(fortran_${_name_we} ./${_name_we}) - - endforeach() -+endif() - -+if (INSTALL_EXAMPLES) -+ foreach (_file ${EXAMPLES}) -+ install(FILES examples/${_file} DESTINATION ${example_install_dir} ) -+ endforeach() -+endif() ---- a/spm/wrappers/python/CMakeLists.txt -+++ b/spm/wrappers/python/CMakeLists.txt -@@ -31,11 +31,13 @@ - DESTINATION "${Python_SITELIB}/spm" ) - - # Install python examples -+if (INSTALL_EXAMPLES) - install(FILES - ${CMAKE_CURRENT_SOURCE_DIR}/spm_driver.py - ${CMAKE_CURRENT_SOURCE_DIR}/spm_scipy.py - DESTINATION "${CMAKE_INSTALL_DOCDIR}/examples/python" - ) -+endif() - - ## CTest execution - set( PYTHON_TESTS ---- a/wrappers/fortran90/CMakeLists.txt -+++ b/wrappers/fortran90/CMakeLists.txt -@@ -45,14 +45,13 @@ - ) - set ( example_install_dir "${CMAKE_INSTALL_DOCDIR}/examples/fortran" ) - -+if (BUILD_TESTING) -+ - foreach (_file ${EXAMPLES}) - get_filename_component(_name_we ${_file} NAME_WE) - add_executable(${_name_we} examples/${_file}) - target_link_libraries(${_name_we} pastixf spmf) - -- install(TARGETS ${_name_we} RUNTIME DESTINATION ${example_install_dir} ) -- install(FILES examples/${_file} DESTINATION ${example_install_dir} ) -- - add_test(fortran_${_name_we} ./${_name_we}) - - endforeach() -@@ -66,10 +65,16 @@ - add_executable(${_name_we} examples/${_file}) - target_link_libraries(${_name_we} pastixf spmf) - --install(TARGETS ${_name_we} RUNTIME DESTINATION ${example_install_dir} ) --install(FILES examples/${_file} DESTINATION ${example_install_dir} ) --install(FILES examples/test_seq.in DESTINATION ${example_install_dir} ) --install(FILES examples/test_mt.in DESTINATION ${example_install_dir} ) -+endif (BUILD_TESTING) -+ -+if (INSTALL_EXAMPLES) -+ foreach (_file ${EXAMPLES}) -+ install(FILES examples/${_file} DESTINATION ${example_install_dir} ) -+ endforeach() -+ install(FILES examples/fmultilap.f90 DESTINATION ${example_install_dir} ) -+ install(FILES examples/test_seq.in DESTINATION ${example_install_dir} ) -+ install(FILES examples/test_mt.in DESTINATION ${example_install_dir} ) -+endif() - - # Add OpenMP if available - find_package(OpenMP) ---- a/wrappers/python/CMakeLists.txt -+++ b/wrappers/python/CMakeLists.txt -@@ -32,6 +32,7 @@ - DESTINATION "${Python_SITELIB}/pypastix" ) - - # Install python examples -+if (INSTALL_EXAMPLES) - install(FILES - ${CMAKE_CURRENT_SOURCE_DIR}/examples/simple.py - ${CMAKE_CURRENT_SOURCE_DIR}/examples/simple_obj.py -@@ -39,6 +40,7 @@ - ${CMAKE_CURRENT_SOURCE_DIR}/examples/schur_obj.py - DESTINATION "${CMAKE_INSTALL_DOCDIR}/examples/python" - ) -+endif() - - ## CTest execution - set( PYTHON_TESTS diff --git a/sci-libs/pastix/files/pastix-6.0.3-cmake-installdirs.patch b/sci-libs/pastix/files/pastix-6.0.3-cmake-installdirs.patch deleted file mode 100644 index a586981f37e7..000000000000 --- a/sci-libs/pastix/files/pastix-6.0.3-cmake-installdirs.patch +++ /dev/null @@ -1,424 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -13,6 +13,7 @@ - - include(CMakeDependentOption) - include(CheckFunctionExists) -+include(GNUInstallDirs) - - # The current version number - set(PASTIX_VERSION_MAJOR 6) -@@ -516,7 +517,7 @@ - configure_file ( - "${CMAKE_CURRENT_SOURCE_DIR}/include/pastix/config.h.in" - "${PROJECT_INCLUDE_DIR}/pastix/config.h") --install(FILES "${PROJECT_INCLUDE_DIR}/pastix/config.h" DESTINATION include/pastix) -+install(FILES "${PROJECT_INCLUDE_DIR}/pastix/config.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/pastix) - - include_directories("${CMAKE_CURRENT_SOURCE_DIR}") - include_directories("${CMAKE_CURRENT_BINARY_DIR}") -@@ -844,9 +845,9 @@ - # endforeach() - - install(TARGETS pastix -- RUNTIME DESTINATION bin -- ARCHIVE DESTINATION lib -- LIBRARY DESTINATION lib) -+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - - # Install header files - set(PASTIX_HDRS -@@ -861,8 +862,8 @@ - ) - install(FILES - include/pastix.h -- DESTINATION include ) --install(FILES ${PASTIX_HDRS} DESTINATION include/pastix ) -+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ) -+install(FILES ${PASTIX_HDRS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/pastix ) - - ## Executable and tests - enable_testing() -@@ -934,8 +935,6 @@ - "${CMAKE_CURRENT_SOURCE_DIR}/pastixf.pc.in" - PROJECTNAME PASTIX ) - --generate_env_file( PROJECTNAME PASTIX ) -- - ############################################################# - # - # Build documentation ---- a/cmake_modules/morse_cmake/modules/GenPkgConfig.cmake -+++ b/cmake_modules/morse_cmake/modules/GenPkgConfig.cmake -@@ -196,7 +196,7 @@ - # ------------ - install(FILES - "${CMAKE_BINARY_DIR}/lib/pkgconfig/${fname}.pc" -- DESTINATION lib/pkgconfig ) -+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig" ) - - endforeach() - -@@ -232,7 +232,7 @@ - # installation - # ------------ - install(FILES "${CMAKE_CURRENT_BINARY_DIR}/bin/${LONAME}_env.sh" -- DESTINATION bin) -+ DESTINATION ${CMAKE_INSTALL_BINDIR}) - - endmacro(generate_env_file) - ---- a/example/CMakeLists.txt -+++ b/example/CMakeLists.txt -@@ -36,6 +36,7 @@ - simple.c - step-by-step.c - ) -+set (example_install_dir "${CMAKE_INSTALL_DOCDIR}/examples/c") - - foreach (_file ${EXAMPLES}) - get_filename_component(_name_we ${_file} NAME_WE) -@@ -43,8 +44,8 @@ - target_link_libraries(${_name_we} pastix) - target_link_libraries(${_name_we} ${BLAS_LIBRARIES}) - -- install(TARGETS ${_name_we} RUNTIME DESTINATION examples ) -- install(FILES ${_file} DESTINATION examples ) -+ install(TARGETS ${_name_we} RUNTIME DESTINATION ${example_install_dir} ) -+ install(FILES ${_file} DESTINATION ${example_install_dir} ) - endforeach() - - ### Install a makefile for user compilation test -@@ -58,6 +59,6 @@ - "${CMAKE_CURRENT_SOURCE_DIR}/Makefile.in" - "${CMAKE_CURRENT_BINARY_DIR}/make/Makefile" @ONLY) - install(FILES "${CMAKE_CURRENT_BINARY_DIR}/make/Makefile" -- DESTINATION examples) -+ DESTINATION ${example_install_dir}) - - include(CTestLists.txt) ---- a/example/old/CMakeLists.txt -+++ b/example/old/CMakeLists.txt -@@ -13,14 +13,15 @@ - simple.c - step-by-step.c - ) -+set (example_install_dir "${CMAKE_INSTALL_DOCDIR}/examples/c/old") - - foreach (_file ${EXAMPLES}) - get_filename_component(_name_we ${_file} NAME_WE) - add_executable("old_${_name_we}" ${_file}) - target_link_libraries("old_${_name_we}" pastix) - -- install(TARGETS old_${_name_we} RUNTIME DESTINATION examples/old ) -- install(FILES ${_file} DESTINATION examples/old ) -+ install(TARGETS old_${_name_we} RUNTIME DESTINATION ${example_install_dir} ) -+ install(FILES ${_file} DESTINATION ${example_install_dir} ) - endforeach() - - ### Install a makefile for user compilation test -@@ -33,5 +34,5 @@ - "${CMAKE_CURRENT_SOURCE_DIR}/Makefile.in" - "${CMAKE_CURRENT_BINARY_DIR}/make/Makefile" @ONLY) - install(FILES "${CMAKE_CURRENT_BINARY_DIR}/make/Makefile" -- DESTINATION examples/old ) -+ DESTINATION ${example_install_dir} ) - ---- a/kernels/CMakeLists.txt -+++ b/kernels/CMakeLists.txt -@@ -149,8 +149,8 @@ - - ### Install library - install(TARGETS pastix_kernels -- ARCHIVE DESTINATION lib -- LIBRARY DESTINATION lib) -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - - ### Add generated files to the global property - add_documented_files( ---- a/kernels/gpus/CMakeLists.txt -+++ b/kernels/gpus/CMakeLists.txt -@@ -66,8 +66,8 @@ - # ${cuda_generated_files}) - # cuda_add_cublas_to_target( pastix_cucores_sm${_smtarget} ) - # install(TARGETS pastix_cucores_sm${_smtarget} --# LIBRARY DESTINATION lib --# ARCHIVE DESTINATION lib ) -+# LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} -+# ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ) - # # if( NOT CMAKE_BUILD_SHARED_LIBS ) - # # target_link_libraries( pastix_cucores pastix_cucores_sm${_smtarget} ) - # # endif() -@@ -79,7 +79,7 @@ - cuda_add_cublas_to_target( pastix_kernels_cuda ) - - install(TARGETS pastix_kernels_cuda -- LIBRARY DESTINATION lib -- ARCHIVE DESTINATION lib ) -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ) - - cuda_build_clean_target() ---- a/sopalin/parsec/CMakeLists.txt -+++ b/sopalin/parsec/CMakeLists.txt -@@ -114,8 +114,8 @@ - endif (MPI_C_FOUND) - - install(TARGETS pastix_parsec -- ARCHIVE DESTINATION lib -- LIBRARY DESTINATION lib) -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - - ### Add non-generated documented files to the global property - add_documented_files( ---- a/sopalin/starpu/CMakeLists.txt -+++ b/sopalin/starpu/CMakeLists.txt -@@ -96,8 +96,8 @@ - endif (MPI_C_FOUND) - - install(TARGETS pastix_starpu -- ARCHIVE DESTINATION lib -- LIBRARY DESTINATION lib) -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - - ### Add non-generated documented files to the global property - add_documented_files( ---- a/spm/CMakeLists.txt -+++ b/spm/CMakeLists.txt -@@ -139,7 +139,7 @@ - configure_file ( - "${CMAKE_CURRENT_SOURCE_DIR}/include/spm_config.h.in" - "${CMAKE_CURRENT_BINARY_DIR}/include/spm_config.h") --install(FILES "${CMAKE_CURRENT_BINARY_DIR}/include/spm_config.h" DESTINATION include) -+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/include/spm_config.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) - - include_directories(include) - include_directories("${CMAKE_CURRENT_BINARY_DIR}/include") -@@ -231,14 +231,14 @@ - endif (MPI_C_FOUND) - - install(TARGETS spm -- ARCHIVE DESTINATION lib -- LIBRARY DESTINATION lib) -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - - install(FILES - include/spm.h - include/spm_const.h - include/spm_datatypes.h -- DESTINATION include ) -+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ) - - ### Build pkg-config and environment file - include(GenPkgConfig) -@@ -251,8 +251,6 @@ - "${CMAKE_CURRENT_SOURCE_DIR}/tools/spmf.pc.in" - PROJECTNAME SPM ) - --generate_env_file( PROJECTNAME SPM ) -- - ### Add documented files to the global property - add_documented_files( - DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ---- a/spm/cmake_modules/morse_cmake/modules/GenPkgConfig.cmake -+++ b/spm/cmake_modules/morse_cmake/modules/GenPkgConfig.cmake -@@ -196,7 +196,7 @@ - # ------------ - install(FILES - "${CMAKE_BINARY_DIR}/lib/pkgconfig/${fname}.pc" -- DESTINATION lib/pkgconfig ) -+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig" ) - - endforeach() - -@@ -232,7 +232,7 @@ - # installation - # ------------ - install(FILES "${CMAKE_CURRENT_BINARY_DIR}/bin/${LONAME}_env.sh" -- DESTINATION bin) -+ DESTINATION ${CMAKE_INSTALL_BINDIR}) - - endmacro(generate_env_file) - ---- a/spm/wrappers/fortran90/CMakeLists.txt -+++ b/spm/wrappers/fortran90/CMakeLists.txt -@@ -12,7 +12,7 @@ - - # Coherce CMake to install the generated .mod files - set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/mod_files) --install(DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/ DESTINATION include) -+install(DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) - - add_library( spmf - src/spm_enums.F90 -@@ -30,9 +30,9 @@ - - target_link_libraries( spmf spm ) - install(TARGETS spmf -- RUNTIME DESTINATION bin -- ARCHIVE DESTINATION lib -- LIBRARY DESTINATION lib ) -+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ) - - # - # Add examples -@@ -41,14 +41,15 @@ - spm_driver.f90 - spm_user.f90 - ) -+set ( example_install_dir "${CMAKE_INSTALL_DOCDIR}/examples/fortran" ) - - foreach (_file ${EXAMPLES}) - get_filename_component(_name_we ${_file} NAME_WE) - add_executable(${_name_we} examples/${_file}) - target_link_libraries(${_name_we} spmf) - -- install(TARGETS ${_name_we} RUNTIME DESTINATION examples ) -- install(FILES examples/${_file} DESTINATION examples ) -+ install(TARGETS ${_name_we} RUNTIME DESTINATION ${example_install_dir} ) -+ install(FILES examples/${_file} DESTINATION ${example_install_dir} ) - - add_test(fortran_${_name_we} ./${_name_we}) - ---- a/spm/wrappers/python/CMakeLists.txt -+++ b/spm/wrappers/python/CMakeLists.txt -@@ -9,6 +9,8 @@ - # - ### - -+find_package(Python COMPONENTS Interpreter REQUIRED) -+ - # Configure enum.py - if (SPM_INT64) - set(SPM_PYTHON_INTEGER c_int64) -@@ -26,23 +28,20 @@ - ${CMAKE_CURRENT_SOURCE_DIR}/spm/__spm__.py - ${CMAKE_CURRENT_SOURCE_DIR}/spm/spm.py - ${CMAKE_CURRENT_SOURCE_DIR}/spm/enum.py -- DESTINATION lib/python/spm ) -+ DESTINATION "${Python_SITELIB}/spm" ) - - # Install python examples - install(FILES - ${CMAKE_CURRENT_SOURCE_DIR}/spm_driver.py - ${CMAKE_CURRENT_SOURCE_DIR}/spm_scipy.py -- DESTINATION examples -+ DESTINATION "${CMAKE_INSTALL_DOCDIR}/examples/python" - ) - - ## CTest execution --find_package(PythonInterp QUIET) --if (PYTHONINTERP_FOUND) - set( PYTHON_TESTS - spm_driver spm_scipy ) - - foreach(example ${PYTHON_TESTS} ) - add_test(python_${example} ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${example}.py) - endforeach() --endif() - ---- a/wrappers/fortran90/CMakeLists.txt -+++ b/wrappers/fortran90/CMakeLists.txt -@@ -12,7 +12,7 @@ - - # Coherce CMake to install the generated .mod files - set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/mod_files) --install(DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/ DESTINATION include) -+install(DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) - - add_library( pastixf - src/pastix_enums.F90 -@@ -30,9 +30,9 @@ - - target_link_libraries( pastixf pastix ) - install(TARGETS pastixf -- RUNTIME DESTINATION bin -- ARCHIVE DESTINATION lib -- LIBRARY DESTINATION lib ) -+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ) - - # - # Add examples -@@ -43,14 +43,15 @@ - fstep-by-step.f90 - fmultidof.f90 - ) -+set ( example_install_dir "${CMAKE_INSTALL_DOCDIR}/examples/fortran" ) - - foreach (_file ${EXAMPLES}) - get_filename_component(_name_we ${_file} NAME_WE) - add_executable(${_name_we} examples/${_file}) - target_link_libraries(${_name_we} pastixf spmf) - -- install(TARGETS ${_name_we} RUNTIME DESTINATION examples ) -- install(FILES examples/${_file} DESTINATION examples ) -+ install(TARGETS ${_name_we} RUNTIME DESTINATION ${example_install_dir} ) -+ install(FILES examples/${_file} DESTINATION ${example_install_dir} ) - - add_test(fortran_${_name_we} ./${_name_we}) - -@@ -65,10 +66,10 @@ - add_executable(${_name_we} examples/${_file}) - target_link_libraries(${_name_we} pastixf spmf) - --install(TARGETS ${_name_we} RUNTIME DESTINATION examples ) --install(FILES examples/${_file} DESTINATION examples ) --install(FILES examples/test_seq.in DESTINATION examples ) --install(FILES examples/test_mt.in DESTINATION examples ) -+install(TARGETS ${_name_we} RUNTIME DESTINATION ${example_install_dir} ) -+install(FILES examples/${_file} DESTINATION ${example_install_dir} ) -+install(FILES examples/test_seq.in DESTINATION ${example_install_dir} ) -+install(FILES examples/test_mt.in DESTINATION ${example_install_dir} ) - - # Add OpenMP if available - find_package(OpenMP) ---- a/wrappers/python/CMakeLists.txt -+++ b/wrappers/python/CMakeLists.txt -@@ -9,6 +9,8 @@ - # - ### - -+find_package(Python COMPONENTS Interpreter REQUIRED) -+ - # Configure enum.py - if (PASTIX_INT64) - set(PASTIX_PYTHON_INTEGER c_int64) -@@ -27,7 +29,7 @@ - ${CMAKE_CURRENT_SOURCE_DIR}/examples/pypastix/pastix.py - ${CMAKE_CURRENT_SOURCE_DIR}/examples/pypastix/enum.py - ${CMAKE_CURRENT_SOURCE_DIR}/examples/pypastix/solver.py -- DESTINATION lib/python/pypastix ) -+ DESTINATION "${Python_SITELIB}/pypastix" ) - - # Install python examples - install(FILES -@@ -35,12 +37,10 @@ - ${CMAKE_CURRENT_SOURCE_DIR}/examples/simple_obj.py - ${CMAKE_CURRENT_SOURCE_DIR}/examples/schur.py - ${CMAKE_CURRENT_SOURCE_DIR}/examples/schur_obj.py -- DESTINATION examples -+ DESTINATION "${CMAKE_INSTALL_DOCDIR}/examples/python" - ) - - ## CTest execution --find_package(PythonInterp QUIET) --if (PYTHONINTERP_FOUND) - set( PYTHON_TESTS - simple step-by-step schur simple_obj schur_obj ) - -@@ -57,5 +57,4 @@ - set_tests_properties( python_${example} PROPERTIES - ENVIRONMENT "${TEST_ENV_LIST}" ) - endforeach() --endif() - diff --git a/sci-libs/pastix/files/pastix-6.0.3-cmake-python-optional.patch b/sci-libs/pastix/files/pastix-6.0.3-cmake-python-optional.patch deleted file mode 100644 index 71d356fae2f1..000000000000 --- a/sci-libs/pastix/files/pastix-6.0.3-cmake-python-optional.patch +++ /dev/null @@ -1,64 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -100,6 +100,9 @@ - option(PASTIX_WITH_FORTRAN - "Enable Fortran files/interface/examples to be compiled" ON) - -+option(PASTIX_WITH_PYTHON -+ "Install Python wrapper and examples" ON) -+ - cmake_dependent_option(PASTIX_DISTRIBUTED - "Enable the distributed interface (requires PASTIX_WITH_MPI)" OFF "PASTIX_WITH_MPI" OFF) - ---- a/spm/CMakeLists.txt -+++ b/spm/CMakeLists.txt -@@ -83,6 +83,13 @@ - "Enable Fortran files/interface/examples to be compiled" ON) - endif() - -+if ( DEFINED PASTIX_WITH_PYTHON ) -+ set( SPM_WITH_PYTHON ${PASTIX_WITH_PYTHON} ) -+else() -+ option(SPM_WITH_PYTHON -+ "Install Python wrapper and examples" ON) -+endif() -+ - if (SPM_WITH_FORTRAN) - include(FortranCInterface) - FortranCInterface_HEADER(src/FCmangle.h ---- a/spm/wrappers/CMakeLists.txt -+++ b/spm/wrappers/CMakeLists.txt -@@ -13,8 +13,10 @@ - add_subdirectory( fortran90 ) - endif() - --if (BUILD_SHARED_LIBS) -- add_subdirectory( python ) --else() -- message(STATUS "--- Python wrapper is disabled with static libraries") --endif() -+if (SPM_WITH_PYTHON) -+ if (BUILD_SHARED_LIBS) -+ add_subdirectory( python ) -+ else (BUILD_SHARED_LIBS) -+ message(FATAL_ERROR "--- Python wrapper requested but it cannot be built with static libraries") -+ endif (BUILD_SHARED_LIBS) -+endif (SPM_WITH_PYTHON) ---- a/wrappers/CMakeLists.txt -+++ b/wrappers/CMakeLists.txt -@@ -13,8 +13,10 @@ - add_subdirectory( fortran90 ) - endif() - --if (BUILD_SHARED_LIBS) -- add_subdirectory( python ) --else() -- message(STATUS "--- Python wrapper is disabled with static libraries") --endif() -+if (PASTIX_WITH_PYTHON) -+ if (BUILD_SHARED_LIBS) -+ add_subdirectory( python ) -+ else (BUILD_SHARED_LIBS) -+ message(FATAL_ERROR "--- Python wrapper requested but it cannot be built with static libraries") -+ endif (BUILD_SHARED_LIBS) -+endif (PASTIX_WITH_PYTHON) diff --git a/sci-libs/pastix/files/pastix-6.0.3-cmake-spm-project.patch b/sci-libs/pastix/files/pastix-6.0.3-cmake-spm-project.patch deleted file mode 100644 index f2ca9a5699d1..000000000000 --- a/sci-libs/pastix/files/pastix-6.0.3-cmake-spm-project.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- a/spm/CMakeLists.txt -+++ b/spm/CMakeLists.txt -@@ -8,9 +8,6 @@ - # @date 2013-06-24 - # - ### --cmake_minimum_required (VERSION 3.0) --project (SPM C Fortran) -- - # Check if compiled independently or within another project - if ( ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) - set( BUILD_AS_SUBPROJECT OFF ) diff --git a/sci-libs/pastix/files/pastix-6.0.3-multiple-coeftabMemory.patch b/sci-libs/pastix/files/pastix-6.0.3-multiple-coeftabMemory.patch deleted file mode 100644 index 84dfdd4cc101..000000000000 --- a/sci-libs/pastix/files/pastix-6.0.3-multiple-coeftabMemory.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/sopalin/coeftab.h -+++ b/sopalin/coeftab.h -@@ -41,7 +41,7 @@ - /** - * @brief List of functions to compute the memory gain in low-rank per precision. - */ --coeftab_fct_memory_t coeftabMemory[4]; -+extern coeftab_fct_memory_t coeftabMemory[4]; - - /** - * @} diff --git a/sci-libs/pastix/metadata.xml b/sci-libs/pastix/metadata.xml deleted file mode 100644 index 3e7e413f24da..000000000000 --- a/sci-libs/pastix/metadata.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="project"> - <email>sci@gentoo.org</email> - <name>Gentoo Science Project</name> - </maintainer> - <longdescription lang="en"> - PaStiX (Parallel Sparse matriX package) is a scientific library that - provides a high performance parallel solver for very large sparse - linear systems based on direct methods. Numerical algorithms are - implemented in single or double precision (real or complex) using - LLt, LDLt and LU with static pivoting (for non symmetric matrices - having a symmetric pattern). This solver provides also an adaptive - blockwise iLU(k) factorization that can be used as a parallel - preconditioner using approximated supernodes to build a coarser - block structure of the incomplete factors. - </longdescription> - <use> - <flag name="fortran">Install the Fortran interface</flag> - <flag name="int64">Use 64- rather than 32-bit integer representation</flag> - <flag name="metis">Enable matrix ordering with <pkg>sci-libs/metis</pkg> - </flag> - <flag name="scotch">Enable matrix ordering with <pkg>sci-libs/scotch</pkg> - </flag> - <flag name="starpu">Enable support for ther <pkg>dev-libs/starpu</pkg> runtime</flag> - </use> - <origin>baldeagleos-repo</origin> -</pkgmetadata> diff --git a/sci-libs/pastix/pastix-6.0.3.ebuild b/sci-libs/pastix/pastix-6.0.3.ebuild deleted file mode 100644 index c5b5680eadd3..000000000000 --- a/sci-libs/pastix/pastix-6.0.3.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) - -inherit cmake fortran-2 python-single-r1 - -# package id: changes every version, see the link on inriaforge -PID=38205 -DESCRIPTION="Parallel solver for very large sparse linear systems" -HOMEPAGE="https://solverstack.gitlabpages.inria.fr/pastix/ https://gitlab.inria.fr/solverstack/pastix" -SRC_URI="https://files.inria.fr/pastix/releases/v$(ver_cut 1)/${P}.tar.gz" - -LICENSE="CeCILL-C" -SLOT="0" -KEYWORDS="amd64 arm arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" -IUSE="cuda examples +fortran int64 metis mpi +python +scotch starpu test" - -RESTRICT="!test? ( test )" - -# REQUIRED_USE explanation: -# 1. Not a typo, Python is needed at build time regardless of whether -# the bindings are to be installed or not -# 2. While not enforced by upstream build scripts, having no ordering at all -# results in rather spectacular test and runtime failures. -REQUIRED_USE="${PYTHON_REQUIRED_USE} - || ( metis scotch )" - -RDEPEND="sys-apps/hwloc:0= - virtual/blas - virtual/cblas - virtual/lapack - virtual/lapacke - cuda? ( dev-util/nvidia-cuda-toolkit ) - metis? ( sci-libs/metis[int64(+)=] ) - mpi? ( - virtual/mpi[fortran] - metis? ( sci-libs/parmetis ) - ) - python? ( - ${PYTHON_DEPS} - $(python_gen_cond_dep ' - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/scipy[${PYTHON_USEDEP}] - ') - ) - scotch? ( >=sci-libs/scotch-6.1.0-r1:0=[int64=,mpi?] ) - starpu? ( >=dev-libs/starpu-1.3.0:0= )" -DEPEND="${RDEPEND}" -BDEPEND="${PYTHON_DEPS} - virtual/pkgconfig - test? ( ${RDEPEND} )" - -PATCHES=( - "${FILESDIR}"/${PN}-6.0.3-cmake-installdirs.patch - "${FILESDIR}"/${PN}-6.0.3-cmake-examples-optional.patch - "${FILESDIR}"/${PN}-6.0.3-cmake-python-optional.patch - "${FILESDIR}"/${PN}-6.0.3-cmake-spm-project.patch - "${FILESDIR}"/${PN}-6.0.3-multiple-coeftabMemory.patch -) - -pkg_setup() { - python-single-r1_pkg_setup -} - -src_configure() { - local mycmakeargs=( - -DBUILD_SHARED_LIBS=yes - -DINSTALL_EXAMPLES=$(usex examples) - -DPASTIX_INT64=$(usex int64) - -DPASTIX_ORDERING_METIS=$(usex metis) - -DPASTIX_ORDERING_SCOTCH=$(usex scotch) - -DPASTIX_WITH_CUDA=$(usex cuda) - -DPASTIX_WITH_FORTRAN=$(usex fortran) - -DPASTIX_WITH_MPI=$(usex mpi) - -DPASTIX_WITH_PYTHON=$(usex python) - -DPASTIX_WITH_STARPU=$(usex starpu) - ) - cmake_src_configure -} - -src_install() { - cmake_src_install - use python && python_optimize -} |
