# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Robot device server" HOMEPAGE="http://playerstage.sourceforge.net/" SRC_URI="mirror://sourceforge/playerstage/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="python doc" DEPEND="media-libs/jpeg dev-util/pkgconfig >=x11-libs/gtk+-2 >=gnome-base/libgnomecanvas-2 python? ( dev-lang/python dev-lang/swig)" RDEPEND="" S="${WORKDIR}/${P}" src_compile() { econf $(use_enable python libplayerc-py) \ || die "configure failed" emake || die "make failed" } src_install() { einstall || die "make install failed" dodoc AUTHORS NEWS TODO ChangeLog dodir /etc/env.d echo "PLAYERPATH=\"/usr/lib\"" > ${D}/etc/env.d/99player if use doc; then docinto examples/c++ dodoc ${S}/examples/c++/*.cc docinto examples/libplayerc dodoc ${S}/examples/c/*.c fi }