1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils multilib rpm
9 DESCRIPTION="Hulu desktop"
10 HOMEPAGE="http://www.hulu.com/labs/hulu-desktop-linux"
11 SRC_URI="amd64? ( http://download.hulu.com/${PN}.x86_64.rpm -> ${P}.x86_64.rpm )
12 x86? ( http://download.hulu.com/${PN}.i386.rpm -> ${P}.i386.rpm )"
16 KEYWORDS="~amd64 ~x86"
19 RDEPEND="www-plugins/adobe-flash
25 doins etc/${PN}/hd_keymap.ini || die "Failed doins"
27 dobin usr/bin/${PN} || die "Failed dobin"
29 domenu usr/share/applications/${PN}.desktop || die "Failed domenu"
30 doicon usr/share/pixmaps/${PN}.png || die "Failed doicon"
31 dodoc usr/share/doc/${PN}/README || die "Failed dodoc"
35 einfo "This program can utilize a remote control. Please install"
36 einfo "app-misc/lirc if you wish to use a remote with ${PN}."
38 ewarn "The file ~/.${PN} should be created for you if you start Hulu Desktop"
39 ewarn "but the path to the flash plugin is not set by default."
41 ewarn "You need to add the following to ~/.${PN}:"
43 ewarn "flash_location = /usr/$(get_libdir)/nsbrowser/plugins/libflashplayer.so"