From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 97F0B1382C5 for ; Fri, 18 Jun 2021 12:35:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D7414E0843; Fri, 18 Jun 2021 12:35:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A99E5E0843 for ; Fri, 18 Jun 2021 12:35:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 945A3335CCD for ; Fri, 18 Jun 2021 12:35:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EE6FF797 for ; Fri, 18 Jun 2021 12:35:30 +0000 (UTC) From: "Alexey Shvetsov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexey Shvetsov" Message-ID: <1624019726.01d2250e0e1ae030ca8f51470e0c0d844452c963.alexxy@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/gromacs/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-chemistry/gromacs/gromacs-2020.4.ebuild sci-chemistry/gromacs/gromacs-2020.6.ebuild sci-chemistry/gromacs/gromacs-2021.2.ebuild sci-chemistry/gromacs/gromacs-2021.9999.ebuild sci-chemistry/gromacs/gromacs-9999.ebuild X-VCS-Directories: sci-chemistry/gromacs/ X-VCS-Committer: alexxy X-VCS-Committer-Name: Alexey Shvetsov X-VCS-Revision: 01d2250e0e1ae030ca8f51470e0c0d844452c963 X-VCS-Branch: master Date: Fri, 18 Jun 2021 12:35:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 89f3e131-d105-4616-84c9-553a93c520e6 X-Archives-Hash: 65e68d261877aba28af1ff73322ef9ae commit: 01d2250e0e1ae030ca8f51470e0c0d844452c963 Author: Alexey Shvetsov gentoo org> AuthorDate: Fri Jun 18 12:35:17 2021 +0000 Commit: Alexey Shvetsov gentoo org> CommitDate: Fri Jun 18 12:35:26 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01d2250e sci-chemistry/gromacs: Fix manual use Closes: https://bugs.gentoo.org/796497 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Alexey Shvetsov gentoo.org> sci-chemistry/gromacs/gromacs-2020.4.ebuild | 6 ++- sci-chemistry/gromacs/gromacs-2020.6.ebuild | 6 ++- sci-chemistry/gromacs/gromacs-2021.2.ebuild | 6 ++- sci-chemistry/gromacs/gromacs-2021.9999.ebuild | 6 ++- sci-chemistry/gromacs/gromacs-9999.ebuild | 61 +++++++++++++++----------- 5 files changed, 52 insertions(+), 33 deletions(-) diff --git a/sci-chemistry/gromacs/gromacs-2020.4.ebuild b/sci-chemistry/gromacs/gromacs-2020.4.ebuild index 266941a81e3..4a9027a2d18 100644 --- a/sci-chemistry/gromacs/gromacs-2020.4.ebuild +++ b/sci-chemistry/gromacs/gromacs-2020.4.ebuild @@ -74,7 +74,7 @@ RDEPEND="${CDEPEND}" REQUIRED_USE=" || ( single-precision double-precision ) - || ( doc build-manual ) + doc? ( !build-manual ) cuda? ( single-precision ) cuda? ( !opencl ) mkl? ( !blas !fftw !lapack ) @@ -317,7 +317,9 @@ src_install() { fi if use doc; then - newdoc "${DISTDIR}/manual-${PV}.pdf" "${PN}-manual-${PV}.pdf" + if [[ ${PV} != *9999* ]]; then + newdoc "${DISTDIR}/manual-${PV}.pdf" "${PN}-manual-${PV}.pdf" + fi fi use mpi || continue diff --git a/sci-chemistry/gromacs/gromacs-2020.6.ebuild b/sci-chemistry/gromacs/gromacs-2020.6.ebuild index 41ac7771497..0e2baeb3b30 100644 --- a/sci-chemistry/gromacs/gromacs-2020.6.ebuild +++ b/sci-chemistry/gromacs/gromacs-2020.6.ebuild @@ -74,7 +74,7 @@ RDEPEND="${CDEPEND}" REQUIRED_USE=" || ( single-precision double-precision ) - || ( doc build-manual ) + doc? ( !build-manual ) cuda? ( single-precision ) cuda? ( !opencl ) mkl? ( !blas !fftw !lapack ) @@ -317,7 +317,9 @@ src_install() { fi if use doc; then - newdoc "${DISTDIR}/manual-${PV}.pdf" "${PN}-manual-${PV}.pdf" + if [[ ${PV} != *9999* ]]; then + newdoc "${DISTDIR}/manual-${PV}.pdf" "${PN}-manual-${PV}.pdf" + fi fi use mpi || continue diff --git a/sci-chemistry/gromacs/gromacs-2021.2.ebuild b/sci-chemistry/gromacs/gromacs-2021.2.ebuild index 7b257ee4f40..d3299c25bab 100644 --- a/sci-chemistry/gromacs/gromacs-2021.2.ebuild +++ b/sci-chemistry/gromacs/gromacs-2021.2.ebuild @@ -74,7 +74,7 @@ RDEPEND="${CDEPEND}" REQUIRED_USE=" || ( single-precision double-precision ) - || ( doc build-manual ) + doc? ( !build-manual ) cuda? ( single-precision ) cuda? ( !opencl ) mkl? ( !blas !fftw !lapack ) @@ -324,7 +324,9 @@ src_install() { fi if use doc; then - newdoc "${DISTDIR}/manual-${PV}.pdf" "${PN}-manual-${PV}.pdf" + if [[ ${PV} != *9999* ]]; then + newdoc "${DISTDIR}/manual-${PV}.pdf" "${PN}-manual-${PV}.pdf" + fi fi use mpi || continue diff --git a/sci-chemistry/gromacs/gromacs-2021.9999.ebuild b/sci-chemistry/gromacs/gromacs-2021.9999.ebuild index 16825937690..40f115d6a10 100644 --- a/sci-chemistry/gromacs/gromacs-2021.9999.ebuild +++ b/sci-chemistry/gromacs/gromacs-2021.9999.ebuild @@ -74,7 +74,7 @@ RDEPEND="${CDEPEND}" REQUIRED_USE=" || ( single-precision double-precision ) - || ( doc build-manual ) + doc? ( !build-manual ) cuda? ( single-precision ) cuda? ( !opencl ) mkl? ( !blas !fftw !lapack ) @@ -319,7 +319,9 @@ src_install() { fi if use doc; then - newdoc "${DISTDIR}/manual-${PV}.pdf" "${PN}-manual-${PV}.pdf" + if [[ ${PV} != *9999* ]]; then + newdoc "${DISTDIR}/manual-${PV}.pdf" "${PN}-manual-${PV}.pdf" + fi fi use mpi || continue diff --git a/sci-chemistry/gromacs/gromacs-9999.ebuild b/sci-chemistry/gromacs/gromacs-9999.ebuild index 19c3097b599..40f115d6a10 100644 --- a/sci-chemistry/gromacs/gromacs-9999.ebuild +++ b/sci-chemistry/gromacs/gromacs-9999.ebuild @@ -7,6 +7,7 @@ CMAKE_MAKEFILE_GENERATOR="ninja" PYTHON_COMPAT=( python3_{7,8,9} ) +DISTUTILS_USE_SETUPTOOLS=no DISTUTILS_SINGLE_IMPL=1 inherit bash-completion-r1 cmake cuda distutils-r1 flag-o-matic multilib readme.gentoo-r1 toolchain-funcs xdg-utils @@ -21,6 +22,7 @@ if [[ ${PV} = *9999* ]]; then else SRC_URI=" http://ftp.gromacs.org/gromacs/${PN}-${PV/_/-}.tar.gz + doc? ( https://ftp.gromacs.org/manual/manual-${PV/_/-}.pdf ) test? ( http://ftp.gromacs.org/regressiontests/regressiontests-${PV/_/-}.tar.gz )" KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux ~x64-macos" fi @@ -35,7 +37,7 @@ HOMEPAGE="http://www.gromacs.org/" # 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 double-precision +fftw +gmxapi +gmxapi-legacy +hwloc lapack +lmfit mkl mpi +offensive opencl openmp +python +single-precision test +threads +tng ${ACCE_IUSE}" +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? ( @@ -57,7 +59,7 @@ CDEPEND=" " BDEPEND="${CDEPEND} virtual/pkgconfig - doc? ( + build-manual? ( app-doc/doxygen $(python_gen_cond_dep ' dev-python/sphinx[${PYTHON_MULTI_USEDEP}] @@ -72,6 +74,7 @@ RDEPEND="${CDEPEND}" REQUIRED_USE=" || ( single-precision double-precision ) + doc? ( !build-manual ) cuda? ( single-precision ) cuda? ( !opencl ) mkl? ( !blas !fftw !lapack ) @@ -131,28 +134,29 @@ src_prepare() { fi DOC_CONTENTS="Gromacs can use sci-chemistry/vmd to read additional file formats" - - # try to create policy for imagemagik - mkdir -p ${HOME}/.config/ImageMagick - cat >> ${HOME}/.config/ImageMagick/policy.xml <<- EOF - - - !ATTLIST policymap xmlns CDATA #FIXED ''> - - > ${HOME}/.config/ImageMagick/policy.xml <<- EOF + + + !ATTLIST policymap xmlns CDATA #FIXED ''> + + - ]> - - - - - - - - - EOF + ]> + + + + + + + + + EOF + fi } src_configure() { @@ -213,7 +217,7 @@ src_configure() { -DGMX_OPENMP=$(usex openmp) -DGMX_COOL_QUOTES=$(usex offensive) -DGMX_USE_TNG=$(usex tng) - -DGMX_BUILD_MANUAL=$(usex doc) + -DGMX_BUILD_MANUAL=$(usex build-manual) -DGMX_HWLOC=$(usex hwloc) -DGMX_DEFAULT_SUFFIX=off -DGMX_SIMD="$acce" @@ -284,7 +288,7 @@ src_compile() { distutils-r1_src_compile fi # not 100% necessary for rel ebuilds as available from website - if use doc; then + if use build-manual; then BUILD_DIR="${WORKDIR}/${P}_${x}"\ cmake_src_compile manual fi @@ -310,9 +314,16 @@ src_install() { BUILD_DIR="${WORKDIR}/${P}_${x}" \ cmake_src_install python_packaging/install fi - if use doc; then + 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