summaryrefslogtreecommitdiff
path: root/dev-python/winpdb/winpdb-1.4.8-r1.ebuild
blob: 07821ed97f284a490b9316867c9b7a7b9acc52a2 (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

PYTHON_COMPAT=( python{2_7,3_3,3_4} )

inherit distutils-r1

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[${PYTHON_USEDEP}]
	wxwidgets? ( dev-python/wxpython:2.8[$(python_gen_usedep 'python2*')] )"
RDEPEND="${DEPEND}"

REQUIRED_USE="wxwidgets? ( $(python_gen_useflags 'python2*') )"

python_install() {
	distutils-r1_python_install

	if ! use wxwidgets || python_is_python3; then
		find "${D%/}$(python_get_sitedir)" -name 'winpdb*.py*' -delete || die
		rm "${D%/}$(python_get_scriptdir)"/winpdb || die
		if ! use wxwidgets; then
			rm "${ED%/}"/usr/bin/winpdb || die
		fi
	fi
}