commit:     e8fe5237502e4ada08a0df25417e3a0c896d4d97
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 17 08:36:42 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 17 08:51:23 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8fe5237

sci-chemistry/autodock: simplify stubbed out test/py2 cruft

Leave the non-trivial bit but the rest is obvious and could be restored
easily.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-chemistry/autodock/autodock-4.2.6.ebuild | 38 +++++++++++-----------------
 1 file changed, 15 insertions(+), 23 deletions(-)

diff --git a/sci-chemistry/autodock/autodock-4.2.6.ebuild 
b/sci-chemistry/autodock/autodock-4.2.6.ebuild
index b4dce2e439b4..ba012304d26e 100644
--- a/sci-chemistry/autodock/autodock-4.2.6.ebuild
+++ b/sci-chemistry/autodock/autodock-4.2.6.ebuild
@@ -1,12 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-# Tests require python2
-#PYTHON_COMPAT=( python2_7 )
-
-inherit autotools readme.gentoo-r1 #python-any-r1
+inherit autotools readme.gentoo-r1
 
 MY_PN="autodocksuite"
 MY_P="${MY_PN}-${PV}"
@@ -14,23 +11,18 @@ MY_P="${MY_PN}-${PV}"
 DESCRIPTION="A suite of automated docking tools"
 HOMEPAGE="http://autodock.scripps.edu/";
 
SRC_URI="http://autodock.scripps.edu/downloads/autodock-registration/tars/dist$(ver_rs
 1- '')/${MY_P}-src.tar.gz"
+S="${WORKDIR}/src"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-
-IUSE="examples openmp" #test
-#RESTRICT="!test? ( test )"
+IUSE="examples openmp"
+# Tests require python2
+RESTRICT="test"
 
 # False positives caused by nested configure scripts
 QA_CONFIGURE_OPTIONS=".*"
 
-RDEPEND=""
-DEPEND=""
-#DEPEND="test? ( ${PYTHON_DEPS} )"
-
-S="${WORKDIR}/src"
-
 DISABLE_AUTOFORMATTING="yes"
 DOC_CONTENTS="
 The AutoDock development team requests all users to fill out the
@@ -76,15 +68,15 @@ src_compile() {
        emake -C autogrid
 }
 
-#src_test() {
-#      elog "Testing autodock"
-#      cd "${S}/autodock/Tests" || die
-#      cp ../*.dat . || die
-#      ${EPYTHON} test_autodock4.py || die "AutoDock tests failed."
-#      einfo "Testing autogrid"
-#      cd "${S}/autogrid/Tests" || die
-#      ${EPYTHON} test_autogrid4.py || die "AutoGrid tests failed."
-#}
+src_test() {
+       elog "Testing autodock"
+       cd "${S}/autodock/Tests" || die
+       cp ../*.dat . || die
+       ${EPYTHON} test_autodock4.py || die "AutoDock tests failed."
+       einfo "Testing autogrid"
+       cd "${S}/autogrid/Tests" || die
+       ${EPYTHON} test_autogrid4.py || die "AutoGrid tests failed."
+}
 
 src_install() {
        if use openmp; then

Reply via email to