diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2007-06-06 15:51:02 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2007-06-06 15:51:02 +0000 |
commit | eaf018abc9110b01c1d1ac6a97794adecaeb1a27 (patch) | |
tree | 0ef2fa121e6f16265985d34d98334d3035af3a0d | |
parent | old (diff) | |
download | gentoo-2-eaf018abc9110b01c1d1ac6a97794adecaeb1a27.tar.gz gentoo-2-eaf018abc9110b01c1d1ac6a97794adecaeb1a27.tar.bz2 gentoo-2-eaf018abc9110b01c1d1ac6a97794adecaeb1a27.zip |
Splitted tda1004x flag into tda10045, tda10046 and tda10046lifeview, as requested in bug #174491.
(Portage version: 2.1.2.9)
3 files changed, 342 insertions, 1 deletions
diff --git a/media-tv/linuxtv-dvb-firmware/ChangeLog b/media-tv/linuxtv-dvb-firmware/ChangeLog index 1f77c0b23029..a2563d76dbf9 100644 --- a/media-tv/linuxtv-dvb-firmware/ChangeLog +++ b/media-tv/linuxtv-dvb-firmware/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-tv/linuxtv-dvb-firmware # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/linuxtv-dvb-firmware/ChangeLog,v 1.15 2007/04/25 00:29:23 beandog Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-tv/linuxtv-dvb-firmware/ChangeLog,v 1.16 2007/06/06 15:51:02 zzam Exp $ + +*linuxtv-dvb-firmware-2007.04.13 (06 Jun 2007) + + 06 Jun 2007; Matthias Schwarzott <zzam@gentoo.org> + +linuxtv-dvb-firmware-2007.04.13.ebuild: + Splitted tda1004x flag into tda10045, tda10046 and tda10046lifeview, as + requested in bug #174491. 25 Apr 2007; Steve Dibb <beandog@gentoo.org> linuxtv-dvb-firmware-1.ebuild, linuxtv-dvb-firmware-2006.11.13.ebuild: diff --git a/media-tv/linuxtv-dvb-firmware/files/digest-linuxtv-dvb-firmware-2007.04.13 b/media-tv/linuxtv-dvb-firmware/files/digest-linuxtv-dvb-firmware-2007.04.13 new file mode 100644 index 000000000000..7a64b4508853 --- /dev/null +++ b/media-tv/linuxtv-dvb-firmware/files/digest-linuxtv-dvb-firmware-2007.04.13 @@ -0,0 +1,39 @@ +MD5 292ada6f90218a6bace6b72fe22eeec6 AVerTVHD_MCE_A180_Drv_v1.2.2.16.zip 156028 +RMD160 59f0b35f04d0030b39cde9c1a2e04cf060670769 AVerTVHD_MCE_A180_Drv_v1.2.2.16.zip 156028 +SHA256 7f65564416b12bc34d0d2e49b61a11c557e0f48a49064a8c880423606d43aa3f AVerTVHD_MCE_A180_Drv_v1.2.2.16.zip 156028 +MD5 985fece78c9aeaccf280f0db7c2c0dc5 Drv_2.11.02.zip 235227 +RMD160 b47dd9508fd5dd57355e138eea93658ab413ac13 Drv_2.11.02.zip 235227 +SHA256 a8e994a4af94cc5c4808603d648a19d5056f85338cfa6bfffffb072f2fde36bf Drv_2.11.02.zip 235227 +MD5 28db715d5e7a11bf85dd0240a42758f4 Dvbt1.3.57.6.zip 12174738 +RMD160 f06ea9bcf8e362e26b0387edcaba0d171fb3fc92 Dvbt1.3.57.6.zip 12174738 +SHA256 a2688def053bc3e01103d1894a1027c7cf896d40b238c59ad7f6da1c72e74903 Dvbt1.3.57.6.zip 12174738 +MD5 bda54d50a8dd9daabf30f4ee06c64f97 Technisat_DVB-PC_4_4_COMPACT.zip 20589158 +RMD160 a53dd1eb6cc997aa4f5a0e0da6b8510f064f535f Technisat_DVB-PC_4_4_COMPACT.zip 20589158 +SHA256 11751b445f13f5b7e7ce15349d2f086c271096927c4d974008a362f714314175 Technisat_DVB-PC_4_4_COMPACT.zip 20589158 +MD5 b96dde610256d896e8e1b37ae577796d dec217g.exe 16371951 +RMD160 34ffa441adba1c34a2fafe067758f12782e54662 dec217g.exe 16371951 +SHA256 fd20902bcc3178a26b5a27fe88adcdfce888daa8d2206b67b13e5f3a3973dc1c dec217g.exe 16371951 +MD5 f7657f81708578b4e4620f5348c3905a dvb-fe-bcm3510-01.fw 2285 +RMD160 894ecf8ddcf0bd7b34caed81053a18233a82f9f0 dvb-fe-bcm3510-01.fw 2285 +SHA256 978ece002a3e1f5eb760f6ca48496e05da00b7aa76e0f6f2cb108bde2ea14f51 dvb-fe-bcm3510-01.fw 2285 +MD5 abdd8102bb5b09314985a8ac9eaf8d83 dvb-firmwares-1.tar.bz2 182356 +RMD160 2e70e8111e0d8889f5cd017dfa1c8d2b635f61a2 dvb-firmwares-1.tar.bz2 182356 +SHA256 11772d539e5605e92f51a1edc82382c19808dea2bb9f0b425efad354e0d9bd52 dvb-firmwares-1.tar.bz2 182356 +MD5 658397cb9eba9101af9031302671f49d dvb-usb-bluebird-01.fw 9025 +RMD160 878f8f820993dbc1f03de43145a51e49e55e0733 dvb-usb-bluebird-01.fw 9025 +SHA256 1d9d8c5a320a0a76c476e08bd212291144439121d4147dbf8d48822b576306fc dvb-usb-bluebird-01.fw 9025 +MD5 551df6387db5bf5a8ca4d10cc30beaa5 dvb-usb-dib0700-01.fw 29955 +RMD160 2e0ecb4c33ebffd060bc9db1cf405e8b8cf1dbc2 dvb-usb-dib0700-01.fw 29955 +SHA256 df7c9ee69d0f4800894b281c743bd619e0a95233593f5bfa3ccba749e49df367 dvb-usb-dib0700-01.fw 29955 +MD5 4249787aaca0fbe8b82df91db4c7dc0f dvb-usb-wt220u-02.fw 8480 +RMD160 a291280a67a04bae78c83763150d2d81aef0bd38 dvb-usb-wt220u-02.fw 8480 +SHA256 ed8cd2ae6b5ad540fd4a14de9ccaa10f662781961f44cfe58b623679a5f508df dvb-usb-wt220u-02.fw 8480 +MD5 381add05f30c95d56edd23a19467372c dvb-usb-wt220u-fc03.fw 12902 +RMD160 33dd26ffe5129ce56a20d28762d7e12e04882082 dvb-usb-wt220u-fc03.fw 12902 +SHA256 838044a2f98736fe5b1266598a36eed4b5c9aa845e65c5d1d4054b8b72f808dc dvb-usb-wt220u-fc03.fw 12902 +MD5 f296fb50e2de3d5929b231994395cd24 tt_Premium_217g.zip 11348671 +RMD160 b7e63f5f96ab1aba1cfad3647a76b81952dcf2af tt_Premium_217g.zip 11348671 +SHA256 cfe84a039c20473ba41c2e3da165c668a0e227f197ea0e272abc253c5f9f5a83 tt_Premium_217g.zip 11348671 +MD5 bf511c80f48b49fa93c53ee6921303b5 tt_budget_217g.zip 12656253 +RMD160 41458fe742df0526847681ca8265bc485edba922 tt_budget_217g.zip 12656253 +SHA256 0e6e00f34273bd034370ee274d02eaa318bd6bb11c01b19d5b1a8e9b20ed5479 tt_budget_217g.zip 12656253 diff --git a/media-tv/linuxtv-dvb-firmware/linuxtv-dvb-firmware-2007.04.13.ebuild b/media-tv/linuxtv-dvb-firmware/linuxtv-dvb-firmware-2007.04.13.ebuild new file mode 100644 index 000000000000..a9396df5f186 --- /dev/null +++ b/media-tv/linuxtv-dvb-firmware/linuxtv-dvb-firmware-2007.04.13.ebuild @@ -0,0 +1,295 @@ +# 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-firmware/linuxtv-dvb-firmware-2007.04.13.ebuild,v 1.1 2007/06/06 15:51:02 zzam Exp $ + +DESCRIPTION="Firmware files needed for operation of some dvb-devices" +HOMEPAGE="http://www.linuxtv.org" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +UNSHIELD_DEPEND=">=app-arch/unshield-0.4" +DEPEND="dvb_cards_sp887x? ( ${UNSHIELD_DEPEND} )" + +RDEPEND="" + +RESTRICT="nomirror" + +S="${WORKDIR}" + + +# Files which can be fetched from linuxtv.org +PACKET_NAME=dvb-firmwares-1.tar.bz2 +PACKET_SRC_URI="http://www.linuxtv.org/downloads/firmware/${PACKET_NAME}" +get_dvb_firmware="${FILESDIR}/get_dvb_firmware-${PV}" + +FW_USE_FLAGS=( +# packet + "or51132" + "or51132" + "or51211" + "usb-a800" + "dibusb-usb1" + "dibusb-usb2" + "usb-dtt200u" + "usb-umt" + "usb-vp702x" + "usb-vp7045" + "usb-wt220u" + "ttpci" +# own URL + "bcm3510" + "usb-wt220u" + "usb-wt220u" + "usb-dib0700" +# get_dvb_firmware + "sp8870" + "sp887x" + "tda10045" + "tda10046" + "tda10046lifeview" + "ttusb-dec" + "ttusb-dec" + "ttusb-dec" + "nxt2002" + "nxt200x" + "usb-bluebird" +) + +FW_FILES=( +# packet + "dvb-fe-or51132-qam.fw" + "dvb-fe-or51132-vsb.fw" + "dvb-fe-or51211.fw" + "dvb-usb-avertv-a800-02.fw" + "dvb-dibusb-5.0.0.11.fw" + "dvb-usb-dibusb-6.0.0.8.fw" + "dvb-usb-dtt200u-01.fw" + "dvb-usb-umt-010-02.fw" + "dvb-usb-vp702x-01.fw" + "dvb-usb-vp7045-01.fw" + "dvb-usb-wt220u-01.fw" + "dvb-ttpci-01.fw" +# own URL + "dvb-fe-bcm3510-01.fw" + "dvb-usb-wt220u-02.fw" + "dvb-usb-wt220u-fc03.fw" + "dvb-usb-dib0700-01.fw" +# get_dvb_firmware + "dvb-fe-sp8870.fw" + "dvb-fe-sp887x.fw" + "dvb-fe-tda10045.fw" + "dvb-fe-tda10046.fw" + "dvb-fe-tda10046.fw" + "dvb-ttusb-dec-2000t.fw" + "dvb-ttusb-dec-2540t.fw" + "dvb-ttusb-dec-3000s.fw" + "dvb-fe-nxt2002.fw" + "dvb-fe-nxt2004.fw" + "dvb-usb-bluebird-01.fw" +) + + + +FW_GET_PARAMETER=( +# packet + "-" + "-" + "-" + "-" + "-" + "-" + "-" + "-" + "-" + "-" + "-" + "-" +# own URL + "-" + "-" + "-" + "-" +# get_dvb_firmware + "sp8870" + "sp887x" + "tda10045" + "tda10046" + "tda10046lifeview" + "dec2000t" + "dec2540t" + "dec3000s" + "nxt2002" + "nxt2004" + "-" +) + +FW_URLS=( +# packet + "${PACKET_SRC_URI}" + "${PACKET_SRC_URI}" + "${PACKET_SRC_URI}" + "${PACKET_SRC_URI}" + "${PACKET_SRC_URI}" + "${PACKET_SRC_URI}" + "${PACKET_SRC_URI}" + "${PACKET_SRC_URI}" + "${PACKET_SRC_URI}" + "${PACKET_SRC_URI}" + "${PACKET_SRC_URI}" + "${PACKET_SRC_URI}" +# own URL + "http://www.linuxtv.org/downloads/firmware/dvb-fe-bcm3510-01.fw" + "http://www.linuxtv.org/downloads/firmware/dvb-usb-wt220u-02.fw" + "http://home.arcor.de/efocht/dvb-usb-wt220u-fc03.fw" + "http://vaasa.wi-bw.tfh-wildau.de/~pboettch/home/files/dvb-usb-dib0700-01.fw" +# get_dvb_firmware + "http://www.technotrend.de/new/217g/tt_Premium_217g.zip" + "http://www.avermedia.com/software/Dvbt1.3.57.6.zip" + "http://www.technotrend.de/new/217g/tt_budget_217g.zip" + "http://www.technotrend.de/new/217g/tt_budget_217g.zip" + "http://www.lifeview.com.tw/drivers/pci_card/FlyDVB-T/Drv_2.11.02.zip" + "http://hauppauge.lightpath.net/de/dec217g.exe" + "http://hauppauge.lightpath.net/de/dec217g.exe" + "http://hauppauge.lightpath.net/de/dec217g.exe" + "http://www.bbti.us/download/windows/Technisat_DVB-PC_4_4_COMPACT.zip" + "http://www.aver.com/support/Drivers/AVerTVHD_MCE_A180_Drv_v1.2.2.16.zip" + "http://www.linuxtv.org/download/dvb/firmware/dvb-usb-bluebird-01.fw" +) + + +SRC_URI="" +NEGATIVE_USE_FLAGS="" +NEGATIVE_END_BRACKETS="" +ALL_URLS="" + +for ((CARD=0; CARD < ${#FW_USE_FLAGS[*]}; CARD++)) do + URL="${FW_URLS[CARD]}" + + if [[ -z ${URL} ]]; then + echo "missing url for ${FW_USE_FLAGS[CARD]}" + continue + fi + SRC_URI="${SRC_URI} dvb_cards_${FW_USE_FLAGS[CARD]}? ( ${URL} )" + + IUSE="${IUSE} dvb_cards_${FW_USE_FLAGS[CARD]}" + NEGATIVE_USE_FLAGS="${NEGATIVE_USE_FLAGS} !dvb_cards_${FW_USE_FLAGS[CARD]}? ( " + NEGATIVE_END_BRACKETS="${NEGATIVE_END_BRACKETS} )" + ALL_URLS="${ALL_URLS} ${URL}" + + GET_PARAM="${FW_GET_PARAMETER[CARD]}" + if [[ ${GET_PARAM} != "-" ]]; then + # all with get_dvb_firmware need unzip + DEPEND="${DEPEND} dvb_cards_${FW_USE_FLAGS[CARD]}? ( app-arch/unzip )" + fi +done + + +SRC_URI="${SRC_URI} ${NEGATIVE_USE_FLAGS} ${ALL_URLS} ${NEGATIVE_END_BRACKETS}" + +DEPEND="${DEPEND} + ${NEGATIVE_USE_FLAGS} + ${UNSHIELD_DEPEND} + app-arch/unzip + ${NEGATIVE_END_BRACKETS}" + +install_dvb_card() { + if [[ -z ${DVB_CARDS} ]]; then + # install (almost) all firmware files + + # do not install this one due to conflicting filenames + [[ "${1}" != "tda10046lifeview" ]] + else + # Check if this flag is set + use dvb_cards_${1} + fi +} + +pkg_setup() { + #echo SRC_URI=${SRC_URI} + #echo DEPEND=${DEPEND} + if hasq tda1004x ${DVB_CARDS}; then + eerror + eerror "DVB_CARDS flag tda1004x has been split into" + eerror "tda10045, tda10046 and tda10046lifeview". + eerror + eerror "But beware that you cannot enable tda10046 and" + eerror "tda10046lifeview at the same time." + eerror + fi + + if [[ -z ${DVB_CARDS} ]]; then + elog "DVB_CARDS is not set, installing all available firmware files." + fi + # according to http://devmanual.gentoo.org/general-concepts/use-flags/index.html + # we should not die here. However, there is no sensible fallback choice to make + # because the user may have either the one or the other. WYGIWYG + if useq dvb_cards_tda10046 && useq dvb_cards_tda10046lifeview; then + eerror + eerror "You cannot have both tda10046 and tda10046lifeview in DVB_CARDS" + eerror "because of colliding firmware filenames (dvb-fe-tda10046.fw)." + eerror "Sorry." + eerror + die "Conflicting values for DVB_CARDS set." + fi + elog "List of possible card-names to use for DVB_CARDS:" + echo ${FW_USE_FLAGS[*]}| tr ' ' '\n' | sort | uniq | fmt \ + | while read line; do + elog " ${line}" + done + elog "If you need another firmware file and want it included create a bug" + elog "at bugs.gentoo.org." +} + +src_unpack() { + # link all downloaded files to ${S} + for f in ${A}; do + [[ -L ${f} ]] || ln -s ${DISTDIR}/${f} ${f} + done + + # unpack firmware-packet + if hasq ${PACKET_NAME} ${A}; then + unpack ${PACKET_NAME} + # this file has renamed + mv dvb-usb-dibusb-5.0.0.11.fw dvb-dibusb-5.0.0.11.fw + fi + + + #SCRIPT_V=${PV} + #unchanged since last ebuild + SCRIPT_V=2006.11.13 + + # Adjust temp-dir of get_dvb_firmware + sed ${FILESDIR}/get_dvb_firmware-${SCRIPT_V} \ + -e "s#/tmp#${T}#g" \ + > get_dvb_firmware + chmod a+x get_dvb_firmware + + # extract the firmware-files + for ((CARD=0; CARD < ${#FW_USE_FLAGS[*]}; CARD++)) do + install_dvb_card ${FW_USE_FLAGS[CARD]} || continue + + GET_PARAM=${FW_GET_PARAMETER[CARD]} + if [[ ${GET_PARAM} != "-" ]]; then + [[ -f ${FW_FILES[CARD]} ]] && ewarn "Already existing: ${FW_FILES[CARD]}" + elog "Extracting ${FW_FILES[CARD]}" + ./get_dvb_firmware ${GET_PARAM} + fi + done +} + +src_install() { + cd ${S} + insinto /lib/firmware + + for ((CARD=0; CARD < ${#FW_USE_FLAGS[*]}; CARD++)) do + if install_dvb_card ${FW_USE_FLAGS[CARD]}; then + local FILE=${FW_FILES[CARD]} + [[ -f ${FILE} ]] || die "File ${FILE} does not exist!" + doins ${FILE} + fi + done +} + |