blob: 8c4c48d8b498583f9d01c6ba51d8e6e1f50d5c4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Copyright 1999-2005 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.4 2005/10/29 19:44:29 zzam 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="~x86 ~alpha ~ia64 ~amd64 ~ppc"
IUSE="usb"
DEPEND="usb? ( >=dev-libs/libusb-0.1.10a )"
RDEPEND="${DEPEND}"
src_compile() {
cd ${S}/util
make
if use usb; then
einfo "Building ttusb_dec_reset"
# build the ttusb_dec_reset program
cd ${S}/util/ttusb_dec_reset
make
else
einfo "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() {
einfo "Please read the documentation in /usr/share/doc/${PF}."
einfo "The channel lists and other examples also are in this directory."
einfo
einfo "scanning utility is now installed as dvbscan"
}
|