1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 inherit git-2 multilib python user
11 DESCRIPTION="An HMO and GoBack server for Tivo"
12 HOMEPAGE="http://pytivo.sourceforge.net/"
15 EGIT_REPO_URI="git://github.com/wmcbrine/pytivo.git"
16 EGIT_COMMIT="cf0971e929661dabd3a34f363500f8d6f575d58f"
20 KEYWORDS="~amd64 ~x86"
29 enewuser pytivo -1 -1 -1 pytivo
30 python_set_active_version 2
34 python_convert_shebangs -r 2 .
38 MY_LIBDIR="/usr/$(get_libdir)/${PN}"
41 doins *.py *.pyw || die "Install failed"
42 doins -r Cheetah mutagen plugins templates xmpp || die "Install failed"
44 fperms 0755 ${MY_LIBDIR}/pyTivo.py || die "Cannot set permissions"
46 doinitd "${FILESDIR}"/pytivo || die "Cannot create init.d launcher"
48 dodoc README || die "Cannot install docs"
49 newdoc pyTivo.conf.dist pyTivo.conf || die "Cannot install docs"
51 dosym ${MY_LIBDIR}/pyTivo.py /usr/bin/pytivo \
52 || die "Cannot create symlink to launcher"
56 ewarn "You must setup /etc/pyTivo.conf before pyTivo can be started. A"
57 ewarn "sample configuration file pyTivo.conf is available in"
58 ewarn "/usr/share/doc/${PF}"
61 elog "pyTivo can be run as a normal user or it can be started"
62 elog "automatically by adding pytivo to the default runlevel by"
63 elog " # rc-update add pytivo default"