diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-02-06 15:08:30 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-02-06 15:08:30 +0000 |
commit | 3108ac8f385e32c17dfb96511ecae7c50221ca1f (patch) | |
tree | ecead5cbca835e964ac2ad5f76a7b1775c809fcc /dev-python/pyfltk/pyfltk-1.1.4.ebuild | |
parent | Use $(PYTHON -f) instead of ${python}. (diff) | |
download | historical-3108ac8f385e32c17dfb96511ecae7c50221ca1f.tar.gz historical-3108ac8f385e32c17dfb96511ecae7c50221ca1f.tar.bz2 historical-3108ac8f385e32c17dfb96511ecae7c50221ca1f.zip |
Use $(PYTHON -f) instead of ${python}.
Package-Manager: portage-15324-svn/cvs/Linux x86_64
Diffstat (limited to 'dev-python/pyfltk/pyfltk-1.1.4.ebuild')
-rw-r--r-- | dev-python/pyfltk/pyfltk-1.1.4.ebuild | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/dev-python/pyfltk/pyfltk-1.1.4.ebuild b/dev-python/pyfltk/pyfltk-1.1.4.ebuild index 8fc87f2755e3..0261279704fa 100644 --- a/dev-python/pyfltk/pyfltk-1.1.4.ebuild +++ b/dev-python/pyfltk/pyfltk-1.1.4.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyfltk/pyfltk-1.1.4.ebuild,v 1.6 2009/11/24 00:03:53 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyfltk/pyfltk-1.1.4.ebuild,v 1.7 2010/02/06 15:08:30 arfrever Exp $ EAPI="2" +PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" inherit eutils distutils @@ -22,15 +23,14 @@ IUSE="doc" RDEPEND=">=x11-libs/fltk-1.1.9:1.1[opengl]" DEPEND="${RDEPEND} dev-lang/swig" - -RESTRICT_PYTHON_ABIS="3*" - -PYTHON_MODNAME="fltk" +RESTRICT_PYTHON_ABIS="3.*" S="${WORKDIR}/${MY_P}" DOCS="CHANGES" +PYTHON_MODNAME="fltk" + src_prepare() { rm -f python/fltk* # move docs because the swig stuff will remove them @@ -38,9 +38,10 @@ src_prepare() { } src_compile() { - cd "${S}"/python - ${python} MakeSwig.py || die "swigging wrappers failed" - cd "${S}" + pushd python > /dev/null + "$(PYTHON -f)" MakeSwig.py || die "swigging wrappers failed" + popd > /dev/null + distutils_src_compile } |