diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-21 01:52:56 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-21 01:52:56 +0000 |
commit | b46782805d0eed36ce9685f7e9abf25671f24d7d (patch) | |
tree | 4b7992f7355b710c35a7c4bfff9b57eb64e4c8b5 /sci-chemistry/gromacs/gromacs-9999.ebuild | |
parent | d4d7098dcb2f9dd257109bbcb55fd40beda1b78d (diff) |
gentoo auto-resync : 21:12:2022 - 01:52:55
Diffstat (limited to 'sci-chemistry/gromacs/gromacs-9999.ebuild')
-rw-r--r-- | sci-chemistry/gromacs/gromacs-9999.ebuild | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/sci-chemistry/gromacs/gromacs-9999.ebuild b/sci-chemistry/gromacs/gromacs-9999.ebuild index 55fe829229e7..c69ff70b99d3 100644 --- a/sci-chemistry/gromacs/gromacs-9999.ebuild +++ b/sci-chemistry/gromacs/gromacs-9999.ebuild @@ -22,24 +22,24 @@ if [[ ${PV} = *9999* ]]; then inherit git-r3 else SRC_URI=" - http://ftp.gromacs.org/gromacs/${PN}-${PV/_/-}.tar.gz - doc? ( https://ftp.gromacs.org/manual/manual-${PV/_/-}.pdf -> manual-${PV}.pdf ) - test? ( http://ftp.gromacs.org/regressiontests/regressiontests-${PV/_/-}.tar.gz )" + https://ftp.gromacs.org/gromacs/${PN}-${PV/_/-}.tar.gz + doc? ( https://ftp.gromacs.org/manual/manual-${PV/_/-}.pdf ) + test? ( https://ftp.gromacs.org/regressiontests/regressiontests-${PV/_/-}.tar.gz )" # since 2022 arm support was dropped (but not arm64) - KEYWORDS="~amd64 -arm ~x86 ~amd64-linux ~x86-linux ~x64-macos" + KEYWORDS="~amd64 -arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" fi ACCE_IUSE="cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 cpu_flags_x86_fma4 cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_avx512f cpu_flags_arm_neon" DESCRIPTION="The ultimate molecular dynamics simulation package" -HOMEPAGE="http://www.gromacs.org/" +HOMEPAGE="https://www.gromacs.org/" # see COPYING for details # https://repo.or.cz/w/gromacs.git/blob/HEAD:/COPYING # base, vmd plugins, fftpack from numpy, blas/lapck from netlib, memtestG80 library, mpi_thread lib LICENSE="LGPL-2.1 UoI-NCSA !mkl? ( !fftw? ( BSD ) !blas? ( BSD ) !lapack? ( BSD ) ) cuda? ( LGPL-3 ) threads? ( BSD )" SLOT="0/${PV}" -IUSE="blas cuda +custom-cflags +doc build-manual double-precision +fftw +gmxapi +gmxapi-legacy +hwloc lapack mkl mpi +offensive opencl openmp +python +single-precision test +threads +tng ${ACCE_IUSE}" +IUSE="blas clang clang-cuda cuda +custom-cflags +doc build-manual double-precision +fftw +gmxapi +gmxapi-legacy +hwloc lapack mkl mpi +offensive opencl openmp +python +single-precision test +threads +tng ${ACCE_IUSE}" CDEPEND=" blas? ( virtual/blas ) @@ -51,11 +51,12 @@ CDEPEND=" mkl? ( sci-libs/mkl ) mpi? ( virtual/mpi[cxx] ) sci-libs/lmfit:= - >=dev-cpp/muParser-2.3.4:= + >=dev-cpp/muParser-2.3:= ${PYTHON_DEPS} " BDEPEND="${CDEPEND} virtual/pkgconfig + clang? ( >=sys-devel/clang-6:* ) build-manual? ( app-doc/doxygen $(python_gen_cond_dep ' @@ -73,7 +74,9 @@ REQUIRED_USE=" || ( single-precision double-precision ) doc? ( !build-manual ) cuda? ( single-precision ) + opencl? ( single-precision ) cuda? ( !opencl ) + clang-cuda? ( clang cuda ) mkl? ( !blas !fftw !lapack ) ${PYTHON_REQUIRED_USE}" @@ -114,6 +117,19 @@ src_prepare() { xdg_environment_reset #591952 + # we can use clang as default + if use clang && ! tc-is-clang ; then + export CC=${CHOST}-clang + export CXX=${CHOST}-clang++ + else + tc-export CXX CC + fi + # clang-cuda need to filter mfpmath + if use clang-cuda ; then + filter-mfpmath sse + filter-mfpmath i386 + fi + cmake_src_prepare use cuda && cuda_src_prepare @@ -184,11 +200,6 @@ src_configure() { if use fftw; then fft_opts=( -DGMX_FFT_LIBRARY=fftw3 ) - elif use mkl && has_version "=sci-libs/mkl-10*"; then - fft_opts=( -DGMX_FFT_LIBRARY=mkl - -DMKL_INCLUDE_DIR="${MKLROOT}/include" - -DMKL_LIBRARIES="$(echo /opt/intel/mkl/10.0.5.025/lib/*/libmkl.so);$(echo /opt/intel/mkl/10.0.5.025/lib/*/libiomp*.so)" - ) elif use mkl; then local bits=$(get_libdir) fft_opts=( -DGMX_FFT_LIBRARY=mkl @@ -230,6 +241,7 @@ src_configure() { [[ ${x} = "double" ]] && p="-DGMX_DOUBLE=ON" || p="-DGMX_DOUBLE=OFF" local gpu=( "-DGMX_GPU=OFF" ) [[ ${x} = "float" ]] && use cuda && gpu=( "-DGMX_GPU=CUDA" ) + [[ ${x} = "float" ]] && use clang-cuda && gpu=( "-DGMX_GPU=CUDA" "-DGMX_CLANG_CUDA=ON" ) use opencl && gpu=( "-DGMX_GPU=OPENCL" ) mycmakeargs=( ${mycmakeargs_pre[@]} ${p} |