diff options
author | Mike Gilbert <floppym@gentoo.org> | 2013-01-18 16:26:04 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2013-01-18 16:26:04 +0000 |
commit | 82e6ae609481a5c33d9768958b707b750076c905 (patch) | |
tree | e17d40c431e6f01c048b1f1036c8bae14a7060b5 /dev-python/chardet/chardet-2.0.1-r1.ebuild | |
parent | Version bump wrt bug #452238. Remove old. (diff) | |
download | gentoo-2-82e6ae609481a5c33d9768958b707b750076c905.tar.gz gentoo-2-82e6ae609481a5c33d9768958b707b750076c905.tar.bz2 gentoo-2-82e6ae609481a5c33d9768958b707b750076c905.zip |
Further simplify.
(Portage version: 2.2.0_alpha154/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
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/ } |