/[gentoo-x86]/dev-python/bpython/bpython-0.11.ebuild
Gentoo

Contents of /dev-python/bpython/bpython-0.11.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Jun 5 08:35:31 2014 UTC (7 weeks, 6 days ago) by idella4
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
add py3 support, upgrade deps, IUSE doc & doc build, test phase, remove IUSE urwid and set urwid as hard dep

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/bpython/bpython-0.11.ebuild,v 1.4 2012/11/20 20:47:49 ago Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="*:2.5"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="2.4 *-jython"
9 PYTHON_USE_WITH="ncurses"
10
11 inherit distutils eutils
12
13 DESCRIPTION="Syntax highlighting and autocompletion for the Python interpreter"
14 HOMEPAGE="http://www.bpython-interpreter.org/ https://bitbucket.org/bobf/bpython/ http://pypi.python.org/pypi/bpython"
15 SRC_URI="http://www.bpython-interpreter.org/releases/${P}.tar.gz"
16
17 LICENSE="MIT"
18 SLOT="0"
19 KEYWORDS="amd64 x86"
20 IUSE="gtk urwid"
21
22 RDEPEND="dev-python/pygments
23 dev-python/setuptools
24 gtk? ( dev-python/pygobject:2 dev-python/pygtk )
25 urwid? ( dev-python/urwid )"
26 DEPEND="${RDEPEND}"
27
28 DOCS="sample-config sample.theme light.theme"
29
30 src_prepare() {
31 distutils_src_prepare
32 epatch "${FILESDIR}"/${PN}-desktop.patch
33 }
34
35 src_install() {
36 distutils_src_install
37
38 if use gtk; then
39 # pygobject and pygtk currently don't support Python 3.
40 rm -f "${ED}"usr/bin/bpython-gtk-3.*
41 else
42 rm -f "${ED}"usr/bin/bpython-gtk*
43
44 delete_unneeded_modules() {
45 rm -f "${ED}$(python_get_sitedir)/bpython/gtk_.py"
46 }
47 python_execute_function -q delete_unneeded_modules
48 fi
49 if ! use urwid; then
50 rm -f "${ED}"usr/bin/bpython-urwid*
51
52 delete_urwid() {
53 rm -f "${ED}$(python_get_sitedir)/bpython/urwid.py"
54 }
55 python_execute_function -q delete_urwid
56 fi
57 }

  ViewVC Help
Powered by ViewVC 1.1.20