sci-physics/rivet: revision bump
authorGuilherme Amadio <amadio@gentoo.org>
Fri, 9 Mar 2018 10:09:58 +0000 (11:09 +0100)
committerGuilherme Amadio <amadio@gentoo.org>
Fri, 9 Mar 2018 10:53:16 +0000 (11:53 +0100)
- 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-r1.ebuild [moved from sci-physics/rivet/rivet-2.6.0.ebuild with 92% similarity]

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 91d10173c7821378b7243ea26692230305350ab3..273705fb73d0d5ed6baaf70f64df05d685c35d64 100644 (file)
@@ -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
 }