From 633d3227d5b301fe91c7ffb775789db38fa7e952 Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Mon, 17 Aug 2015 18:29:16 +0200 Subject: sci-chemistry/prodecomp: Fix launcher and double Prefix Package-Manager: portage-2.2.20.1 Signed-off-by: Justin Lecher --- sci-chemistry/prodecomp/prodecomp-3.0-r1.ebuild | 47 +++++++++++++++++++++++++ sci-chemistry/prodecomp/prodecomp-3.0.ebuild | 46 ------------------------ 2 files changed, 47 insertions(+), 46 deletions(-) create mode 100644 sci-chemistry/prodecomp/prodecomp-3.0-r1.ebuild delete mode 100644 sci-chemistry/prodecomp/prodecomp-3.0.ebuild (limited to 'sci-chemistry') diff --git a/sci-chemistry/prodecomp/prodecomp-3.0-r1.ebuild b/sci-chemistry/prodecomp/prodecomp-3.0-r1.ebuild new file mode 100644 index 000000000000..a424245d30bd --- /dev/null +++ b/sci-chemistry/prodecomp/prodecomp-3.0-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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" + +RDEPEND="sci-libs/scipy[${PYTHON_USEDEP}]" +DEPEND="" + +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.ebuild b/sci-chemistry/prodecomp/prodecomp-3.0.ebuild deleted file mode 100644 index 28791c9108ba..000000000000 --- a/sci-chemistry/prodecomp/prodecomp-3.0.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -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" - -RDEPEND="sci-libs/scipy[${PYTHON_USEDEP}]" -DEPEND="" - -S="${WORKDIR}"/NMRProjAnalys - -src_install() { - 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 "${EPREFIX}"/$(python_get_sitedir)/${PN}/ProjAnalys.py $@ - EOF - dobin "${T}"/${PN} - - dosym ../../../../share/doc/${PF}/Manual.pdf $(python_get_sitedir)/${PN}/Manual.pdf -} -- cgit v1.2.3-65-gdbad