blob: 2b7a92370dea9c53c275d1076e075e69e447e6d0 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/bpython/bpython-0.9.7.1.ebuild,v 1.3 2010/09/20 19:57:27 hwoarang Exp $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
PYTHON_USE_WITH="ncurses"
inherit distutils
DESCRIPTION="Syntax highlighting and autocompletion for the Python interpreter"
HOMEPAGE="http://www.bpython-interpreter.org/ https://bitbucket.org/bobf/bpython/ http://pypi.python.org/pypi/bpython"
SRC_URI="http://www.bpython-interpreter.org/releases/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="gtk urwid"
RDEPEND="dev-python/pygments
dev-python/setuptools
gtk? ( dev-python/pygobject dev-python/pygtk )
urwid? ( dev-python/urwid )"
DEPEND="${RDEPEND}"
DOCS="sample-config sample.theme light.theme"
src_install() {
distutils_src_install
if use gtk; then
# pygobject and pygtk currently don't support Python 3.
rm -f "${ED}"usr/bin/bpython-gtk-3.*
else
rm -f "${ED}"usr/bin/bpython-gtk*
delete_unneeded_modules() {
rm -f "${ED}$(python_get_sitedir)/bpython/gtk_.py"
}
python_execute_function -q delete_unneeded_modules
fi
if ! use urwid; then
delete_urwid() {
rm -f "${ED}$(python_get_sitedir)/bpython/urwid.py"
}
python_execute_function -q delete_urwid
fi
}
|