diff options
Diffstat (limited to 'net-misc/anyremote/anyremote-5.1.ebuild')
-rw-r--r-- | net-misc/anyremote/anyremote-5.1.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/net-misc/anyremote/anyremote-5.1.ebuild b/net-misc/anyremote/anyremote-5.1.ebuild new file mode 100644 index 000000000000..02f12a38c1fa --- /dev/null +++ b/net-misc/anyremote/anyremote-5.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/anyremote/anyremote-5.1.ebuild,v 1.1 2010/01/11 19:39:07 hwoarang Exp $ + +EAPI="2" + +inherit autotools + +DESCRIPTION="Anyremote provides wireless bluetooth, infrared or cable remote control service" +HOMEPAGE="http://anyremote.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bluetooth dbus" + +RDEPEND="bluetooth? ( || ( net-wireless/bluez ( net-wireless/bluez-libs net-wireless/bluez-utils ) ) ) + dbus? ( sys-apps/dbus ) + x11-libs/libXtst" + +DEPEND="${RDEPEND}" + +src_prepare() { + #workaround to badly broken autotools scripts by upstream + sed -i "s/doc\/${PN}/doc\/${PF}/g" Makefile.am \ + || die "failed to fix documentation path" + eautoreconf +} + +src_configure() { + econf --docdir="/usr/share/doc/${PF}/" $(use_enable bluetooth) $(use_enable dbus) +} + +src_install() { + emake install DESTDIR="${D}" || die "emake install failed" + dodoc AUTHORS ChangeLog NEWS README || die "install doc failed" +} |