summaryrefslogtreecommitdiff
blob: b88b704373262a1b9c055c1484f08c34f6378887 (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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/simplegui/simplegui-0.1.0.ebuild,v 1.2 2013/11/09 11:01:20 hasufell Exp $

EAPI=5

PYTHON_COMPAT=( python2_7 python3_2 python3_3 )
PYTHON_REQ_USE="tk"
DISTUTILS_IN_SOURCE_BUILD=1

inherit distutils-r1

DESCRIPTION="Simplified GUI generation using Tkinter"
HOMEPAGE="http://florian-berger.de/en/software/simplegui"
SRC_URI="http://static.florian-berger.de/simplegui-0.1.0.zip"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="app-arch/unzip
	dev-python/cx_Freeze[${PYTHON_USEDEP}]"

python_compile() {
	if [[ ${EPYTHON} == python3.* ]]; then
		2to3 --no-diffs -w *.py || die
	fi

	distutils-r1_python_compile
}