diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-plugins/vdr-weatherng | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-plugins/vdr-weatherng')
10 files changed, 303 insertions, 0 deletions
diff --git a/media-plugins/vdr-weatherng/Manifest b/media-plugins/vdr-weatherng/Manifest new file mode 100644 index 000000000000..27c2cc5cf021 --- /dev/null +++ b/media-plugins/vdr-weatherng/Manifest @@ -0,0 +1 @@ +DIST vdr-weatherng-0.0.8-pre3.tgz 177242 SHA256 e9edd9ae745ce45274a436f29a0f3a408cd4d218dc9d16e19e4a25e39be2bd0b SHA512 065ee8ac99ce706fe16d3a6e45ac302d6f75c2cddacf8ba0c591a2ca7720278a219735a7a14e486e5b44c113d064d9c8d348322a129fab99d373cfcef0a14172 WHIRLPOOL b80276d4e75317bfe71b2d764f27cbf46e71a8eda37246d33ea9f98773c5e9d58bb3ddcc88751945ba1af6896984353496b21aa42ec07574109907e2e111cb79 diff --git a/media-plugins/vdr-weatherng/files/confd-0.0.8 b/media-plugins/vdr-weatherng/files/confd-0.0.8 new file mode 100644 index 000000000000..69573e4f95d9 --- /dev/null +++ b/media-plugins/vdr-weatherng/files/confd-0.0.8 @@ -0,0 +1,41 @@ +# /etc/conf.d/vdr.weatherng +# $Id$ + +# ================================================================================= +# Before you use the examples of URLs in weatherng.sh , +# you agree with the "Terms of Use" from "The Weather Channel" , +# short TWC , which you can found at http://www.weather.com +# and that you have the permission to use the downloaded files. +# The same for copyrighted radarmaps. +# Take a look in /var/vdr/weatherng/weatherng.sh or read the README.(DE) +# ================================================================================= +# +# To get your Station Id move with your internetbrowser to : +# +# http://uk.weather.com/search/drilldown/ +# +# Type in the name of your town (e.g. "London" and hit enter. +# Now have a look at the link for your town which you hopefully got after you hit return. +# If you dont got one , try with a bigger town next to you. +# For "Herne, Germany" you get something like ....GMXX0056.... . +# so GMXX0056 is the StationId for you if you live in "Herne,Germany" ;) + +WEATHERNG_STATIONID1="GMXX0007" # example for Berlin, Germany +WEATHERNG_STATIONID2="GRXX0068" # example for Corfu, Greece +WEATHERNG_STATIONID3="USNY0996" # example for New York, USA + +## Next are default settings; should not be changed ! +# +# Directory to the /image DIR where the images are placed +# allowed values: pathes +# default: /usr/share/vdr/weatherng +#WEATHERNG_IMAGE_DIR="/usr/share/vdr/weatherng" + +# +# Directory to store downloaded weather data +# +# allowed values: pathes +# default: /var/vdr/weatherng +#WEATHERNG_DATA_DIR="/var/vdr/weatherng" + + diff --git a/media-plugins/vdr-weatherng/files/rc-addon-0.0.8.sh b/media-plugins/vdr-weatherng/files/rc-addon-0.0.8.sh new file mode 100644 index 000000000000..82d35b2bdbe7 --- /dev/null +++ b/media-plugins/vdr-weatherng/files/rc-addon-0.0.8.sh @@ -0,0 +1,24 @@ +# $Id$ +# +# rc-addon-script for plugin weatherng +# +# Joerg Borrnkessel <hd_brummy@gentoo.org> + +# set default image DIR +: ${WEATHERNG_IMAGE_DIR:=/usr/share/vdr/weatherng} + +# set default date DIR +: ${WEATHERNG_DATA_DIR:=/var/vdr/weatherng} + +# set default path to weatherng.sh +WEATHERNG_BIN_DIR=/var/vdr/weatherng + +plugin_pre_vdr_start() { + + add_plugin_param "-D ${WEATHERNG_DATA_DIR}" + + add_plugin_param "-I ${WEATHERNG_IMAGE_DIR}" + + add_plugin_param "-S ${WEATHERNG_BIN_DIR}" +} + diff --git a/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-dxr3.diff b/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-dxr3.diff new file mode 100644 index 000000000000..f77a9ef3810a --- /dev/null +++ b/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-dxr3.diff @@ -0,0 +1,17 @@ +fix OSD Problems on dxr3 cards +http://www.vdr-portal.de/board/thread.php?postid=517188#post517188 + +Joerg Bornkessel <hd_brummy@gentoo.org> 24 Oct 2006 + +diff -Naur weatherng-0.0.8-pre3.orig/OsdWeather.c weatherng-0.0.8-pre3/OsdWeather.c +--- weatherng-0.0.8-pre3.orig/OsdWeather.c 2006-10-24 13:46:22.850099968 +0200 ++++ weatherng-0.0.8-pre3/OsdWeather.c 2006-10-24 13:57:12.446697218 +0200 +@@ -379,7 +379,7 @@ + + #endif + */ +- colordepth = 16; ++ colordepth = 7; + areadepth = 4; + + tArea Area[] = { diff --git a/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-gcc43.patch b/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-gcc43.patch new file mode 100644 index 000000000000..e11e004ebbde --- /dev/null +++ b/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-gcc43.patch @@ -0,0 +1,15 @@ +fix compile problems with gcc-4.3.x +bug 227133 +diff -ruN weatherng-0.0.8-pre3_orig/imagecache.h weatherng-0.0.8-pre3/imagecache.h +--- weatherng-0.0.8-pre3_orig/imagecache.h 2006-03-11 19:14:49.000000000 +0100 ++++ weatherng-0.0.8-pre3/imagecache.h 2008-06-15 12:54:10.000000000 +0200 +@@ -5,6 +5,8 @@ + #ifndef VDR_IMAGECACHE_HPP + #define VDR_IMAGECACHE_HPP + ++#include <sys/types.h> ++ + #include <map> + #include <vector> + #include <string> + diff --git a/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-gentoo.diff b/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-gentoo.diff new file mode 100644 index 000000000000..67c62e25ab66 --- /dev/null +++ b/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-gentoo.diff @@ -0,0 +1,56 @@ +Joerg Bornkessel <hd_brummy@gentoo.org> +Version 1 ( 24 Oct 2006 ) + +diff -Naur weatherng-0.0.8-pre2.orig/examples/weatherng.sh weatherng-0.0.8-pre2/examples/weatherng.sh +--- weatherng-0.0.8-pre2.orig/examples/weatherng.sh 2006-03-19 18:35:48.897789250 +0100 ++++ weatherng-0.0.8-pre2/examples/weatherng.sh 2006-03-19 18:46:43.290686250 +0100 +@@ -8,6 +8,11 @@ + # To use this examples of urls , you must have the permission of owner to download and + # use them. Otherwise you must change the URLs. See README or README.DE. + ++source /etc/conf.d/vdr.weatherng ++ ++SCRIPT_API=2 ++source /usr/share/vdr/rcscript/plugin-weatherng.sh ++ + # Change SETUPDIR if you need. + SETUPDIR=/etc/vdr + +@@ -16,11 +21,11 @@ + case "${LANGUAGE[2]}" in + 1) MESG='Download abgeschlossen und Radarmaps aktualisiert' + URLS=(\ +-# http://www.dwd.de/scripts/getimg.php?src=/wundk/Wetter.jpg \ +-# http://www.wetter24.de/automatic/brd_tag_n+ww00002.jpg \ +-# http://www.wetter24.de/automatic/brd_tag_dd00002.jpg \ +-# http://www.wetter24.de/automatic/brd_tag_tt00002.jpg \ +-# http://www.wetter24.de/automatic/brd_tag_rr00002.jpg \ ++ http://www.dwd.de/bvbw/generator/Sites/DWDWWW/Content/Oeffentlichkeit/WV/WV11/Wetterkarten/Wetter__Deutschland__teaser__Bild,property=default.jpg \ ++ http://www.zdf.de/CMO/frontend/subsystem_we/WeShowPicture/0,6008,337,00.jpg \ ++ http://www.zdf.de/CMO/frontend/subsystem_we/WeShowPicture/0,6008,261,00.jpg \ ++ http://www.zdf.de/CMO/frontend/subsystem_we/WeShowPicture/0,6008,258,00.jpg \ ++ http://www.zdf.de/CMO/frontend/subsystem_we/WeShowPicture/0,6008,346,00.jpg \ + ) + ;; + 7) MESG='Téléchargement des données Météo OK' +@@ -53,7 +58,7 @@ + esac + + for i in $(seq 0 10) ; do +- eval ${URLS[$i]:+ wget -t 4 -T 20 "${URLS[$i]}" -O "$SETUPDIR/plugins/weatherng/pic${i}"} ++ eval ${URLS[$i]:+ wget -t 4 -T 20 "${URLS[$i]}" -O "${WEATHERNG_DATA_DIR}/pic${i}"} + done + + # Dont change or uncomment this and the following 5 lines. ;) +@@ -63,8 +68,8 @@ + # Example for Herne,Germany [GMXX0057]with a permission from The weather channel: + # e.g : wget -t 4 -T 20 "http://xoap.weather.com/weather/local/GMXX0057?cc=*&unit=m&dayf=10&prod=xoap&par=1004124588&key=079f24145f208494" -O "$SETUPDIR/plugins/weatherng/data1.xml" + +-#wget -t 4 -T 20 "http://xoap.weather.com/weather/local/STATIONID1?cc=*&unit=m&dayf=10&prod=xoap&par=1004124588&key=079f24145f208494" -O "$SETUPDIR/plugins/weatherng/data1.xml" +-#wget -t 4 -T 20 "http://xoap.weather.com/weather/local/STATIONID2?cc=*&unit=m&dayf=10&prod=xoap&par=1004124588&key=079f24145f208494" -O "$SETUPDIR/plugins/weatherng/data2.xml" +-#wget -t 4 -T 20 "http://xoap.weather.com/weather/local/STATIONID3?cc=*&unit=m&dayf=10&prod=xoap&par=1004124588&key=079f24145f208494" -O "$SETUPDIR/plugins/weatherng/data3.xml" ++wget -t 4 -T 20 "http://xoap.weather.com/weather/local/${WEATHERNG_STATIONID1}?cc=*&unit=m&dayf=10&par=1004124588&key=079f24145f208494" -O "${WEATHERNG_DATA_DIR}/data1.xml" ++wget -t 4 -T 20 "http://xoap.weather.com/weather/local/${WEATHERNG_STATIONID2}?cc=*&unit=m&dayf=10&par=1004124588&key=079f24145f208494" -O "${WEATHERNG_DATA_DIR}/data2.xml" ++wget -t 4 -T 20 "http://xoap.weather.com/weather/local/${WEATHERNG_STATIONID3}?cc=*&unit=m&dayf=10&par=1004124588&key=079f24145f208494" -O "${WEATHERNG_DATA_DIR}/data3.xml" + + echo $MESG diff --git a/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-i18n-fix.diff b/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-i18n-fix.diff new file mode 100644 index 000000000000..f42673f8db09 --- /dev/null +++ b/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-i18n-fix.diff @@ -0,0 +1,32 @@ +remove unused translation, compile problems up from vdr-1.5.8 + +Joerg Bornkessel 19 Sep 2007 <hd_brummy@gentoo.org> + +diff -Naur weatherng-0.0.8-pre3.orig/i18n.c weatherng-0.0.8-pre3/i18n.c +--- weatherng-0.0.8-pre3.orig/i18n.c 2007-09-19 12:03:01.884552652 +0200 ++++ weatherng-0.0.8-pre3/i18n.c 2007-09-19 12:03:21.786518169 +0200 +@@ -369,24 +369,6 @@ + "",// TODO + "¿àØÒÕâ!", + }, +- { "°C", +- "°C", +- "",// TODO +- "",// TODO +- "",// TODO +- "",// TODO +- "°C", +- "",// TODO +- "°C", +- "",// TODO +- "",// TODO +- "",// TODO +- "",// TODO +- "",// TODO +- "",// TODO +- "",// TODO +- "¿àØÒÕâ!", +- }, + { "Update data on start", + "Update von Daten bei Start", + "",// TODO diff --git a/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-timeout.diff b/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-timeout.diff new file mode 100644 index 000000000000..a44c70a63212 --- /dev/null +++ b/media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-timeout.diff @@ -0,0 +1,25 @@ +diff -Naur weatherng-0.0.8-pre3.orig/examples/weatherng.sh weatherng-0.0.8-pre3/examples/weatherng.sh +--- weatherng-0.0.8-pre3.orig/examples/weatherng.sh 2006-10-29 16:12:51.885610489 +0100 ++++ weatherng-0.0.8-pre3/examples/weatherng.sh 2006-10-29 16:13:22.559358488 +0100 +@@ -57,9 +57,11 @@ + ;; + esac + +-for i in $(seq 0 10) ; do +- eval ${URLS[$i]:+ wget -t 4 -T 20 "${URLS[$i]}" -O "${WEATHERNG_DATA_DIR}/pic${i}"} +-done ++if ping -c2 83.97.42.2 > /dev/null ; then ++ ++ for i in $(seq 0 10) ; do ++ eval ${URLS[$i]:+ wget -t 4 -T 20 "${URLS[$i]}" -O "${WEATHERNG_DATA_DIR}/pic${i}"} ++ done + + # Dont change or uncomment this and the following 5 lines. ;) + # Uncomment download only if you have a permission from The Weather Channel (see README). +@@ -72,4 +74,6 @@ + wget -t 4 -T 20 "http://xoap.weather.com/weather/local/${WEATHERNG_STATIONID2}?cc=*&unit=m&dayf=10&prod=xoap&par=1004124588&key=079f24145f208494" -O "${WEATHERNG_DATA_DIR}/data2.xml" + wget -t 4 -T 20 "http://xoap.weather.com/weather/local/${WEATHERNG_STATIONID3}?cc=*&unit=m&dayf=10&prod=xoap&par=1004124588&key=079f24145f208494" -O "${WEATHERNG_DATA_DIR}/data3.xml" + ++fi ++ + echo $MESG diff --git a/media-plugins/vdr-weatherng/metadata.xml b/media-plugins/vdr-weatherng/metadata.xml new file mode 100644 index 000000000000..0e65e6e7d330 --- /dev/null +++ b/media-plugins/vdr-weatherng/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>media-tv</herd> + <maintainer> + <email>vdr@gentoo.org</email> + <name>Gentoo VDR Project</name> + </maintainer> + <longdescription> + Plugin weatherng for the Video Disk Recorder (VDR) + Show weahter data for your City. + </longdescription> + <use> + <flag name='dxr3'>enables lower osd color depth for dxr3 cards</flag> + </use> +</pkgmetadata> diff --git a/media-plugins/vdr-weatherng/vdr-weatherng-0.0.8_pre3-r1.ebuild b/media-plugins/vdr-weatherng/vdr-weatherng-0.0.8_pre3-r1.ebuild new file mode 100644 index 000000000000..67726def6d01 --- /dev/null +++ b/media-plugins/vdr-weatherng/vdr-weatherng-0.0.8_pre3-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit vdr-plugin-2 + +MY_PV="${PV/_/-}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="VDR plugin: show weather for specified place" +HOMEPAGE="http://www.vdr.glaserei-franz.de/vdrplugins.htm" +SRC_URI="mirror://vdrfiles/${PN}/${MY_P}.tgz" + +LICENSE="GPL-2 stardock-images" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dxr3" + +DEPEND="media-libs/imlib2[jpeg,gif] + >=media-video/vdr-1.3.34" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/weatherng-${MY_PV}" + +VDR_CONFD_FILE="${FILESDIR}/confd-0.0.8" +VDR_RCADDON_FILE="${FILESDIR}/rc-addon-0.0.8.sh" + +PATCHES=("${FILESDIR}/${P}-i18n-fix.diff") + +src_prepare() { + vdr-plugin-2_src_prepare + + epatch "${FILESDIR}/${P}-gentoo.diff" + epatch "${FILESDIR}/${P}-timeout.diff" + epatch "${FILESDIR}/${P}-gcc43.patch" + + use dxr3 && epatch "${FILESDIR}/${P}-dxr3.diff" + + # /bin/sh is not necessaryly bash, so explicitly use /bin/bash + sed -e 's#/bin/sh#/bin/bash#' -i examples/weatherng.sh + + sed -i weatherng.c -e "s:RegisterI18n://RegisterI18n:" +} + +src_install() { + vdr-plugin-2_src_install + + insinto /usr/share/vdr/weatherng/images + doins "${S}"/images/*.png + + diropts -m0755 -ovdr -gvdr + dodir /var/vdr/${VDRPLUGIN} + + insinto /var/vdr/${VDRPLUGIN} + insopts -m755 -ovdr -gvdr + doins "${S}"/examples/weatherng.sh +} + +pkg_postinst() { + vdr-plugin-2_pkg_postinst + + echo + elog "To display the weather for your location" + elog "you have to find out its ID on weather.com" + elog + elog "Go to http://uk.weather.com/search/drilldown/ and search for your city (i.e. Herne)" + elog "in the list of results click on the right one and then look at its URL" + elog + elog "It contains a code for your city" + elog "For Herne this is GMXX0056" + elog + elog "Now you have to enter this code in /etc/conf.d/vdr.weatherng WEATHERNG_STATIONID(x)" + echo +} |