commit:     da574aba923a790a2af6c043f5a3f94a0659bf53
Author:     Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  1 13:05:37 2014 +0000
Commit:     Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org>
CommitDate: Mon Sep  1 13:05:37 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=da574aba

sci-mathematics/petsc: make configure work on systems with default python3 
interpreter

---
 sci-mathematics/petsc/ChangeLog          | 4 ++++
 sci-mathematics/petsc/petsc-3.4.2.ebuild | 6 +++++-
 sci-mathematics/petsc/petsc-3.5.1.ebuild | 6 +++++-
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/sci-mathematics/petsc/ChangeLog b/sci-mathematics/petsc/ChangeLog
index f963803..a0fd4a7 100644
--- a/sci-mathematics/petsc/ChangeLog
+++ b/sci-mathematics/petsc/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  01 Sep 2014; Jauhien Piatlicki <[email protected]> petsc-3.4.2.ebuild,
+  petsc-3.5.1.ebuild:
+  make configure work on systems with default python3 interpreter
+
   06 Jan 2014; Justin Lecher <[email protected]> -petsc-3.3_p5.ebuild,
   petsc-3.4.2.ebuild, metadata.xml:
   Punt base.eclass

diff --git a/sci-mathematics/petsc/petsc-3.4.2.ebuild 
b/sci-mathematics/petsc/petsc-3.4.2.ebuild
index 5263263..065c95d 100644
--- a/sci-mathematics/petsc/petsc-3.4.2.ebuild
+++ b/sci-mathematics/petsc/petsc-3.4.2.ebuild
@@ -4,7 +4,9 @@
 
 EAPI=5
 
-inherit eutils flag-o-matic fortran-2 toolchain-funcs versionator
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils flag-o-matic fortran-2 python-any-r1 toolchain-funcs versionator
 
 MY_P="${PN}-$(replace_version_separator _ -)"
 
@@ -49,6 +51,7 @@ RDEPEND="
 #      imagemagick? ( media-gfx/imagemagick )
 
 DEPEND="${RDEPEND}
+       ${PYTHON_DEPS}
        virtual/pkgconfig
        dev-util/cmake
 "
@@ -66,6 +69,7 @@ S="${WORKDIR}/${MY_P}"
 
 src_prepare() {
        epatch "${FILESDIR}"/${P%_*}-disable-rpath.patch
+       sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die
 }
 
 src_configure() {

diff --git a/sci-mathematics/petsc/petsc-3.5.1.ebuild 
b/sci-mathematics/petsc/petsc-3.5.1.ebuild
index bacf55e..147c36b 100644
--- a/sci-mathematics/petsc/petsc-3.5.1.ebuild
+++ b/sci-mathematics/petsc/petsc-3.5.1.ebuild
@@ -4,7 +4,9 @@
 
 EAPI=5
 
-inherit eutils flag-o-matic fortran-2 toolchain-funcs versionator
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils flag-o-matic fortran-2 python-any-r1 toolchain-funcs versionator
 
 MY_P="${PN}-$(replace_version_separator _ -)"
 
@@ -50,6 +52,7 @@ RDEPEND="
 #      imagemagick? ( media-gfx/imagemagick )
 
 DEPEND="${RDEPEND}
+       ${PYTHON_DEPS}
        virtual/pkgconfig
        dev-util/cmake
 "
@@ -67,6 +70,7 @@ S="${WORKDIR}/${MY_P}"
 
 src_prepare() {
        epatch "${FILESDIR}"/${P%_*}-disable-rpath.patch
+       sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die
 }
 
 src_configure() {

Reply via email to