# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-tv/linuxtv-dvb-apps/linuxtv-dvb-apps-1.1.0.ebuild,v 1.7 2007/04/27 01:10:12 beandog Exp $ DESCRIPTION="small utils for DVB to scan, zap, view signal strength, ..." HOMEPAGE="http://www.linuxtv.org/wiki/index.php/LinuxTV_dvb-apps" SRC_URI="http://www.linuxtv.org/download/dvb/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha amd64 ~ia64 ~ppc ~x86" IUSE="usb" DEPEND="usb? ( >=dev-libs/libusb-0.1.10a )" RDEPEND="${DEPEND}" src_compile() { cd ${S}/util make if use usb; then elog "Building ttusb_dec_reset" # build the ttusb_dec_reset program cd ${S}/util/ttusb_dec_reset make else elog "Not building ttusb_dec_reset" fi } src_install() { cd ${S}/util dobin av7110_loadkeys/av7110_loadkeys av7110_loadkeys/evtest dobin dvbdate/dvbdate dobin dvbnet/dvbnet dobin dvbtraffic/dvbtraffic mv scan/scan scan/dvbscan # conflict with exim file name dobin scan/dvbscan cd szap dobin szap czap tzap femon if use usb; then dobin ${S}/util/ttusb_dec_reset/ttusb_dec_reset fi # Install Documentation and test code: DOCDIR="/usr/share/doc/${PF}" mkdir ${S}/docs cp ${S}/util/av7110_loadkeys/README ${S}/docs/README.av7110_loadkeys cp ${S}/util/scan/README ${S}/docs/README.scan cp ${S}/util/szap/README ${S}/docs/README.szap cp ${S}/README ${S}/docs/README cp ${S}/TODO ${S}/docs/TODO cp ${S}/libdvb2/README ${S}/docs/README.libdvb2 if use usb; then cp ${S}/util/ttusb_dec_reset/README ${S}/docs/README.ttusb_dec_reset fi dodoc ${S}/docs/* insinto "${DOCDIR}/test/" doins ${S}/test/* insinto "${DOCDIR}/dvbnet/" doins ${S}/util/dvbnet/net_start.* insinto "${DOCDIR}/szap/" doins ${S}/util/szap/channels.* insinto "${DOCDIR}/scan/" cp -r ${S}/util/scan/dvb-[sct] ${D}/${DOCDIR}/scan/ } pkg_postinst() { elog "Please read the documentation in /usr/share/doc/${PF}." elog "The channel lists and other examples also are in this directory." elog elog "scanning utility is now installed as dvbscan" }