blob: 5ab297f95fc62b6d455ac8e7399fbbe81cb7c16d (
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
80
81
82
83
84
85
|
# Copyright 1999-2010 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.1.20100223.ebuild,v 1.2 2010/02/23 20:36:09 zzam Exp $
EAPI="1"
inherit eutils versionator multilib
MY_P="${PN}-$(get_version_component_range 4)"
IUSE="usb"
SLOT="0"
HOMEPAGE="http://www.linuxtv.org/"
DESCRIPTION="small utils for DVB to scan, zap, view signal strength, ..."
LICENSE="GPL-2"
SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
KEYWORDS="~amd64 ~ia64 ~ppc ~x86"
RDEPEND="usb? ( virtual/libusb:0 )
!dev-db/xbase"
DEPEND="${RDEPEND}
media-tv/linuxtv-dvb-headers"
# !dev-db/xbase (bug #208596)
S="${WORKDIR}/dvb-apps-7de0663facd9"
src_unpack()
{
unpack ${A}
cd "${S}"
# do not compile test-progs
sed -i Makefile -e '/-C test/d'
# remove copy of header-files
rm -rf "${S}"/include
}
src_compile()
{
# ttusb_dec_reset requires libusb
myopts=""
use usb && myopts="${myopts} ttusb_dec_reset=1"
emake bindir=/usr/bin datadir=/usr/share libdir=/usr/$(get_libdir) \
${myopts} || die "failed to compile"
}
src_install()
{
insinto /usr/bin
emake bindir=/usr/bin datadir=/usr/share libdir=/usr/$(get_libdir) prefix=/usr \
DESTDIR="${D}" INSTDIR="${T}" ${myopts} install || die "install failed"
# rename scan to dvbscan
mv "${D}"/usr/bin/scan "${D}"/usr/bin/dvbscan
# install zap-files
for dir in dvb-{s,c,t} atsc; do
insinto /usr/share/dvb/zap/${dir}
doins "${S}"/util/szap/channels-conf/${dir}/*
done
# install remote-key files
insinto /usr/share/dvb/av7110_loadkeys
doins "${S}"/util/av7110_loadkeys/*.rc*
# install Documentation
dodoc README
newdoc util/scan/README README.dvbscan
newdoc util/szap/README README.zap
newdoc util/av7110_loadkeys/README README.av7110_loadkeys
use usb && newdoc util/ttusb_dec_reset/README README.ttusb_dec_reset
}
pkg_postinst()
{
elog "Please read the documentation in /usr/share/doc/${PF}."
elog "The channel lists and other files are installed in"
elog "/usr/share/dvb"
elog
elog "The scanning utility is now installed as dvbscan."
}
|