Gentoo Archives: gentoo-commits

From: "Daniel Pielmeier (billie)" <billie@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-tv/linuxtv-dvb-firmware: ChangeLog linuxtv-dvb-firmware-2009.07.06-r1.ebuild
Date: Wed, 09 Sep 2009 20:14:45
Message-Id: E1MlTYx-0004NZ-93@stork.gentoo.org
1 billie 09/09/09 20:14:43
2
3 Modified: ChangeLog
4 Added: linuxtv-dvb-firmware-2009.07.06-r1.ebuild
5 Log:
6 Revision bump. Add back tda10045 firmware thanks to Michael Lothian in bug #275667
7 (Portage version: 2.1.6.13/cvs/Linux i686)
8
9 Revision Changes Path
10 1.23 media-tv/linuxtv-dvb-firmware/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/linuxtv-dvb-firmware/ChangeLog?rev=1.23&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/linuxtv-dvb-firmware/ChangeLog?rev=1.23&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/linuxtv-dvb-firmware/ChangeLog?r1=1.22&r2=1.23
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-tv/linuxtv-dvb-firmware/ChangeLog,v
19 retrieving revision 1.22
20 retrieving revision 1.23
21 diff -u -r1.22 -r1.23
22 --- ChangeLog 2 Sep 2009 20:49:58 -0000 1.22
23 +++ ChangeLog 9 Sep 2009 20:14:42 -0000 1.23
24 @@ -1,6 +1,13 @@
25 # ChangeLog for media-tv/linuxtv-dvb-firmware
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-tv/linuxtv-dvb-firmware/ChangeLog,v 1.22 2009/09/02 20:49:58 billie Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-tv/linuxtv-dvb-firmware/ChangeLog,v 1.23 2009/09/09 20:14:42 billie Exp $
29 +
30 +*linuxtv-dvb-firmware-2009.07.06-r1 (09 Sep 2009)
31 +
32 + 09 Sep 2009; Pielmeier Daniel <billie@g.o>
33 + +linuxtv-dvb-firmware-2009.07.06-r1.ebuild:
34 + Revision bump. Add back tda10045 firmware thanks to Michael Lothian in bug
35 + #275667
36
37 *linuxtv-dvb-firmware-2009.07.06 (02 Sep 2009)
38
39
40
41
42 1.1 media-tv/linuxtv-dvb-firmware/linuxtv-dvb-firmware-2009.07.06-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/linuxtv-dvb-firmware/linuxtv-dvb-firmware-2009.07.06-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/linuxtv-dvb-firmware/linuxtv-dvb-firmware-2009.07.06-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: linuxtv-dvb-firmware-2009.07.06-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-tv/linuxtv-dvb-firmware/linuxtv-dvb-firmware-2009.07.06-r1.ebuild,v 1.1 2009/09/09 20:14:42 billie Exp $
52
53 DESCRIPTION="Firmware files needed for operation of some dvb-devices"
54 HOMEPAGE="http://www.linuxtv.org"
55
56 LICENSE="as-is"
57 SLOT="0"
58 KEYWORDS="~amd64 ~x86"
59 IUSE=""
60
61 DEPEND=""
62 RDEPEND=""
63
64 RESTRICT="mirror"
65
66 S="${WORKDIR}"
67
68 # Files which can be fetched from linuxtv.org
69 PACKET_NAME=dvb-firmwares-1.tar.bz2
70 PACKET_SRC_URI="http://www.linuxtv.org/downloads/firmware/${PACKET_NAME}"
71 get_dvb_firmware="${FILESDIR}/get_dvb_firmware-${PV}"
72 # from http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6-stable.git;a=history;f=Documentation/dvb/get_dvb_firmware
73
74 FW_USE_FLAGS=(
75 # packet
76 "usb-a800"
77 "dibusb-usb2"
78 "usb-dtt200u"
79 "usb-umt"
80 "usb-vp702x"
81 "usb-vp7045"
82 "usb-wt220u"
83 "dibusb-usb1"
84 "or51211"
85 "or51132"
86 "or51132"
87 # own URL
88 "ttpci"
89 "bcm3510"
90 "usb-wt220u"
91 "usb-wt220u"
92 "usb-dib0700"
93 "usb-af9015"
94 "sp887x"
95 "af9005"
96 "cx231xx"
97 "cx18"
98 "cx18"
99 "cx18"
100 "cx23885"
101 "cx23885"
102 "pvrusb2"
103 "usb-bluebird"
104 "tda10045"
105 # get_dvb_firmware
106 "sp8870"
107 "tda10046"
108 "tda10046lifeview"
109 "ttusb-dec"
110 "ttusb-dec"
111 "ttusb-dec"
112 "opera1"
113 "opera1"
114 "vp7041"
115 "nxt200x"
116 "mpc718"
117 )
118
119 FW_FILES=(
120 # packet
121 "dvb-usb-avertv-a800-02.fw"
122 "dvb-usb-dibusb-6.0.0.8.fw"
123 "dvb-usb-dtt200u-01.fw"
124 "dvb-usb-umt-010-02.fw"
125 "dvb-usb-vp702x-01.fw"
126 "dvb-usb-vp7045-01.fw"
127 "dvb-usb-wt220u-01.fw"
128 "dvb-dibusb-5.0.0.11.fw"
129 "dvb-fe-or51211.fw"
130 "dvb-fe-or51132-qam.fw"
131 "dvb-fe-or51132-vsb.fw"
132 # own URL
133 "dvb-ttpci-01.fw"
134 "dvb-fe-bcm3510-01.fw"
135 "dvb-usb-wt220u-02.fw"
136 "dvb-usb-wt220u-fc03.fw"
137 "dvb-usb-dib0700-1.20.fw"
138 "dvb-usb-af9015.fw"
139 "dvb-fe-sp887x.fw"
140 "af9005.fw"
141 "v4l-cx231xx-avcore-01.fw"
142 "v4l-cx23418-apu.fw"
143 "v4l-cx23418-cpu.fw"
144 "v4l-cx23418-dig.fw"
145 "v4l-cx23885-avcore-01.fw"
146 "v4l-cx23885-enc.fw"
147 "v4l-cx25840.fw"
148 "dvb-usb-bluebird-01.fw"
149 "dvb-fe-tda10045.fw"
150 # get_dvb_firmware
151 "dvb-fe-sp8870.fw"
152 "dvb-fe-tda10046.fw"
153 "dvb-fe-tda10046.fw"
154 "dvb-ttusb-dec-2000t.fw"
155 "dvb-ttusb-dec-2540t.fw"
156 "dvb-ttusb-dec-3000s.fw"
157 "dvb-usb-opera1-fpga-01.fw"
158 "dvb-usb-opera-01.fw"
159 "dvb-vp7041-2.422.fw"
160 "dvb-fe-nxt2004.fw"
161 "dvb-cx18-mpc718-mt352.fw"
162 )
163
164 FW_GET_PARAMETER=(
165 # packet
166 "-"
167 "-"
168 "-"
169 "-"
170 "-"
171 "-"
172 "-"
173 "-"
174 "-"
175 "-"
176 "-"
177 # own URL
178 "-"
179 "-"
180 "-"
181 "-"
182 "-"
183 "-"
184 "-"
185 "-"
186 "-"
187 "-"
188 "-"
189 "-"
190 "-"
191 "-"
192 "-"
193 "-"
194 "-"
195 # get_dvb_firmware
196 "sp8870"
197 "tda10046"
198 "tda10046lifeview"
199 "dec2000t"
200 "dec2540t"
201 "dec3000s"
202 "opera1"
203 "-"
204 "vp7041"
205 "nxt2004"
206 "mpc718"
207 )
208
209 FW_URLS=(
210 # packet
211 "${PACKET_SRC_URI}"
212 "${PACKET_SRC_URI}"
213 "${PACKET_SRC_URI}"
214 "${PACKET_SRC_URI}"
215 "${PACKET_SRC_URI}"
216 "${PACKET_SRC_URI}"
217 "${PACKET_SRC_URI}"
218 "${PACKET_SRC_URI}"
219 "${PACKET_SRC_URI}"
220 "${PACKET_SRC_URI}"
221 "${PACKET_SRC_URI}"
222 # own URL
223 "http://www.escape-edv.de/endriss/firmware/dvb-ttpci-01.fw-fc2624"
224 "http://www.linuxtv.org/downloads/firmware/dvb-fe-bcm3510-01.fw"
225 "http://www.linuxtv.org/downloads/firmware/dvb-usb-wt220u-02.fw"
226 "http://home.arcor.de/efocht/dvb-usb-wt220u-fc03.fw"
227 "http://www.wi-bw.tfh-wildau.de/~pboettch/home/files/dvb-usb-dib0700-1.20.fw"
228 "http://www.otit.fi/~crope/v4l-dvb/af9015/af9015_firmware_cutter/firmware_files/4.95.0/dvb-usb-af9015.fw"
229 "http://peterdamen.com/dvb-fe-sp887x.fw"
230 "http://ventoso.org/luca/af9005/af9005.fw"
231 "http://linuxtv.org/downloads/firmware/v4l-cx231xx-avcore-01.fw"
232 "http://linuxtv.org/downloads/firmware/v4l-cx23418-apu.fw"
233 "http://linuxtv.org/downloads/firmware/v4l-cx23418-cpu.fw"
234 "http://linuxtv.org/downloads/firmware/v4l-cx23418-dig.fw"
235 "http://linuxtv.org/downloads/firmware/v4l-cx23885-avcore-01.fw"
236 "http://linuxtv.org/downloads/firmware/v4l-cx23885-enc.fw"
237 "http://linuxtv.org/downloads/firmware/v4l-cx25840.fw"
238 "http://linuxtv.org/downloads/firmware/dvb-usb-bluebird-01.fw"
239 "http://www.fireburn.co.uk/dvb-fe-tda10045.fw"
240 # get_dvb_firmware
241 "http://2.download.softwarepatch.pl/1619edb0dcb493dd5337b94a1f79c3f6/tt_Premium_217g.zip"
242 "http://www.tt-download.com/download/updates/219/TT_PCI_2.19h_28_11_2006.zip"
243 "http://www.lifeview.hk/dbimages/document/7%5Cdrv_2.11.02.zip"
244 "http://hauppauge.lightpath.net/de/dec217g.exe"
245 "http://hauppauge.lightpath.net/de/dec217g.exe"
246 "http://hauppauge.lightpath.net/de/dec217g.exe"
247 "http://www.informatik.uni-leipzig.de/~hlawit/dvb/2830SCap2.sys"
248 "http://www.informatik.uni-leipzig.de/~hlawit/dvb/2830SLoad2.sys"
249 "http://www.twinhan.com/files/AW/Software/TwinhanDTV2.608a.zip"
250 "http://www.avermedia-usa.com/support/Drivers/AVerTVHD_MCE_A180_Drv_v1.2.2.16.zip"
251 "ftp://ftp.work.acer-euro.com/desktop/aspire_idea510/vista/Drivers/Yuan%20MPC718%20TV%20Tuner%20Card%202.13.10.1016.zip"
252 )
253
254 SRC_URI=""
255 NEGATIVE_USE_FLAGS=""
256 NEGATIVE_END_BRACKETS=""
257 ALL_URLS=""
258
259 for ((CARD=0; CARD < ${#FW_USE_FLAGS[*]}; CARD++)) do
260 URL="${FW_URLS[CARD]}"
261
262 if [[ -z ${URL} ]]; then
263 echo "missing url for ${FW_USE_FLAGS[CARD]}"
264 continue
265 fi
266 SRC_URI="${SRC_URI} dvb_cards_${FW_USE_FLAGS[CARD]}? ( ${URL} )"
267
268 IUSE="${IUSE} dvb_cards_${FW_USE_FLAGS[CARD]}"
269 NEGATIVE_USE_FLAGS="${NEGATIVE_USE_FLAGS} !dvb_cards_${FW_USE_FLAGS[CARD]}? ( "
270 NEGATIVE_END_BRACKETS="${NEGATIVE_END_BRACKETS} )"
271 ALL_URLS="${ALL_URLS} ${URL}"
272
273 GET_PARAM="${FW_GET_PARAMETER[CARD]}"
274 if [[ ${GET_PARAM} != "-" ]]; then
275 # all firmwares extracted by get_dvb_firmware need unzip
276 DEPEND="${DEPEND} dvb_cards_${FW_USE_FLAGS[CARD]}? ( app-arch/unzip )"
277 fi
278 done
279
280 SRC_URI="${SRC_URI} ${NEGATIVE_USE_FLAGS} ${ALL_URLS} ${NEGATIVE_END_BRACKETS}"
281
282 DEPEND="${DEPEND}
283 ${NEGATIVE_USE_FLAGS}
284 app-arch/unzip
285 ${NEGATIVE_END_BRACKETS}"
286
287 install_dvb_card() {
288 if [[ -z ${DVB_CARDS} ]]; then
289 # install (almost) all firmware files
290
291 # do not install this one due to conflicting filenames
292 [[ "${1}" != "tda10046lifeview" ]]
293 else
294 # Check if this flag is set
295 use dvb_cards_${1}
296 fi
297 }
298
299 pkg_setup() {
300 #echo SRC_URI=${SRC_URI}
301 #echo DEPEND=${DEPEND}
302 if has tda1004x ${DVB_CARDS}; then
303 eerror
304 eerror "DVB_CARDS flag tda1004x has been split into"
305 eerror "tda10045, tda10046 and tda10046lifeview".
306 eerror
307 eerror "But beware that you cannot enable tda10046 and"
308 eerror "tda10046lifeview at the same time."
309 eerror
310 fi
311
312 if [[ -z ${DVB_CARDS} ]]; then
313 elog "DVB_CARDS is not set, installing all available firmware files."
314 fi
315 # according to http://devmanual.gentoo.org/general-concepts/use-flags/index.html
316 # we should not die here. However, there is no sensible fallback choice to make
317 # because the user may have either the one or the other. WYGIWYG
318 if use dvb_cards_tda10046 && use dvb_cards_tda10046lifeview; then
319 eerror
320 eerror "You cannot have both tda10046 and tda10046lifeview in DVB_CARDS"
321 eerror "because of colliding firmware filenames (dvb-fe-tda10046.fw)."
322 eerror "Sorry."
323 eerror
324 die "Conflicting values for DVB_CARDS set."
325 fi
326 elog "List of possible card-names to use for DVB_CARDS:"
327 echo ${FW_USE_FLAGS[*]}| tr ' ' '\n' | sort | uniq | fmt \
328 | while read line; do
329 elog " ${line}"
330 done
331 elog "If you need another firmware file and want it included create a bug"
332 elog "at bugs.gentoo.org."
333 elog "If some firmware sources are not fetchable anymore please also report"
334 elog "a bug. If there is no alternative source or an update to the firmware"
335 elog "available we have to remove it from this ebuild and you are on your own."
336 }
337
338 src_unpack() {
339 # link all downloaded files to ${S}
340 for f in ${A}; do
341 [[ -L ${f} ]] || ln -s ${DISTDIR}/${f} ${f}
342 done
343
344 # unpack firmware-packet
345 if has ${PACKET_NAME} ${A}; then
346 unpack ${PACKET_NAME}
347 fi
348
349 use dvb_cards_mpc718 && mv Yuan%20MPC718%20TV%20Tuner%20Card%202.13.10.1016.zip "Yuan MPC718 TV Tuner Card 2.13.10.1016.zip"
350 use dvb_cards_dibusb-usb1 && mv dvb-usb-dibusb-5.0.0.11.fw dvb-dibusb-5.0.0.11.fw
351 use dvb_cards_ttpci && mv dvb-ttpci-01.fw-fc2624 dvb-ttpci-01.fw
352
353 SCRIPT_V=${PV}
354
355 # Adjust temp-dir of get_dvb_firmware
356 sed "${FILESDIR}"/get_dvb_firmware-${SCRIPT_V} \
357 -e "s#/tmp#${T}#g" > get_dvb_firmware
358 chmod a+x get_dvb_firmware
359
360 # extract the firmware-files
361 for ((CARD=0; CARD < ${#FW_USE_FLAGS[*]}; CARD++)) do
362 install_dvb_card ${FW_USE_FLAGS[CARD]} || continue
363
364 GET_PARAM=${FW_GET_PARAMETER[CARD]}
365 if [[ ${GET_PARAM} != "-" ]]; then
366 [[ -f ${FW_FILES[CARD]} ]] && ewarn "Already existing: ${FW_FILES[CARD]}"
367 elog "Extracting ${FW_FILES[CARD]}"
368 ./get_dvb_firmware ${GET_PARAM}
369 fi
370 done
371 }
372
373 src_install() {
374 insinto /lib/firmware
375
376 for ((CARD=0; CARD < ${#FW_USE_FLAGS[*]}; CARD++)) do
377 if install_dvb_card ${FW_USE_FLAGS[CARD]}; then
378 local FILE=${FW_FILES[CARD]}
379 [[ -f ${FILE} ]] || die "File ${FILE} does not exist!"
380 doins ${FILE}
381 fi
382 done
383 }