From 811700044421890b5085b1f15cd8a51cd39d8909 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Wed, 16 Sep 2020 11:50:03 +0200 Subject: sci-physics/yoda: Disable python2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/735196 Signed-off-by: Michał Górny --- sci-physics/yoda/yoda-1.7.0-r1.ebuild | 49 ----------------------------------- sci-physics/yoda/yoda-1.7.0-r2.ebuild | 40 ++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 49 deletions(-) delete mode 100644 sci-physics/yoda/yoda-1.7.0-r1.ebuild create mode 100644 sci-physics/yoda/yoda-1.7.0-r2.ebuild diff --git a/sci-physics/yoda/yoda-1.7.0-r1.ebuild b/sci-physics/yoda/yoda-1.7.0-r1.ebuild deleted file mode 100644 index a29234715ba0..000000000000 --- a/sci-physics/yoda/yoda-1.7.0-r1.ebuild +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 ) - -inherit bash-completion-r1 python-single-r1 - -DESCRIPTION="Yet more Objects for (High Energy Physics) Data Analysis" -HOMEPAGE="http://yoda.hepforge.org/" - -SRC_URI="http://www.hepforge.org/archive/${PN}/${P^^}.tar.bz2" -LICENSE="GPL-2" - -SLOT="0/${PV}" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="python root static-libs" - -RDEPEND=" - python? ( ${PYTHON_DEPS} ) - root? ( sci-physics/root:=[python=,${PYTHON_SINGLE_USEDEP}] )" -DEPEND="${RDEPEND} - python? ( - $(python_gen_cond_dep ' - dev-python/cython[${PYTHON_MULTI_USEDEP}] - ') - )" - -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -S="${WORKDIR}/${P^^}" - -pkg_setup() { - use python && python-single-r1_pkg_setup -} - -src_configure() { - econf \ - $(use_enable python pyext) \ - $(use_enable root) \ - $(use_enable static-libs static) -} - -src_install() { - default - newbashcomp "${ED%/}"/usr/share/YODA/yoda-completion ${PN} - rm "${ED%/}"/usr/share/YODA/yoda-completion || die -} diff --git a/sci-physics/yoda/yoda-1.7.0-r2.ebuild b/sci-physics/yoda/yoda-1.7.0-r2.ebuild new file mode 100644 index 000000000000..918658484a9a --- /dev/null +++ b/sci-physics/yoda/yoda-1.7.0-r2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit bash-completion-r1 + +DESCRIPTION="Yet more Objects for (High Energy Physics) Data Analysis" +HOMEPAGE="http://yoda.hepforge.org/" + +SRC_URI="http://www.hepforge.org/archive/${PN}/${P^^}.tar.bz2" +LICENSE="GPL-2" + +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="root static-libs" + +RDEPEND=" + root? ( sci-physics/root:= )" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${P^^}" + +src_configure() { + econf \ + --disable-pyext \ + $(use_enable root) \ + $(use_enable static-libs static) +} + +src_test() { + # PYTESTS and SHTESTS both require python tools + emake check PYTESTS= SHTESTS= +} + +src_install() { + default + newbashcomp "${ED%/}"/usr/share/YODA/yoda-completion ${PN} + rm "${ED%/}"/usr/share/YODA/yoda-completion || die +} -- cgit v1.2.3-65-gdbad