From 378c73b1361f7381c3d99d637d485669149b5f48 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 7 Feb 2020 19:00:06 +0100 Subject: sci-chemistry/prodecomp: Switch to PYTHON_MULTI_USEDEP API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- sci-chemistry/prodecomp/prodecomp-3.0-r2.ebuild | 51 ------------------------ sci-chemistry/prodecomp/prodecomp-3.0-r3.ebuild | 53 +++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 51 deletions(-) delete mode 100644 sci-chemistry/prodecomp/prodecomp-3.0-r2.ebuild create mode 100644 sci-chemistry/prodecomp/prodecomp-3.0-r3.ebuild diff --git a/sci-chemistry/prodecomp/prodecomp-3.0-r2.ebuild b/sci-chemistry/prodecomp/prodecomp-3.0-r2.ebuild deleted file mode 100644 index e66cac2b0b4f..000000000000 --- a/sci-chemistry/prodecomp/prodecomp-3.0-r2.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) -PYTHON_REQ_USE="tk" - -inherit python-single-r1 - -DESCRIPTION="Decomposition-based analysis of NMR projections" -HOMEPAGE="http://www.lundberg.gu.se/nmr/software.php?program=PRODECOMP" -SRC_URI="mirror://gentoo/${P}.tar.bz2" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="examples" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -DEPEND="${PYTHON_DEPS}" -RDEPEND="${DEPEND} - || ( - sci-libs/scipy-python2[${PYTHON_USEDEP}] - sci-libs/scipy[${PYTHON_USEDEP}] - )" - -S="${WORKDIR}"/NMRProjAnalys - -src_install() { - python_export - if use examples; then - insinto /usr/share/${PN} - doins -r ExampleData Results - fi - - dodoc ProjTools/Manual.pdf - rm -rf ProjTools/Manual.pdf ProdecompOutput || die - - python_moduleinto ${PN} - python_domodule ProjTools/. - python_optimize - - cat >> "${T}"/${PN} <<- EOF - #!/bin/bash - ${PYTHON} -O $(python_get_sitedir)/${PN}/ProjAnalys.py \$@ - EOF - dobin "${T}"/${PN} - - dosym ../../../../share/doc/${PF}/Manual.pdf "${PYTHON_SITEDIR##${EPREFIX}}"/${PN}/Manual.pdf -} diff --git a/sci-chemistry/prodecomp/prodecomp-3.0-r3.ebuild b/sci-chemistry/prodecomp/prodecomp-3.0-r3.ebuild new file mode 100644 index 000000000000..65683c21b0fa --- /dev/null +++ b/sci-chemistry/prodecomp/prodecomp-3.0-r3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="tk" + +inherit python-single-r1 + +DESCRIPTION="Decomposition-based analysis of NMR projections" +HOMEPAGE="http://www.lundberg.gu.se/nmr/software.php?program=PRODECOMP" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="examples" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + $(python_gen_cond_dep ' + || ( + sci-libs/scipy-python2[${PYTHON_MULTI_USEDEP}] + sci-libs/scipy[${PYTHON_MULTI_USEDEP}] + ) + ')" + +S="${WORKDIR}"/NMRProjAnalys + +src_install() { + python_export + if use examples; then + insinto /usr/share/${PN} + doins -r ExampleData Results + fi + + dodoc ProjTools/Manual.pdf + rm -rf ProjTools/Manual.pdf ProdecompOutput || die + + python_moduleinto ${PN} + python_domodule ProjTools/. + python_optimize + + cat >> "${T}"/${PN} <<- EOF + #!/bin/bash + ${PYTHON} -O $(python_get_sitedir)/${PN}/ProjAnalys.py \$@ + EOF + dobin "${T}"/${PN} + + dosym ../../../../share/doc/${PF}/Manual.pdf "${PYTHON_SITEDIR##${EPREFIX}}"/${PN}/Manual.pdf +} -- cgit v1.2.3-65-gdbad