# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils subversion autotools flag-o-matic ESVN_REPO_URI="https://libwiimote.svn.sourceforge.net/svnroot/libwiimote/branches/ant" ESVN_PROJECT="libwiimote" #ESVN_BOOTSTRAP="autoreconf" DESCRIPTION="Library to connect to the Nintendo Wii remote (svn snapshot)" HOMEPAGE="http://libwiimote.sourceforge.net" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha amd64 ~hppa ~mips ~ppc ~sparc ~x86" RDEPEND="net-wireless/bluez-libs" DEPEND="${RDEPEND}" IUSE="examples doc disable-tilt disable-force" S=${WORKDIR}/${P} src_unpack() { subversion_src_unpack } src_compile() { cd ${S} eautoreconf || die "eautoreconf failed" econf \ $(use_enable disable-force force) \ $(use_enable disable-tilt tilt) \ || die "Error: econf failed!" emake -j1 || die "emake failed" } src_install() { make install DESTDIR=${D} if use doc; then dodoc AUTHORS COPYING NEWS README TODO fi if use examples; then elog "Installing test programs with sources in /usr/share/doc/${PF}/${DOCDESTTREE}" mkdir -p ${D}usr/share/doc/${PF}/${DOCDESTTREE} cp ${S}/test/test? ${D}usr/share/doc/${PF}/${DOCDESTTREE} dodoc ${S}/test/test?.c fi }