blob: 113fd3dac9a007dcbb49988b7ff69d8cc38a7167 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# 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.7 2013/10/22 11:36:41 grobian Exp $
EAPI="5"
PYTHON_COMPAT=( python{2_{6,7},3_{2,3}} pypy2_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 ~x64-macos ~x86-macos"
IUSE=""
HTML_DOCS=( docs/ )
src_unpack() {
# Workaround for bug 459096.
mkdir ${P} || die
cd ${P} || die
unpack ${A}
}
select_source() {
if [[ ${EPYTHON} == python3* ]]; then
cd "${S}/python3-${P}" || die
else
cd "${S}/python2-${P}" || die
fi
}
python_compile() {
select_source
distutils-r1_python_compile
}
python_install() {
select_source
distutils-r1_python_install
}
python_install_all() {
select_source
distutils-r1_python_install_all
}
|