# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 CMAKE_MAKEFILE_GENERATOR="ninja" inherit bash-completion-r1 cmake cuda readme.gentoo-r1 toolchain-funcs xdg-utils SRC_URI=" 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 )" KEYWORDS="amd64 arm ~x86 ~amd64-linux ~x86-linux ~x64-macos" ACCE_IUSE="cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 cpu_flags_x86_fma4 cpu_flags_x86_avx cpu_flags_x86_avx2" DESCRIPTION="The ultimate molecular dynamics simulation package" 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="X blas cuda +doc double-precision +fftw +hwloc lapack mkl mpi +offensive opencl openmp +single-precision test +threads +tng ${ACCE_IUSE}" CDEPEND=" X? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE ) blas? ( virtual/blas ) cuda? ( >=dev-util/nvidia-cuda-toolkit-4.2.9-r1 ) opencl? ( virtual/opencl ) fftw? ( sci-libs/fftw:3.0= ) hwloc? ( "${T}/${n}" || die newbashcomp "${T}"/"${n}" "${n}" done rm "${ED}"/usr/bin/gmx-completion*.bash || die readme.gentoo_create_doc } pkg_postinst() { einfo einfo "Please read and cite gromacs related papers from list:" einfo "https://www.gromacs.org/Gromacs_papers" einfo readme.gentoo_print_elog }