summaryrefslogtreecommitdiff
blob: f9cbc4dc7e604858483d459f41ee47dd686007f9 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/winpdb/winpdb-1.4.8.ebuild,v 1.3 2010/10/28 17:39:04 phajdan.jr Exp $

EAPI="3"
PYTHON_DEPEND="*"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="*-jython"

inherit distutils

DESCRIPTION="Graphical Python debugger"
HOMEPAGE="http://winpdb.org/ http://code.google.com/p/winpdb/ http://pypi.python.org/pypi/winpdb"
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ia64 x86"
IUSE="+wxwidgets"

DEPEND=">=dev-python/pycrypto-2.0.1
	wxwidgets? ( dev-python/wxpython:2.8 )"
RDEPEND="${DEPEND}"

src_install() {
	distutils_src_install

	if use wxwidgets; then
		PYTHON_MODNAME="rpdb2.py winpdb.py"
	else
		PYTHON_MODNAME="rpdb2.py"

		rm -f "${ED}usr/bin/winpdb"*

		delete_winpdb() {
			rm -f "${ED}$(python_get_sitedir)/winpdb.py"
		}
		python_execute_function -q delete_winpdb
	fi
}