diff options
author | Mike Gilbert <floppym@gentoo.org> | 2013-01-18 05:57:47 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2013-01-18 05:57:47 +0000 |
commit | 8621cd70c9e51dd9dd55ae8e369277c0927ffcac (patch) | |
tree | 855f7c5902e1296e811390f9b6629364f0794e42 /dev-python/chardet | |
parent | Version bump #452422 by Elis Axelsson. (diff) | |
download | gentoo-2-8621cd70c9e51dd9dd55ae8e369277c0927ffcac.tar.gz gentoo-2-8621cd70c9e51dd9dd55ae8e369277c0927ffcac.tar.bz2 gentoo-2-8621cd70c9e51dd9dd55ae8e369277c0927ffcac.zip |
Convert to distutils-r1.
(Portage version: 2.2.0_alpha154/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
Diffstat (limited to 'dev-python/chardet')
-rw-r--r-- | dev-python/chardet/ChangeLog | 7 | ||||
-rw-r--r-- | dev-python/chardet/chardet-2.0.1-r1.ebuild | 47 |
2 files changed, 53 insertions, 1 deletions
diff --git a/dev-python/chardet/ChangeLog b/dev-python/chardet/ChangeLog index e8d60c5a876d..780fcfb664e2 100644 --- a/dev-python/chardet/ChangeLog +++ b/dev-python/chardet/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-python/chardet # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/chardet/ChangeLog,v 1.23 2013/01/18 05:29:20 floppym Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/chardet/ChangeLog,v 1.24 2013/01/18 05:57:47 floppym Exp $ + +*chardet-2.0.1-r1 (18 Jan 2013) + + 18 Jan 2013; Mike Gilbert <floppym@gentoo.org> +chardet-2.0.1-r1.ebuild: + Convert to distutils-r1. 18 Jan 2013; Mike Gilbert <floppym@gentoo.org> chardet-2.1.1.ebuild: Add warning about mask. diff --git a/dev-python/chardet/chardet-2.0.1-r1.ebuild b/dev-python/chardet/chardet-2.0.1-r1.ebuild new file mode 100644 index 000000000000..f1ea8ece3fb5 --- /dev/null +++ b/dev-python/chardet/chardet-2.0.1-r1.ebuild @@ -0,0 +1,47 @@ +# 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.1 2013/01/18 05:57:47 floppym Exp $ + +EAPI="5" +PYTHON_COMPAT=( python{2_{5,6,7},3_{1,2,3}} pypy{1_9,2_0} ) + +inherit distutils-r1 + +DESCRIPTION="Character encoding auto-detection in Python." +HOMEPAGE="http://chardet.feedparser.org/ http://code.google.com/p/chardet/" +SRC_URI="http://chardet.feedparser.org/download/python2-${P}.tgz + http://chardet.feedparser.org/download/python3-${P}.tgz" +LICENSE="LGPL-2.1" +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 +} + +push_sourcedir() { + if [[ ${EPYTHON} == python3* ]]; then + pushd "${WORKDIR}/python3-${P}" || die + else + pushd "${WORKDIR}/python2-${P}" || die + fi +} + +python_compile() { + push_sourcedir + distutils-r1_python_compile + popd +} + +python_install() { + push_sourcedir + distutils-r1_python_install + popd +} + +python_install_all() { + push_sourcedir + dohtml -r docs/ +} |