Gentoo Archives: gentoo-commits

From: "Joerg Bornkessel (hd_brummy)" <hd_brummy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-tv/v4l-dvb-hg: ChangeLog v4l-dvb-hg-0.1-r4.ebuild
Date: Tue, 30 Nov 2010 21:44:47
Message-Id: 20101130214426.AC64E20054@flycatcher.gentoo.org
1 hd_brummy 10/11/30 21:44:26
2
3 Modified: ChangeLog
4 Added: v4l-dvb-hg-0.1-r4.ebuild
5 Log:
6 r4; addapted to new hg repo file struct
7 (Portage version: 2.1.8.3/cvs/Linux i686)
8
9 Revision Changes Path
10 1.22 media-tv/v4l-dvb-hg/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/v4l-dvb-hg/ChangeLog?rev=1.22&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/v4l-dvb-hg/ChangeLog?rev=1.22&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/v4l-dvb-hg/ChangeLog?r1=1.21&r2=1.22
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-tv/v4l-dvb-hg/ChangeLog,v
19 retrieving revision 1.21
20 retrieving revision 1.22
21 diff -u -r1.21 -r1.22
22 --- ChangeLog 18 Nov 2009 19:39:51 -0000 1.21
23 +++ ChangeLog 30 Nov 2010 21:44:26 -0000 1.22
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-tv/v4l-dvb-hg
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-tv/v4l-dvb-hg/ChangeLog,v 1.21 2009/11/18 19:39:51 zzam Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/media-tv/v4l-dvb-hg/ChangeLog,v 1.22 2010/11/30 21:44:26 hd_brummy Exp $
30 +
31 +*v4l-dvb-hg-0.1-r4 (30 Nov 2010)
32 +
33 + 30 Nov 2010; Joerg Bornkessel <hd_brummy@g.o>
34 + +v4l-dvb-hg-0.1-r4.ebuild:
35 + r4; addapted to new hg repo file struct
36
37 18 Nov 2009; Matthias Schwarzott <zzam@g.o>
38 v4l-dvb-hg-0.1-r3.ebuild:
39
40
41
42 1.1 media-tv/v4l-dvb-hg/v4l-dvb-hg-0.1-r4.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/v4l-dvb-hg/v4l-dvb-hg-0.1-r4.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/v4l-dvb-hg/v4l-dvb-hg-0.1-r4.ebuild?rev=1.1&content-type=text/plain
46
47 Index: v4l-dvb-hg-0.1-r4.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-tv/v4l-dvb-hg/v4l-dvb-hg-0.1-r4.ebuild,v 1.1 2010/11/30 21:44:26 hd_brummy Exp $
52
53 : ${EHG_REPO_URI:=${V4L_DVB_HG_REPO_URI:-http://linuxtv.org/hg/v4l-dvb}}
54
55 EAPI="2"
56
57 inherit linux-mod eutils toolchain-funcs mercurial savedconfig
58
59 DESCRIPTION="Live development version of V4L and DVB driver for kernel 2.6"
60 SRC_URI=""
61 HOMEPAGE="http://www.linuxtv.org"
62
63 KEYWORDS="~amd64 ~x86"
64 SLOT="0"
65 LICENSE="GPL-2"
66 IUSE=""
67
68 S="${WORKDIR}/${EHG_REPO_URI##*/}/v4l"
69
70 CONFIG_CHECK="!DVB_CORE !VIDEO_DEV"
71
72 pkg_setup()
73 {
74 linux-mod_pkg_setup
75 if [[ "${KV_MAJOR}.${KV_MINOR}" != "2.6" ]]; then
76 ewarn "other Kernel than 2.6.x are not supported at the moment."
77 die "unsupported Kernel (not 2.6.x)"
78 fi
79 MODULE_NAMES="dvb(dvb:${S})"
80 BUILD_PARAMS="KDIR=${KERNEL_DIR}"
81 BUILD_TARGETS="default"
82
83 if [[ -d ${ROOT}/lib/modules/${KV_FULL}/v4l-dvb-cvs ]]; then
84 ewarn "There are stale dvb-modules from the ebuild v4l-dvb-cvs."
85 ewarn "Please remove the directory /lib/modules/${KV_FULL}/v4l-dvb-cvs"
86 ewarn "with all its files and subdirectories and then restart emerge."
87 ewarn
88 ewarn "# rm -rf /lib/modules/${KV_FULL}/v4l-dvb-cvs"
89 die "Stale dvb-modules found, restart merge after removing them."
90 fi
91 }
92
93 src_prepare() {
94
95 einfo "Removing modules-install"
96 sed -i "${S}"/v4l/Makefile -e "s/media-install firmware_install/media-install/"
97
98 # apply local patches
99 if test -n "${DVB_LOCAL_PATCHES}";
100 then
101 ewarn "Applying local patches:"
102 for LOCALPATCH in ${DVB_LOCAL_PATCHES};
103 do
104 if test -f "${LOCALPATCH}";
105 then
106 if grep -q linux/drivers "${LOCALPATCH}"; then
107 cd "${S}"/..
108 else
109 cd "${S}"
110 fi
111 epatch "${LOCALPATCH}"
112 fi
113 done
114 else
115 einfo "No additional local patches to use"
116 fi
117
118 export ARCH=$(tc-arch-kernel)
119 make allmodconfig ${BUILD_PARAMS}
120 export ARCH=$(tc-arch)
121
122 echo
123
124 elog "Removing autoload-entry from stradis-driver."
125 sed -e "${S}"/linux/drivers/media/video/stradis.c -i '/MODULE_DEVICE_TABLE/d'
126
127 cd "${S}/v4l"
128 sed -e '/-install::/s:rminstall::' \
129 -i Makefile
130
131 elog "Removing depmod-calls"
132 sed -e '/depmod/d' -i Makefile* scripts/make_makefile.pl scripts/make_kconfig.pl \
133 || die "Failed removing depmod call from Makefile"
134
135 grep depmod * && die "Not removed depmod found."
136
137 mkdir "${WORKDIR}"/header
138 cd "${WORKDIR}"/header
139 cp "${S}"/linux/include/linux/dvb/* .
140 sed -e '/compiler/d' \
141 -e 's/__user//' \
142 -i *.h
143
144 cd "${S}/v4l"
145 restore_config .config
146 }
147
148 src_install() {
149 # install the modules
150 local DEST="${D}/lib/modules/${KV_FULL}/v4l-dvb"
151 make install \
152 DEST="${DEST}" \
153 KDIR26="${DEST}" \
154 KDIRA="${DEST}" \
155 || die "make install failed"
156
157 cd "${S}"
158 dodoc linux/Documentation/dvb/*.txt
159 dosbin linux/Documentation/dvb/get_dvb_firmware
160
161 insinto /usr/include/v4l-dvb-hg/linux/dvb
162 cd "${WORKDIR}/header"
163 doins *.h
164
165 cd "${S}/v4l"
166 save_config .config
167 }
168
169 pkg_postinst() {
170 echo
171 elog "Firmware-files can be found in media-tv/linuxtv-dvb-firmware"
172 echo
173
174 linux-mod_pkg_postinst
175 echo
176 echo
177 elog "if you want to use the IR-port or networking"
178 elog "with the dvb-card you need to"
179 elog "install linuxtv-dvb-apps"
180 echo
181 }