# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils # A short (less than 80 characters) description of the package's purpose. DESCRIPTION="A frontend for MPlayer and various command line tools to watch and record TV" # Package's homepage. HOMEPAGE="http://tv-viewer.sourceforge.net" # A list of source URIs for the package. # SRC_URI="http://downloads.sourceforge.net/project/tv-viewer/tv-viewer_stable_0.8.x/0.8.1/tv-viewer-0.8.1.tar.gz" SRC_URI="mirror://sourceforge/project/tv-viewer/tv-viewer_stable_0.8.x/${PV}/${P}.tar.gz" #SRC_URI="http://downloads.sourceforge.net/project/tv-viewer/tv-viewer_stable_0.8.x/${PV}/${P}.tar.gz" # ~arch: # package version and the ebuild are believed to work and do not have any known # serious bugs, but more testing is required before the package version is # considered suitable for arch. # No keyword # If a package has no keyword for a given arch, it means it is not known whether # the package will work, or that insufficient testing has occurred for ~arch. # In this case: ~alpha ~hppa ~ia64 ~ppc ~ppc64 KEYWORDS="~amd64 ~x86" # The package's SLOT. No slots are needed. SLOT="0" # The package's license, corresponding exactly (including case) to a file in # licenses/. LICENSE="GPL-2" # A list of all USE flags (excluding arch flags, but including USE_EXPAND flags) # used within the ebuild. IUSE="lirc tkimg trayicon" # A list of the package's runtime dependencies. RDEPEND=" media-tv/v4l-utils media-tv/ivtv-utils >=dev-lang/tcl-8.5 >=dev-lang/tk-8.5 >=media-video/mplayer-1.0_rc2 x11-misc/xdg-utils lirc? ( app-misc/lirc ) tkimg? ( || ( dev-tcltk/tkimg ( >=dev-lang/tcl-8.6 >=dev-lang/tk-8.6 ) ) ) " src_unpack() { unpack ${A} cd "${S}" #} #src_prepare() { if use trayicon ; then # enable systray icon ./configure.tcl --enable-tktray=yes --prefix="${D}/usr"\ --bindir="${D}/usr/bin" --bintarget="/usr/share/tv-viewer"\ --libdir="${D}/usr/lib" --datadir="${D}/usr/share"\ --docdir="${D}/usr/doc/tv-viewer" --mandir="${D}/usr/share/man/man1"; else ./configure.tcl --enable-tktray=no --prefix="${D}/usr"\ --bindir="${D}/usr/bin" --bintarget="/usr/share/tv-viewer"\ --libdir="${D}/usr/lib" --datadir="${D}/usr/share"\ --docdir="${D}/usr/doc/tv-viewer" --mandir="${D}/usr/share/man/man1"; fi } src_install() { ./install.tcl || die "install failed" } pkg_postinst() { elog "If tv-viewer plays sound but shows the progress indicator endlessly" elog "instead of video, make sure that the first language in your LINGUAS" elog "variable in /etc/make.conf is set to en (e.g. LINGUAS=\"en de\")" elog "and reemerge mplayer." }