# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="3" KEYWORDS="" if [[ ${PV} == "9999" ]]; then EGIT_REPO_URI="git://github.com/pnegre/python-whiteboard.git" SRC_URI="" KEYWORDS="" inherit git fi IUSE_LINGUAS=( it ca_ES es all ) IUSE="-disable-linguas" DESCRIPTION="Build and operate an electronic whiteboard usin 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 " src_unpack() { if [[ ${PV} == "9999" ]]; then git_src_unpack else unpack ${A} fi } src_compile() { local X if use disable-linguas; then make clean else if [[ " ${LINGUAS} " =~ " all " ]]; then make languages else for X in ${LINGUAS}; do if [[ " ${IUSE_LINGUAS[*]} " =~ " ${X} " ]]; then lrelease "trans/pywhiteboard_${X%_??}.ts" fi done fi fi } src_install() { DESTDIR=${D} make install }