commit:     8a8c12042b2ac5f8895bee28c3dabae62c112e3f
Author:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  9 10:09:58 2018 +0000
Commit:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Fri Mar  9 10:53:16 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a8c1204

sci-physics/rivet: revision bump

- Python scripts need to be adjusted to use Python 2
- Needs to be rebuilt if version of sci-physics/yoda changes

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sci-physics/rivet/{rivet-2.6.0.ebuild => rivet-2.6.0-r1.ebuild} | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sci-physics/rivet/rivet-2.6.0.ebuild 
b/sci-physics/rivet/rivet-2.6.0-r1.ebuild
similarity index 92%
rename from sci-physics/rivet/rivet-2.6.0.ebuild
rename to sci-physics/rivet/rivet-2.6.0-r1.ebuild
index 91d10173c78..273705fb73d 100644
--- a/sci-physics/rivet/rivet-2.6.0.ebuild
+++ b/sci-physics/rivet/rivet-2.6.0-r1.ebuild
@@ -24,7 +24,7 @@ RDEPEND="
        sci-libs/gsl:=
        sci-physics/fastjet[plugins]
        sci-physics/hepmc
-       >=sci-physics/yoda-1.5.0[python]
+       sci-physics/yoda:=[python]
        python? ( ${PYTHON_DEPS} )"
 DEPEND="${RDEPEND}
        doc? ( app-doc/doxygen[latex,dot] )
@@ -50,6 +50,8 @@ src_prepare() {
 
        # Install rivet-manual.pdf to docdir intead of pkgdatadir
        sed -i '/pkgdata_DATA = $(DOCS)/s/pkgdata/doc/' doc/Makefile.am || die
+       # Adjust shebangs of Python scripts
+       sed -i "s@^#! /usr/bin/env python@#!${EPREFIX}/usr/bin/python2@" bin/* 
|| die
        eautoreconf
 }
 

Reply via email to