# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games distutils DESCRIPTION="tintin mud client clone implemented in Python" HOMEPAGE="http://lyntin.sourceforge.net/" SRC_URI="mirror://sourceforge/lyntin/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="tcltk" DEPEND=">=dev-lang/python-2.2.3" DOCS="COMMANDS INSTALL PKG-INFO HACKING LICENSE README" pkg_setup() { if use tcltk ; then if ! python -c "import Tkinter" >/dev/null 2>&1 ; then eerror "You need to recompile python with Tkinter support." eerror "Example: USE='X -build tcltk' emerge python" echo die "missing tkinter support with installed python" fi fi } src_install() { distutils_src_install dogamesbin ${D}/usr/bin/runlyntin rm ${D}/usr/bin/runlyntin rmdir ${D}/usr/bin prepgamesdirs } pkg_postinst() { if use tcltk ; then einfo "To start lyntin in GUI mode, create a config file" einfo "with this in it:" einfo " " einfo "[Lyntin]" einfo "ui: tk" einfo " " einfo "Then start lyntin like this:" einfo " " einfo "runlyntin -c /path/to/config_file\n" fi }