summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-weatherng
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-plugins/vdr-weatherng
reinit the tree, so we can have metadata
Diffstat (limited to 'media-plugins/vdr-weatherng')
-rw-r--r--media-plugins/vdr-weatherng/Manifest12
-rw-r--r--media-plugins/vdr-weatherng/files/confd-0.0.840
-rw-r--r--media-plugins/vdr-weatherng/files/rc-addon-0.0.8.sh23
-rw-r--r--media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-dxr3.diff17
-rw-r--r--media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-gcc43.patch15
-rw-r--r--media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-gentoo.diff56
-rw-r--r--media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-i18n-fix.diff32
-rw-r--r--media-plugins/vdr-weatherng/files/vdr-weatherng-0.0.8_pre3-timeout.diff25
-rw-r--r--media-plugins/vdr-weatherng/metadata.xml15
-rw-r--r--media-plugins/vdr-weatherng/vdr-weatherng-0.0.8_pre3-r1.ebuild78
10 files changed, 313 insertions, 0 deletions
diff --git a/media-plugins/vdr-weatherng/Manifest b/media-plugins/vdr-weatherng/Manifest
new file mode 100644
index 000000000000..eb1a7dd22a36
--- /dev/null
+++ b/media-plugins/vdr-weatherng/Manifest
@@ -0,0 +1,12 @@
+AUX confd-0.0.8 1581 SHA256 800b8f7e3abeab0f396e8cec65622bfc1c3696c1bff50a5611c6ff9a908a7585 SHA512 b195919bdfa49a4764c29fe971595a1f1d2bc8d76e33de04a724b3a0550ed6f080ba348883762953cb3de8d42775f72b92a02c1756044fb96ecd2ee6ace4e851 WHIRLPOOL 75194087b5c409894fc20d7314cf5792533e506c1779a693ce6536547de49c4d6aa505eb82fad0a2771b974de49ab52398600b83d493759fbcc39cfd66319aa9
+AUX rc-addon-0.0.8.sh 470 SHA256 656c82b3dad0ba44ea06b60c147f7bc8ce7cbe8fada94c7e6fb16f94ba4b8795 SHA512 be34ced7d589c8c6975305e9416328b9e8d759f31c639933d8b037684d248347cb981d013c7c75c0c61970b3dd3e3c5e826b0e80153422b6783506b2d14646b2 WHIRLPOOL 7e0481bd1742166fb728deaf7ebc0396197f8f6fd909972346944969915412974b5672407da22e5ae74a256618ff3c16b9073ca10ce3bb3c528ef8f41c8900ed
+AUX vdr-weatherng-0.0.8_pre3-dxr3.diff 526 SHA256 10e5820e34058157be8b9702f6a5d01aa86051694a9f6a1f8a678bce22f41c49 SHA512 df6e1e649753049d94c4b61b98201f62a71f589157384f3eddf5188ecb8a5aedb825f29a4ee2badf3a39e1bedbf7a8eab19a3221f11d404d6492470e39b7a9bf WHIRLPOOL 3361353c4d9fbef079f19e5ee4e20fa9291a44ebc6ba8f2a2b445a4b7b7db764bbceb9c5e4d7a43d41ec4c17034fb3b7aa7dfe3257b068eec7fe3f9dbb0bb5d7
+AUX vdr-weatherng-0.0.8_pre3-gcc43.patch 438 SHA256 ca9ef5d723df1145a56bb98a2d82aef7a5d02fdab9eea07376a48a5582bd5077 SHA512 b28b8784e0bf144a337cf6fa7576eddcd7c867d8207c2dab0079fc25f43ee4d5592b8f82b667d94bfd985f7e53f8a3fd511bde383139ab1ef0c391e7aaf9b178 WHIRLPOOL 93a1dad69cba2dc6b4e8c473915ba15633fc31140bf0c2588189bd786f226a68824725192113e07cd67bc68f22d53a95fd3b34b2631c848a68188d3b3d761bf0
+AUX vdr-weatherng-0.0.8_pre3-gentoo.diff 3300 SHA256 0a5e8dae398fc6685bec2e6734feb19549e570999eaf0459d06d607f972bed46 SHA512 6f061aca114325ddcb3efcaf562381181a28ad169a16d23755b9243765e205ca8d39c990f21ccc0030d439c79d48da74722bf1988a79444ba5ad8697605de0a0 WHIRLPOOL 899cc6cb8c948a9b29fbb1bc75254ec50337d5558226fae31c5295e56be56ab6c8059aa4960509f87e92e612e6a6d9fa884fff9e3ddb3d5a6609f5ac2756fb3a
+AUX vdr-weatherng-0.0.8_pre3-i18n-fix.diff 726 SHA256 6ec4720c79c2105f088f745c4b1b8513fd37a6bb26203a48db7dd5afb58a9ac5 SHA512 7d7cf0576a5562cbc3e46ec0539ad1a4a09b87d9518065de7535c4d0561db8d4f072eb55c6d935e3db28060d6e64c30ba44c466ac191fc9da2494badb5331355 WHIRLPOOL 6de7293fef1f5c8c8a93d02bed1d0973109c925ab6f6d5db4fd96c5b45164cb6b44c9e1d6db2c9d9b8f70a5ed57080231e571cb1ab8085b2b602bbf5d9d2c70e
+AUX vdr-weatherng-0.0.8_pre3-timeout.diff 1160 SHA256 5060f4085b875215945674ab03457e3d241e13086489e7ea1bea4de1045a0639 SHA512 94448a0dd298de27092c15d25bc708f0ad17833812b47bd367069754545a52c7928080801eab2e91faa2fabdeb5c6edfbc9674874af509daae6f03badfb0afeb WHIRLPOOL f6ce39056d0189530d4ad69aa07c740b6390006e34490846fb8dc59083123bb639b07f519b691d6471391e29b5c2bfeda012afc96db1f99faf5fee15bee2e628
+DIST vdr-weatherng-0.0.8-pre3.tgz 177242 SHA256 e9edd9ae745ce45274a436f29a0f3a408cd4d218dc9d16e19e4a25e39be2bd0b SHA512 065ee8ac99ce706fe16d3a6e45ac302d6f75c2cddacf8ba0c591a2ca7720278a219735a7a14e486e5b44c113d064d9c8d348322a129fab99d373cfcef0a14172 WHIRLPOOL b80276d4e75317bfe71b2d764f27cbf46e71a8eda37246d33ea9f98773c5e9d58bb3ddcc88751945ba1af6896984353496b21aa42ec07574109907e2e111cb79
+EBUILD vdr-weatherng-0.0.8_pre3-r1.ebuild 1944 SHA256 bc297a12afe17f710adb653f6eda5b1d911a9b7edc66bb35f3d1ce7d5a886629 SHA512 60d10b5e9c8c9061d441246d190b2683369ebc17e50d634f6123658edc74b09ef5df7cb90a86b580cf63b8982a09956bd66373ab5047ad6b7c1ea3d3ab3c6186 WHIRLPOOL 2f17ae41ea1f5fb7bef9a5caaa9e64ae225f74d71936ffd2113ffaee34574c0adf4a3ea26ae891f207a9d1183a16924b883aba59bb4e555945988c48082b9b92
+MISC ChangeLog 3305 SHA256 850be8290156e649ed6852d1598caf7362cdf39bd76349c1a39dd1842b68a8d5 SHA512 dd6494f8d7dcb0f978a8b9ee5de0acf04b0d440e83fa938034abadd195d130169b4ffe643d5e2dba4fda02acfe92eb82b5ff868ad9acba8d6fe494757f384e2d WHIRLPOOL 0500b8b51be2c50dd612f16583fc1b4c10ea860fd33187357f23676cbe6079990c9c12cbe212d0acbce840b9cb8c9d1c844c6a0822127c58fa82413b336a2bf2
+MISC ChangeLog-2015 4787 SHA256 9cfd92dd4ec203e9c3d4360d04d388bcdcc51057439506b8cb6a2105182b1a8b SHA512 51bcd3602f18aa33debcbb9930bc188327f7de825ba52f7fc1be7e2bcc222af761cd4bee87e5732fa2815f1727610ab9f544798de84cd708928cf133f7b854e2 WHIRLPOOL c2a813e5127c612e583a7e94de7df9518f26e7922b8da9308798cd7d2fd575ef82d98beba89b120c16242fc91a571c9c6ca647a272c4b278550af3c80e0ad399
+MISC metadata.xml 462 SHA256 df4ccf1d234aeecd4bf30864fcc6dc8229c9b3423e98830061e17faf37995e2c SHA512 10963011b5993bb79ffce7e00737f705117755095b3c20b4d4e40e1bda264b6bfa7df1782c6fb8cf949949707f5409c1f28a30000eaa204e9153c3be01563b94 WHIRLPOOL 46f1b5dff138927b8f05425ddc74e0f8e60fdf0c8c8066543134b11baf56ca2a649f9354c8a1f981fea634b969761b57b996eb8f4dd2d9865b62523054bdf9f7
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..4f4131e0c792
--- /dev/null
+++ b/media-plugins/vdr-weatherng/files/confd-0.0.8
@@ -0,0 +1,40 @@
+# /etc/conf.d/vdr.weatherng
+
+# =================================================================================
+# 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..b1d9d972e0c7
--- /dev/null
+++ b/media-plugins/vdr-weatherng/files/rc-addon-0.0.8.sh
@@ -0,0 +1,23 @@
+#
+# 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..d9021429e638
--- /dev/null
+++ b/media-plugins/vdr-weatherng/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <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..601dcccf73f2
--- /dev/null
+++ b/media-plugins/vdr-weatherng/vdr-weatherng-0.0.8_pre3-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit vdr-plugin-2 flag-o-matic
+
+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
+
+ # wrt bug 595390
+ append-cxxflags $(test-flags-CXX -std=gnu++03) -std=gnu++03
+
+ 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
+}