public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/pdb2pqr/
Date: Sun,  9 Feb 2020 15:54:27 +0000 (UTC)	[thread overview]
Message-ID: <1581263661.0c2a5cb0f6a062b7da6f9a90cbb06e3784df29a6.mgorny@gentoo> (raw)

commit:     0c2a5cb0f6a062b7da6f9a90cbb06e3784df29a6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  8 12:36:34 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> 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 <mgorny <AT> 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://<COMPUTER NAME>/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


             reply	other threads:[~2020-02-09 15:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-09 15:54 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-01-22 21:50 [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/pdb2pqr/ Michał Górny
2020-01-16  6:39 Michał Górny
2020-01-16  6:39 Michał Górny
2017-12-01 23:01 David Seifert
2017-09-12 22:58 Matt Turner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1581263661.0c2a5cb0f6a062b7da6f9a90cbb06e3784df29a6.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox