# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="3" inherit git eutils python multilib EGIT_REPO_URI="git://github.com/pnegre/python-whiteboard.git" EGIT_COMMIT="50ad668e94f5c815b414" SRC_URI="" KEYWORDS="~x86 ~amd64" DESCRIPTION="Build and operate a electronic whiteboard using gnu/linux, wiimote and a IR pen. " HOMEPAGE="http://github.com/pnegre/python-whiteboard" LICENSE="GPL-3" SLOT="0" IUSE="" DEPEND="" RDEPEND=" dev-python/pybluez dev-python/numpy dev-python/PyQt4 app-misc/cwiid[python] dev-python/python-xlib " DEPEND=${RDEPEND} S="${WORKDIR}/pnegre-python-whiteboard-da2c90b" src_prepare () { epatch "${FILESDIR}/${P}.stuffdir.patch" cp "${FILESDIR}/${P}.makefile" makefile -f } src_install() { LIB="lib" [ $(get_libdir) == "lib64" ] && LIB=$(get_libdir) make DESTDIR="${D}usr/${LIB}/python2.6/site-packages/${PN}" install } pkg_postinst() { python_mod_optimize "${PN}" }