# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # Unofficial ebuild by Diego "Flameeyes" Pettenò - http://wwwstud.dsi.unive.it/~dpetteno/ inherit eutils debug DESCRIPTION="High quality television application for use with video capture cards." HOMEPAGE="http://tvtime.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" RESTRICT="nomirror" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="pic nls" DEPEND="virtual/x11 >=media-libs/freetype-2 >=sys-libs/zlib-1.1.4 >=media-libs/libpng-1.2 >=dev-libs/libxml2-2.5.11" pkg_setup() { ewarn ewarn "As of tvtime 0.9.13, SDL, MGA, and DirectFB" ewarn "support has been removed." ewarn ewarn "Therefore directfb and sdl USE flags are" ewarn "no longer available in tvtime" ewarn ebeep 3 epause 3 } src_unpack() { unpack ${A} sed -e 's:tvtime.png:tvtime:' -i ${S}/docs/net-tvtime.desktop } src_compile() { econf \ `use_enable nls` \ `use_with pic` \ ${myconf} || die "econf failed" emake || die "compile problem" } src_install () { einstall rm -rf ${D}/usr/share/pixmaps dodir /usr/share/icons/hicolor/16x16/apps/ install -m 644 ${S}/docs/tvtime.16x16.png ${D}/usr/share/icons/hicolor/16x16/apps/tvtime.png dodir /usr/share/icons/hicolor/32x32/apps/ install -m 644 ${S}/docs/tvtime.32x32.png ${D}/usr/share/icons/hicolor/32x32/apps/tvtime.png dodir /usr/share/icons/hicolor/16x16/apps/ install -m 644 ${S}/docs/tvtime.48x48.png ${D}/usr/share/icons/hicolor/48x48/apps/tvtime.png dohtml docs/html/* dodoc ChangeLog AUTHORS NEWS BUGS README README.UPGRADING COPYING \ data/COPYING.* docs/example.lircrc } pkg_postinst() { einfo "A default setup for ${PN} has been saved as" einfo "/etc/tvtime/tvtime.xml. You may need to modify it" einfo "for your needs." einfo einfo "Detailed information on ${PN} setup can be" einfo "found at ${HOMEPAGE}help.html" echo }