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 03BA4138350 for ; Sun, 9 Feb 2020 15:54:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E05FAE086C; Sun, 9 Feb 2020 15:54:31 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 B6304E086A for ; Sun, 9 Feb 2020 15:54:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 8D85534E8C5 for ; Sun, 9 Feb 2020 15:54:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 14388132 for ; Sun, 9 Feb 2020 15:54:27 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1581263661.0c2a5cb0f6a062b7da6f9a90cbb06e3784df29a6.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/pdb2pqr/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-chemistry/pdb2pqr/pdb2pqr-1.9.0-r2.ebuild sci-chemistry/pdb2pqr/pdb2pqr-1.9.0-r3.ebuild X-VCS-Directories: sci-chemistry/pdb2pqr/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 0c2a5cb0f6a062b7da6f9a90cbb06e3784df29a6 X-VCS-Branch: master Date: Sun, 9 Feb 2020 15:54:27 +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: be391eec-1e50-43e5-a968-8ce714525b5b X-Archives-Hash: 6b8f919d48632e9d42eda1e9c6523b74 commit: 0c2a5cb0f6a062b7da6f9a90cbb06e3784df29a6 Author: Michał Górny gentoo org> AuthorDate: Sat Feb 8 12:36:34 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Feb 9 15:54:21 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c2a5cb0 sci-chemistry/pdb2pqr: Switch to python-single-r1 Use python-single-r1 as requiered for the dep on sci-chemistry/apbs. Signed-off-by: Michał Górny gentoo.org> ...pqr-1.9.0-r2.ebuild => pdb2pqr-1.9.0-r3.ebuild} | 72 ++++++++-------------- 1 file changed, 27 insertions(+), 45 deletions(-) diff --git a/sci-chemistry/pdb2pqr/pdb2pqr-1.9.0-r2.ebuild b/sci-chemistry/pdb2pqr/pdb2pqr-1.9.0-r3.ebuild similarity index 60% rename from sci-chemistry/pdb2pqr/pdb2pqr-1.9.0-r2.ebuild rename to sci-chemistry/pdb2pqr/pdb2pqr-1.9.0-r3.ebuild index ad95f8f410f..179e6448d60 100644 --- a/sci-chemistry/pdb2pqr/pdb2pqr-1.9.0-r2.ebuild +++ b/sci-chemistry/pdb2pqr/pdb2pqr-1.9.0-r3.ebuild @@ -5,7 +5,7 @@ EAPI=5 PYTHON_COMPAT=( python2_7 ) -inherit scons-utils fortran-2 flag-o-matic python-r1 toolchain-funcs +inherit scons-utils fortran-2 flag-o-matic python-single-r1 toolchain-funcs DESCRIPTION="Automated pipeline for performing Poisson-Boltzmann electrostatics calculations" HOMEPAGE="https://www.poissonboltzmann.org/" @@ -19,13 +19,15 @@ KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND="${PYTHON_DEPS} - || ( - dev-python/numpy-python2[${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}] - ) - sci-chemistry/openbabel-python[${PYTHON_USEDEP}] - opal? ( dev-python/zsi[${PYTHON_USEDEP}] ) - pdb2pka? ( sci-chemistry/apbs[${PYTHON_USEDEP},-mpi] )" + $(python_gen_cond_dep ' + || ( + dev-python/numpy-python2[${PYTHON_MULTI_USEDEP}] + dev-python/numpy[${PYTHON_MULTI_USEDEP}] + ) + sci-chemistry/openbabel-python[${PYTHON_MULTI_USEDEP}] + opal? ( dev-python/zsi[${PYTHON_MULTI_USEDEP}] ) + ') + pdb2pka? ( sci-chemistry/apbs[${PYTHON_SINGLE_USEDEP},-mpi] )" DEPEND="${RDEPEND} dev-lang/swig:0" @@ -43,6 +45,7 @@ pkg_setup() { einfo "Allow usage of ${MAXATOMS} during calculations" fi fortran-2_pkg_setup + python-single-r1_pkg_setup } src_prepare() { @@ -54,15 +57,10 @@ src_prepare() { epatch "${PATCHES[@]}" tc-export CXX rm -rf scons || die - - python_copy_sources } src_configure() { - python_configure() { - cd "${BUILD_DIR}" || die - - cat > build_config.py <<- EOF + cat > build_config.py <<- EOF PREFIX="${D}/$(python_get_sitedir)/${PN}" #URL="http:///pdb2pqr/" APBS="${EPREFIX}/usr/bin/apbs" @@ -71,51 +69,35 @@ src_configure() { MAX_ATOMS=${MAXATOMS} BUILD_PDB2PKA=$(usex pdb2pka True False) REBUILD_SWIG=True - EOF - } - - python_foreach_impl python_configure + EOF } src_compile() { - python_compile() { - cd "${BUILD_DIR}" || die - escons - } - python_foreach_impl python_compile + escons } src_test() { - python_test() { - local myesconsargs=( -j1 ) - cd "${BUILD_DIR}" || die - escons test - escons advtest - escons complete-test - } - python_foreach_impl python_test + local myesconsargs=( -j1 ) + escons test + escons advtest + escons complete-test } src_install() { dodir /usr/share/doc/${PF}/html - python_install() { - local lib - - cd "${BUILD_DIR}" || die + local lib - escons install + escons install - find "${D}$(python_get_sitedir)"/${PN}/{jmol,examples,doc,contrib} -delete || die + find "${D}$(python_get_sitedir)"/${PN}/{jmol,examples,doc,contrib} -delete || die - python_doscript "${FILESDIR}"/{${PN},pdb2pka} + python_doscript "${FILESDIR}"/{${PN},pdb2pka} - for lib in apbslib.py{,c,o}; do - dosym ../../apbs/${lib} $(python_get_sitedir)/${PN}/pdb2pka/${lib} - done - dosym ../../_apbslib.so $(python_get_sitedir)/${PN}/pdb2pka/_apbslib.so - python_optimize - } - python_foreach_impl python_install + for lib in apbslib.py{,c,o}; do + dosym ../../apbs/${lib} $(python_get_sitedir)/${PN}/pdb2pka/${lib} + done + dosym ../../_apbslib.so $(python_get_sitedir)/${PN}/pdb2pka/_apbslib.so + python_optimize if use doc; then pushd doc > /dev/null