# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="" S=${WORKDIR}/ MY_P=${P/editobj/EditObj} DESCRIPTION="EditObj can create a dialog box to edit ANY Python object. It also includes a Tk tree widget, an event and a multiple undo-redo frameworks." SRC_URI="http://oomadness.tuxfamily.org/downloads/$MY_P.tar.gz http://www.nectroom.homelinux.net/pkg/$MY_P.tar.gz http://nectroom.homelinux.net/pkg/$MY_P.tar.gz" HOMEPAGE="http://oomadness.tuxfamily.org/en/editobj/" KEYWORDS="~x86" SLOT="0" LICENSE="GPL-2" DEPEND="dev-lang/tk >=dev-lang/python-2.2.2" src_compile() { # Tk Widget Set testing if ! python -c "import Tkinter" >/dev/null 2>&1 then eerror eerror "Your python is not compile with Tkinter support." eerror "=> You need to recompile Python with USE="+tcltk"" eerror die "build error" fi cd $S/$MY_P python ./setup.py build || die "build error" } src_install() { cd $S/$MY_P python ./setup.py install --root ${D} || die "Could not install EditObj on temporary directory" dodoc README PKG-INFO }