diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2023-02-02 11:45:21 +0300 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2023-02-02 11:45:36 +0300 |
commit | 5682bd8f736d4405383717b48c7b3630925fbc12 (patch) | |
tree | c4be1d3fd4f00eac2bf7b06ba6d4fcefc968272a /sci-chemistry/gromacs | |
parent | media-sound/abcmidi: dropped obsolete 2022.12.09 (diff) | |
download | gentoo-5682bd8f736d4405383717b48c7b3630925fbc12.tar.gz gentoo-5682bd8f736d4405383717b48c7b3630925fbc12.tar.bz2 gentoo-5682bd8f736d4405383717b48c7b3630925fbc12.zip |
sci-chemistry/gromacs: add 2021.7
Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
Diffstat (limited to 'sci-chemistry/gromacs')
-rw-r--r-- | sci-chemistry/gromacs/Manifest | 3 | ||||
-rw-r--r-- | sci-chemistry/gromacs/gromacs-2021.7.ebuild | 352 |
2 files changed, 355 insertions, 0 deletions
diff --git a/sci-chemistry/gromacs/Manifest b/sci-chemistry/gromacs/Manifest index 6166ff22c51f..1e435c15c0f9 100644 --- a/sci-chemistry/gromacs/Manifest +++ b/sci-chemistry/gromacs/Manifest @@ -2,17 +2,20 @@ DIST gromacs-2018.8.tar.gz 29913703 BLAKE2B 8780032305928067fbfe1559efe9eedc4d47 DIST gromacs-2019.6.tar.gz 33446147 BLAKE2B adc21fb6b841b06d499607f8c0166a673645ef5af0b40bd823d0fff5ea24397e6301c5e1e0070986ae1ce1deba8a42052b66da148b071c1e21f2fe3908fee275 SHA512 7c227a9539e5775d5d128ae9e872a24181d79cdcd2852b86453597987e8d7332ecec371da65d089f6e610c54aafbccc8824ce298743383dd6240719ebee692a8 DIST gromacs-2020.7.tar.gz 29175554 BLAKE2B 98f1aa415946f8eb113febc81105f0c1b0919b96fc3c55a0ab83bf3950ff509b81eade92e645adb0bc2b407df239e20cf3f19828b6e08616437c8693c1fddcc8 SHA512 1d375c44cec38445e56cea252623b5b6c565680268999d4b6c14d6dc38759a27227655b2d29efaab9f9115d3677b446cb555e11cddafa0dc10c4827caaa2477b DIST gromacs-2021.6.tar.gz 38012702 BLAKE2B 023ae37dc53643758afa050fd179cd66f3c6d6266f6afceee5eb35c890a3ae284956f2bc2409156d6e1fa03a7f23f7b04c27e1820547fd5f147b344d94da7d40 SHA512 65d7874e5cd838ce4f29d033c66304738ccc30f1987f9f8541725058b2fc4551302a399f6ce773e81ac9485963187c48feaf92c71789f4c345c82bd335f806a7 +DIST gromacs-2021.7.tar.gz 38028032 BLAKE2B 2dc1b15ca8692ca5cf4ad1c7a266b9e2ced064d34a63cef61fea69e48231dd0310cfd8484d29c56cdb599f795d7655959f40038ac933b46ad2841d57bf2b3646 SHA512 ca478533da3bcb377fda30682660db8eb13beef6456fac6013a1a97ec3be60b5594567412e1e2a31392e484f9a40a22da1f12336f4738cf0422ff4f3e8814609 DIST gromacs-2022.4.tar.gz 40352282 BLAKE2B 616ba05a70a483d7d8fadefb383ac9fc8825ac09ea92f55a0222c57ac91e4a045fb55405ec963303d8dbabb04b3d1f8c73062785b3812b3c6b7582e002dc5538 SHA512 15c642f2b63c1731a01a3b58c13d454f57c29607554a6693c2e62f38da574c6d596c5cb6f361e0feb5e1069b3b19bb49ceaa432c030da91f48e41654e3e6a62f DIST gromacs-2023-rc1.tar.gz 41863824 BLAKE2B c365ccd83b8f271be8f1a515f4dc0ebd729ce43023e979a52046fc827e786f84f09de894af9b8da4f7ce6e06a1ae050e8ff387892f76787857327ce2bc397042 SHA512 7ab8158624e0c93c0f06bd7023b97012d80afa5e068cb4489e7e9700171a5a8f69ae042bf0256c78aaec527d9a1b88f5f2dce6c8c7d4f46a457b6a9568b70f45 DIST manual-2018.8.pdf 10025023 BLAKE2B afb0a6e6a72d78df743fcb57e7c1716848589e571dd35167b957a9b407ca27978ccfb6cb9e0df9c9439b888f352501a00ba32281ed1e0b4193bd606f1d77152e SHA512 b1972f7ce965bfc9377542993c5943ea4868a8ed23a969d4203264746d6bea3a7a65c6379196ece37fd6d68ec7ec80f827bde87d1049284af7082759a124f1d5 DIST manual-2019.6.pdf 12702376 BLAKE2B c350127bc06a9eb3dee73da39037c84daeb89500e23cb131bd19a150bf60602d4dde7611e0c6f0f344af4093e96a899303dac71b4df56fd0c44c3a48a56606b7 SHA512 dfdff67c2c1c9ce1f1c236b7686c5331b0fe86951da6c98eddd6a3e748815e0be0a9653ae4318469fcdd913c4e7c355d64a997cc80b9d9fbe6282ef6d98e61eb DIST manual-2020.7.pdf 11850780 BLAKE2B 38594e87993badfbbcf47d6010a7f67d3c3426dab85e1462916b4d62be27b5764953f912cf2b71ee24877e0bfa27b3f74431da2da81b4977d58cb66b2cc795a3 SHA512 4f184f2c90e0bac01a48069cc546cd5b04fa5f543f90dd2d68c6d17be278152fd09456b6a6c5c8236f8fb85a174d6ec7a1c7b44d437b4e6fea5d0ada73cec0f6 DIST manual-2021.6.pdf 12256595 BLAKE2B 5d808e38571b38c1f6e0d115f6e604238206cc001f59d05ed855e80c324c0e6fd7767adb723b3d0edd1267ae5973a3b83b76bd04d2dc99769e6440600d8e2146 SHA512 64fe56422d7417f6f61b10346c99e24c3f423f0cedc3794e0809250282bc87ef692b47ae6c3f95ad7994aa3860ed82035cbacc76eb78a2f54a29052a05260af2 +DIST manual-2021.7.pdf 12256526 BLAKE2B 6f298d7dac142f66914bbc2ea7d6ca70c4aeafaf33ccf12336d5cec64b1f1097b5332c767bb411ccef706ec6184479a84bcf59bda21c4249d45d8ce3dea08e79 SHA512 197765accb8ab6c5f1cc94b2697ff1817e157d85fa231dfe36a85036076e04da2a8035de66aba4f46c6dd7f553176357b94c92e1da5d1dabc574c627deee5279 DIST manual-2022.4.pdf 13080976 BLAKE2B 45685fa1d727aa30425e946ac72e0bd723528032e3fb45525d3c025316ee2682ea3c9cc2fd75b5cd4e900adbc6e7f577e3368d9e0681294fd1515df3d2e5d840 SHA512 a7ac3a80a90f14b6917e15633d77230d24cdcf19ade38d14b35c6451074848a7754b33c612e2a26a657f2edd3d6710e5a8130cacb107d4085d1bd934267ad623 DIST manual-2023-rc1.pdf 13506754 BLAKE2B 9487753e788fa5b2d01255717769e0b01cf7adcb4ae99a1f37f4ad0f8acccfbf4eff0a4c76add63bc82bffdf844cf8dd1d858d15a6bacd6635ec3a3474e10f6f SHA512 f26df914402793c656a798847524c0b9207a4163bb36d6cb90740a699418719f7b124343b4886e50d92023c14f8c1e61e950c12b8e1e4702007e34677cd17ef2 DIST regressiontests-2018.8.tar.gz 67855469 BLAKE2B 34c9b339f6229f483afbb5192ee6ba8b8f72d5c26907a853af9c53dfece0d88739e48f6b44b78d1c010f988f9385d077285300522164f533a5861e9dda879275 SHA512 3642389d27bd1942cd0f091c940ae97b197b94856a387fe581dc516b0d4169480f16551d4ba357f9282b3337d605c286d51dd38112ac87c826dda634904836bb DIST regressiontests-2019.6.tar.gz 67643195 BLAKE2B 1e054e24b187946f7ea28090d4f20cf8e1d79a26253f57ba07d130e0773d8541b8a1552a38023d31a68ce8bc62d8e0af1d98609234bb3e7d3e6d567307ebb386 SHA512 eacf1c55b982515a305c29459fe80a7cd558a8481e5689962aa956148af542568b1d1ce59c6784ecb0afd4768c2b664afa21e12af2d89ae2b06b1ba61ad72036 DIST regressiontests-2020.7.tar.gz 48541487 BLAKE2B 255608b52158c6c01e7c7c4dcf075128ecf22b2f26d32e8c203de8a4bc69c60ec95f49cf8ccd64abc3073c5e8dca9d6b01daed9dfb8f67bce2dd068ed01acd05 SHA512 2458582f94f3c9f4e1454824ce3940b4f5b6cb2151d06846c42e7a9448296fd2a6df4f53be9624e0d3317d2b59f89bb5348eb8b2970d7b46ac22ca989ef3458a DIST regressiontests-2021.6.tar.gz 48537070 BLAKE2B 982fad6b23da5c1e6d32009f9f08772419c08f15549aea85ec0cd144c7faf5b48ed9b49a2cae662c28008514911cc18e0b39b994854d95f4f206e728b76f3fe5 SHA512 9c0ca29df822bc13005fd35bdb85cc075ea667112ae1670af0d8306cdd2bd348a9f9904bd10da6db458d9c11f4d44860e1fc62e9686d2c6e396e265d18768ba4 +DIST regressiontests-2021.7.tar.gz 48537500 BLAKE2B b0c97fa652cb9b972c50f29822f530fcaa2ec9acb6d6442114fc6446c54aade5eb1bfa153c69a7e8bf64b66e8b041d7f8e0d51e7f7b0516f9e03f3d9ad626193 SHA512 7cbead90aa6d62346dcf7c2249c3cfa179884b987a749624444d2f59d93e0322f7721143bf6eb44d26102635dc70a73546ef82d4647558b6320bfdd459074017 DIST regressiontests-2022.4.tar.gz 48614599 BLAKE2B d41d59d4336455c87f3877be48ec49b2cdc989548c51ef9c8277b05bb6cf3dc05ebfa91a0248cc113c130a0ed19aae2c8316184caf37b72aa612b211fe41b144 SHA512 6495a286b201774ea2a922376ff5c0abaae7aaef1dfd28a1a61c817b5c6ac83db99300d43cc019745ca32a025e1f8a7f538342af539d9d753e494c550b429706 DIST regressiontests-2023-rc1.tar.gz 48611523 BLAKE2B 4ef09171007c45f38239c8e966d0c9a611ee9b133c91fb51fc5d25a7f67eab01e32b1ef89c12b42eb140b5e189834697e4116ad6c9c302ab33d15cf871ac61d6 SHA512 f5c2a486f8b416140b69841c42df8bb1e38fc0d7b58badc4370a59ca543c48c7875a877eab828ee03f87e55501f4e8fcdd18103939825f8b57f681f99b108f42 diff --git a/sci-chemistry/gromacs/gromacs-2021.7.ebuild b/sci-chemistry/gromacs/gromacs-2021.7.ebuild new file mode 100644 index 000000000000..8cb244317617 --- /dev/null +++ b/sci-chemistry/gromacs/gromacs-2021.7.ebuild @@ -0,0 +1,352 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_MAKEFILE_GENERATOR="ninja" + +PYTHON_COMPAT=( python3_{9..11} ) + +DISTUTILS_OPTIONAL=1 +DISTUTILS_USE_PEP517=no +DISTUTILS_SINGLE_IMPL=1 + +inherit bash-completion-r1 cmake cuda distutils-r1 flag-o-matic readme.gentoo-r1 toolchain-funcs xdg-utils + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI=" + https://gitlab.com/gromacs/gromacs.git + https://github.com/gromacs/gromacs.git + git://git.gromacs.org/gromacs.git" + [[ ${PV} = 9999 ]] && EGIT_BRANCH="master" || EGIT_BRANCH="release-${PV:0:4}" + inherit git-r3 +else + 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" +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="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 +custom-cflags +doc build-manual double-precision +fftw +gmxapi +gmxapi-legacy +hwloc lapack +lmfit mkl mpi +offensive opencl openmp +python +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-6.5.14[profiler] ) + opencl? ( virtual/opencl ) + fftw? ( sci-libs/fftw:3.0= ) + hwloc? ( sys-apps/hwloc:= ) + lapack? ( virtual/lapack ) + lmfit? ( sci-libs/lmfit:= ) + mkl? ( sci-libs/mkl ) + mpi? ( virtual/mpi ) + ${PYTHON_DEPS} + " +BDEPEND="${CDEPEND} + virtual/pkgconfig + build-manual? ( + app-doc/doxygen + $(python_gen_cond_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + ') + media-gfx/mscgen + media-gfx/graphviz + dev-texlive/texlive-latex + dev-texlive/texlive-latexextra + media-gfx/imagemagick + )" +RDEPEND="${CDEPEND}" + +REQUIRED_USE=" + || ( single-precision double-precision ) + doc? ( !build-manual ) + cuda? ( single-precision ) + opencl? ( single-precision ) + cuda? ( !opencl ) + mkl? ( !blas !fftw !lapack ) + ${PYTHON_REQUIRED_USE}" + +DOCS=( AUTHORS README ) + +RESTRICT="!test? ( test )" + +PATCHES=( "${FILESDIR}/${PN}-2021-musl-stdint.patch" ) + +if [[ ${PV} != *9999 ]]; then + S="${WORKDIR}/${PN}-${PV/_/-}" +fi + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp + python-single-r1_pkg_setup +} + +src_unpack() { + if [[ ${PV} != *9999 ]]; then + default + else + git-r3_src_unpack + if use test; then + EGIT_REPO_URI="git://git.gromacs.org/regressiontests.git" \ + EGIT_BRANCH="${EGIT_BRANCH}" \ + EGIT_CHECKOUT_DIR="${WORKDIR}/regressiontests"\ + git-r3_src_unpack + fi + fi +} + +src_prepare() { + #notes/todos + # -on apple: there is framework support + + xdg_environment_reset #591952 + + cmake_src_prepare + + use cuda && cuda_src_prepare + + GMX_DIRS="" + use single-precision && GMX_DIRS+=" float" + use double-precision && GMX_DIRS+=" double" + + if use test; then + for x in ${GMX_DIRS}; do + mkdir -p "${WORKDIR}/${P}_${x}" || die + cp -al "${WORKDIR}/regressiontests"* "${WORKDIR}/${P}_${x}/tests" || die + done + fi + + DOC_CONTENTS="Gromacs can use sci-chemistry/vmd to read additional file formats" + if use build-manual; then + # try to create policy for imagemagik + mkdir -p ${HOME}/.config/ImageMagick + cat >> ${HOME}/.config/ImageMagick/policy.xml <<- EOF + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE policymap [ + <!ELEMENT policymap (policy)+> + !ATTLIST policymap xmlns CDATA #FIXED ''> + <!ELEMENT policy EMPTY> + <!ATTLIST policy xmlns CDATA #FIXED '' domain NMTOKEN #REQUIRED + name NMTOKEN #IMPLIED pattern CDATA #IMPLIED rights NMTOKEN #IMPLIED + stealth NMTOKEN #IMPLIED value CDATA #IMPLIED> + ]> + <policymap> + <policy domain="coder" rights="read | write" pattern="PS" /> + <policy domain="coder" rights="read | write" pattern="PS2" /> + <policy domain="coder" rights="read | write" pattern="PS3" /> + <policy domain="coder" rights="read | write" pattern="EPS" /> + <policy domain="coder" rights="read | write" pattern="PDF" /> + <policy domain="coder" rights="read | write" pattern="XPS" /> + </policymap> + EOF + fi +} + +src_configure() { + local mycmakeargs_pre=( ) extra fft_opts=( ) + local acce="AUTO" + + if use custom-cflags; then + #go from slowest to fastest acceleration + acce="None" + if (use amd64 || use x86); then + use cpu_flags_x86_sse2 && acce="SSE2" + use cpu_flags_x86_sse4_1 && acce="SSE4.1" + use cpu_flags_x86_fma4 && acce="AVX_128_FMA" + use cpu_flags_x86_avx && acce="AVX_256" + use cpu_flags_x86_avx2 && acce="AVX2_256" + use cpu_flags_x86_avx512f && acce="AVX_512" + elif (use arm); then + use cpu_flags_arm_neon && acce="ARM_NEON" + elif (use arm64); then + use cpu_flags_arm_neon && acce="ARM_NEON_ASIMD" + fi + else + strip-flags + fi + + #to create man pages, build tree binaries are executed (bug #398437) + [[ ${CHOST} = *-darwin* ]] && \ + extra+=" -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF" + + if use fftw; then + fft_opts=( -DGMX_FFT_LIBRARY=fftw3 ) + elif use mkl; then + local bits=$(get_libdir) + fft_opts=( -DGMX_FFT_LIBRARY=mkl + -DMKL_INCLUDE_DIR="$(echo /opt/intel/*/mkl/include)" + -DMKL_LIBRARIES="$(echo /opt/intel/*/mkl/lib/*${bits/lib}/libmkl_rt.so)" + ) + else + fft_opts=( -DGMX_FFT_LIBRARY=fftpack ) + fi + + if use lmfit; then + local lmfit_opts=( -DGMX_USE_LMFIT=EXTERNAL ) + else + local lmfit_opts=( -DGMX_USE_LMFIT=INTERNAL ) + fi + + mycmakeargs_pre+=( + "${fft_opts[@]}" + "${lmfit_opts[@]}" + -DGMX_X11=$(usex X) + -DGMX_EXTERNAL_BLAS=$(usex blas) + -DGMX_EXTERNAL_LAPACK=$(usex lapack) + -DGMX_OPENMP=$(usex openmp) + -DGMX_COOL_QUOTES=$(usex offensive) + -DGMX_USE_TNG=$(usex tng) + -DGMX_BUILD_MANUAL=$(usex build-manual) + -DGMX_HWLOC=$(usex hwloc) + -DGMX_DEFAULT_SUFFIX=off + -DGMX_SIMD="$acce" + -DGMX_VMD_PLUGIN_PATH="${EPREFIX}/usr/$(get_libdir)/vmd/plugins/*/molfile/" + -DBUILD_TESTING=$(usex test) + -DGMX_BUILD_UNITTESTS=$(usex test) + -DPYTHON_EXECUTABLE="${EPREFIX}/usr/bin/${EPYTHON}" + ${extra} + ) + + for x in ${GMX_DIRS}; do + einfo "Configuring for ${x} precision" + local suffix="" + #if we build single and double - double is suffixed + use double-precision && use single-precision && \ + [[ ${x} = "double" ]] && suffix="_d" + local p + [[ ${x} = "double" ]] && p="-DGMX_DOUBLE=ON" || p="-DGMX_DOUBLE=OFF" + local gpu=( "-DGMX_GPU=OFF" ) + [[ ${x} = "float" ]] && use cuda && gpu=( "-DGMX_GPU=CUDA" ) + use opencl && gpu=( "-DGMX_GPU=OPENCL" ) + local mycmakeargs=( + ${mycmakeargs_pre[@]} ${p} + -DGMX_MPI=OFF + -DGMX_THREAD_MPI=$(usex threads) + -DGMXAPI=$(usex gmxapi) + -DGMX_INSTALL_LEGACY_API=$(usex gmxapi-legacy) + "${gpu[@]}" + "$(use test && echo -DREGRESSIONTEST_PATH="${WORKDIR}/${P}_${x}/tests")" + -DGMX_BINARY_SUFFIX="${suffix}" + -DGMX_LIBS_SUFFIX="${suffix}" + -DGMX_PYTHON_PACKAGE=$(usex python) + ) + BUILD_DIR="${WORKDIR}/${P}_${x}" cmake_src_configure + [[ ${CHOST} != *-darwin* ]] || \ + sed -i '/SET(CMAKE_INSTALL_NAME_DIR/s/^/#/' "${WORKDIR}/${P}_${x}/gentoo_rules.cmake" || die + use mpi || continue + einfo "Configuring for ${x} precision with mpi" + local mycmakeargs=( + ${mycmakeargs_pre[@]} ${p} + -DGMX_THREAD_MPI=OFF + -DGMX_MPI=ON + -DGMX_OPENMM=OFF + -DGMXAPI=OFF + "${opencl[@]}" + "${cuda[@]}" + -DGMX_BUILD_MDRUN_ONLY=ON + -DBUILD_SHARED_LIBS=OFF + -DGMX_BUILD_MANUAL=OFF + -DGMX_BINARY_SUFFIX="_mpi${suffix}" + -DGMX_LIBS_SUFFIX="_mpi${suffix}" + ) + BUILD_DIR="${WORKDIR}/${P}_${x}_mpi" CC="mpicc" cmake_src_configure + [[ ${CHOST} != *-darwin* ]] || \ + sed -i '/SET(CMAKE_INSTALL_NAME_DIR/s/^/#/' "${WORKDIR}/${P}_${x}_mpi/gentoo_rules.cmake" || die + done +} + +src_compile() { + for x in ${GMX_DIRS}; do + einfo "Compiling for ${x} precision" + BUILD_DIR="${WORKDIR}/${P}_${x}"\ + cmake_src_compile + if use python; then + BUILD_DIR="${WORKDIR}/${P}_${x}"\ + cmake_src_compile python_packaging/all + BUILD_DIR="${WORKDIR}/${P}" \ + distutils-r1_src_compile + fi + # not 100% necessary for rel ebuilds as available from website + if use build-manual; then + BUILD_DIR="${WORKDIR}/${P}_${x}"\ + cmake_src_compile manual + fi + use mpi || continue + einfo "Compiling for ${x} precision with mpi" + BUILD_DIR="${WORKDIR}/${P}_${x}_mpi"\ + cmake_src_compile + done +} + +src_test() { + for x in ${GMX_DIRS}; do + BUILD_DIR="${WORKDIR}/${P}_${x}"\ + cmake_src_compile check + done +} + +src_install() { + for x in ${GMX_DIRS}; do + BUILD_DIR="${WORKDIR}/${P}_${x}" \ + cmake_src_install + if use python; then + BUILD_DIR="${WORKDIR}/${P}_${x}" \ + cmake_src_install python_packaging/install + fi + if use build-manual; then + newdoc "${WORKDIR}/${P}_${x}"/docs/manual/gromacs.pdf "${PN}-manual-${PV}.pdf" + fi + + if use doc; then + if [[ ${PV} != *9999* ]]; then + newdoc "${DISTDIR}/manual-${PV}.pdf" "${PN}-manual-${PV}.pdf" + fi + fi + + use mpi || continue + BUILD_DIR="${WORKDIR}/${P}_${x}_mpi" \ + cmake_src_install + done + + if use tng; then + insinto /usr/include/tng + doins src/external/tng_io/include/tng/*h + fi + # drop unneeded stuff + rm "${ED}"/usr/bin/GMXRC* || die + for x in "${ED}"/usr/bin/gmx-completion-*.bash ; do + local n=${x##*/gmx-completion-} + n="${n%.bash}" + cat "${ED}"/usr/bin/gmx-completion.bash "$x" > "${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 +} |