diff options
Diffstat (limited to 'dev-python/chardet/chardet-2.0.1-r1.ebuild')
-rw-r--r-- | dev-python/chardet/chardet-2.0.1-r1.ebuild | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/dev-python/chardet/chardet-2.0.1-r1.ebuild b/dev-python/chardet/chardet-2.0.1-r1.ebuild index 581ed8b54955..338920a89147 100644 --- a/dev-python/chardet/chardet-2.0.1-r1.ebuild +++ b/dev-python/chardet/chardet-2.0.1-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/chardet/chardet-2.0.1-r1.ebuild,v 1.2 2013/01/18 06:03:09 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/chardet/chardet-2.0.1-r1.ebuild,v 1.3 2013/01/18 16:26:04 floppym Exp $ EAPI="5" PYTHON_COMPAT=( python{2_{5,6,7},3_{1,2,3}} pypy{1_9,2_0} ) @@ -16,29 +16,27 @@ SLOT="0" KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos" IUSE="" -src_unpack() { - default - mkdir "${S}" || die -} +S=${WORKDIR} -push_sourcedir() { +select_source() { if [[ ${EPYTHON} == python3* ]]; then - pushd "${WORKDIR}/python3-${P}" || die + cd "${WORKDIR}/python3-${P}" || die else - pushd "${WORKDIR}/python2-${P}" || die + cd "${WORKDIR}/python2-${P}" || die fi - "$@" - popd } python_compile() { - push_sourcedir distutils-r1_python_compile + select_source + distutils-r1_python_compile } python_install() { - push_sourcedir distutils-r1_python_install + select_source + distutils-r1_python_install } python_install_all() { - push_sourcedir dohtml -r docs/ + select_source + dohtml -r docs/ } |