# Copyright 2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later # $Header: $ NEED_PYTHON="2.3" inherit python multilib DESCRIPTION="EasyGUI is a module for very simple, very easy GUI programming in Python" HOMEPAGE="http://easygui.sourceforge.net/" SRC_URI="http://easygui.sourceforge.net/current_version/easygui_v${PV}.tar.gz" KEYWORDS="~amd64 ~x86" SLOT="0" LICENSE="CCPL-Attribution-2.0" IUSE="" RDEPEND="" DEPEND="${RDEPEND}" S="${WORKDIR}" src_compile() { cd "${S}" #nothing to compile } src_install() { dodoc *.html *.txt *.gif python_version || die "no Python version ?!" insinto /usr/$(get_libdir)/python${PYVER}/site-packages doins "${S}"/"${PN}.py" } pkg_postinst() { python_version || die "no Python version ?!" python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/${PN}.py }