# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="3" inherit eutils distutils python SRC_URI="http://download.github.com/pnegre-python-whiteboard-da2c90b.tar.gz" KEYWORDS="" IUSE_LINGUAS=( it ca_ES es all ) IUSE="-disable-linguas" DESCRIPTION="Build and operate an electronic whiteboard using gnu/linux, a wiimote and an IR pen. " HOMEPAGE="http://github.com/pnegre/python-whiteboard" LICENSE="GPL-3" SLOT="0" DEPEND="" RDEPEND=" dev-python/pybluez dev-python/numpy dev-python/PyQt4 app-misc/cwiid[python] dev-python/python-xlib " S="${WORKDIR}/pnegre-python-whiteboard-da2c90b" src_prepare () { epatch "${FILESDIR}/${P}.stuffdir.patch" cp "${FILESDIR}/${P}.makefile" makefile -f if ! use disable-linguas; then make languages;fi PYTHON_SLOT="$(python_get_implementational_package)" PYTHON_SLOT=${PYTHON_SLOT:$((${#PYTHON_SLOT}-3))} >setup.py } src_install() { [ "$ARCH" == "amd64" ] && LIB="64" DESTDIR="${D}/usr/lib${LIB}/python${PYTHON_SLOT/:/}/site-packages/python-whiteboard" make install }