# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-board/pychess/pychess-0.10.ebuild,v 1.4 2011/04/12 02:46:35 tomka Exp $ PYTHON_DEPEND="2" EAPI=3 inherit python gnome2-utils distutils DESCRIPTION="GNOME Arduino Electronics Prototyping Environment" HOMEPAGE="http://gnome.eu.org/evo/index.php/Gnoduino" SRC_URI="http://gnome.eu.org/gnoduino-0.3.0.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" IUSE="" DEPEND="dev-python/pyserial dev-python/pygtksourceview dev-python/pygobject dev-python/pygtk dev-python/gconf-python dev-python/gnome-vfs-python" S=${WORKDIR}/${P} src_prepare() { python_convert_shebangs -r 2 . } pkg_setup() { python_set_active_version 2 python_pkg_setup } src_install(){ export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" distutils_src_install unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL } pkg_postrm() { gnome2_gconf_uninstall } pkg_preinst() { gnome2_gconf_savelist } pkg_postinst() { gnome2_gconf_install ewarn "To be able to fully use Gnoduino you need to complete the following tasks:" ewarn " # emerge dev-embedded/avrdude dev-embedded/crossdev" ewarn " # crossdev --binutils 2.21.1 --gcc 4.3.6 --libc 1.7.0 --without-headers" ewarn " # cd /usr/avr/lib" ewarn " # ln -s /usr/${CHOST}/avr/lib/ldscripts" ewarn " # ln -s avr4/crtm8.o" ewarn " # ln -s avr5/crtm168.o" ewarn " # ln -s avr5/crtm328p.o" ewarn " # ln -s avr5/crtm1280.o" ewarn "For more information you might want to read up on Gentoo Bug #147155" elog }