diff options
Diffstat (limited to 'sci-calculators/units/units-2.00.ebuild')
-rw-r--r-- | sci-calculators/units/units-2.00.ebuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sci-calculators/units/units-2.00.ebuild b/sci-calculators/units/units-2.00.ebuild index 416a246348fb..203c9d9fcae8 100644 --- a/sci-calculators/units/units-2.00.ebuild +++ b/sci-calculators/units/units-2.00.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-calculators/units/units-2.00.ebuild,v 1.1 2012/07/02 03:58:36 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-calculators/units/units-2.00.ebuild,v 1.2 2012/07/02 04:20:41 jer Exp $ EAPI=4 inherit eutils @@ -18,10 +18,16 @@ DEPEND=" >=sys-libs/readline-4.1-r2 >=sys-libs/ncurses-5.2-r3 " -RDEPEND="${DEPEND}" +RDEPEND=" + || ( dev-lang/python:2.5 dev-lang/python:2.6 dev-lang/python:2.7 ) + ${DEPEND} +" src_prepare() { epatch "${FILESDIR}"/${P}-gentoo.patch + + # Fix shebang for python2 + sed -i units_cur -e '1s|$|2|' || die } src_install() { |