diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-01-20 13:33:04 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-01-20 22:01:46 +0700 |
commit | 849417284ce1f968ef7b0a84e052dbe4612db68c (patch) | |
tree | c9cb6be2daf12cedc0625371be7711076578dfe4 | |
parent | a967d549dc69d8b8eaeb8fec9eb7ab3a43a06530 (diff) | |
download | slackbuilds-849417284ce1f968ef7b0a84e052dbe4612db68c.tar.gz |
desktop/CurseTheWeather: Removed (No longer maintained upstream).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | desktop/CurseTheWeather/CurseTheWeather-0.6-patch | 88 | ||||
-rw-r--r-- | desktop/CurseTheWeather/CurseTheWeather.SlackBuild | 78 | ||||
-rw-r--r-- | desktop/CurseTheWeather/CurseTheWeather.info | 10 | ||||
-rw-r--r-- | desktop/CurseTheWeather/README | 18 | ||||
-rw-r--r-- | desktop/CurseTheWeather/slack-desc | 19 |
5 files changed, 0 insertions, 213 deletions
diff --git a/desktop/CurseTheWeather/CurseTheWeather-0.6-patch b/desktop/CurseTheWeather/CurseTheWeather-0.6-patch deleted file mode 100644 index 71bd29087b..0000000000 --- a/desktop/CurseTheWeather/CurseTheWeather-0.6-patch +++ /dev/null @@ -1,88 +0,0 @@ -diff -Naur CurseTheWeather-0.6-orig/ctw CurseTheWeather-0.6/ctw ---- CurseTheWeather-0.6-orig/ctw 2009-10-05 10:46:02.000000000 -0400 -+++ CurseTheWeather-0.6/ctw 2014-11-22 16:29:05.803956562 -0500 -@@ -183,19 +183,19 @@ - forecastWindowsCreated = True - day = 0 - dayWindows = [] -- while day < 5: -+ while day < 10: - if day < 5: - try: -- dayWindows.append(win.derwin(int(maxy/5),maxx,int(day*(maxy/5))+1,1)) -+ dayWindows.append(win.derwin(int(maxy/5),int(maxx/2),int(day*(maxy/5))+1,1)) - except curses.error: pass - else: - try: -- dayWindows.append(win.derwin(int(maxy/5),maxx,int((day-5)*(maxy/5))+1,int(maxx/2)+1)) -+ dayWindows.append(win.derwin(int(maxy/5),int(maxx/2),int((day-5)*(maxy/5))+1,int(maxx/2)+1)) - except curses.error: pass - day += 1 - - day = 0 -- while day < 5: -+ while day < 10: - scnDay(day) - day+=1 - win.box() -diff -Naur CurseTheWeather-0.6-orig/weatherfeed.py CurseTheWeather-0.6/weatherfeed.py ---- CurseTheWeather-0.6-orig/weatherfeed.py 2009-07-14 08:17:40.000000000 -0400 -+++ CurseTheWeather-0.6/weatherfeed.py 2014-11-22 17:26:07.789830359 -0500 -@@ -48,11 +48,11 @@ - - def _getData(self): - """Connect to weather.com and get the weather as raw XML""" -- urlHandle = urllib2.urlopen("http://xoap.weather.com/weather/local/%s?cc=1&dayf=5&prod=xoap&link=xoap&unit=%s&par=1003666583&key=4128909340a9b2fc" %(self.location, self.units)) -+ urlHandle = urllib2.urlopen("http://xoap.weather.com/weather/local/%s?cc=1&dayf=10&prod=xoap&link=xoap&unit=%s&par=1003666583&key=4128909340a9b2fc" %(self.location, self.units)) - return urlHandle.read() - - def _getWeather(self): -- for node in self.dom.childNodes[3].childNodes: -+ for node in self.dom.childNodes[0].childNodes: - if node.nodeName == 'cc': - self._setCurrentConditions(node) - -@@ -62,11 +62,17 @@ - if node.nodeName == 'loc': - self._setCurrentConditions(node) - -- if self.forecast[0]["day"]["type"] == "N/A": -+ # The current day may not have a forcast other than night -+ if "day" not in self.forecast[0] or self.forecast[0]["day"] == "N/A": -+ self.forecast[0]["day"] = {} -+ self.forecast[0]["day"]["wind"] = {} - self.forecast[0]["day"]["type"] = self.currentConditions["type"] -- if self.forecast[0]["day"]["wind"]["speed"] == "N/A" and self.forecast[0]["day"]["wind"]["direction"] == "N/A": - self.forecast[0]["day"]["wind"]["speed"] = self.currentConditions["wind"]["speed"] -+ self.forecast[0]["day"]["wind"]["gusts"] = self.currentConditions["wind"]["gusts"] -+ self.forecast[0]["day"]["wind"]["degrees"] = self.currentConditions["wind"]["degrees"] - self.forecast[0]["day"]["wind"]["direction"] = self.currentConditions["wind"]["direction"] -+ self.forecast[0]["day"]["humidity"] = self.currentConditions["humidity"] -+ self.forecast[0]["day"]["pop"] = "N/A" - - def _setCurrentConditions(self, node): - for elem in node.childNodes: -@@ -183,7 +189,11 @@ - self.forecast[index]["day"] = {} - for subelem in elem.childNodes: - if subelem.nodeName == 't': -- self.forecast[index]["day"]["type"] = subelem.firstChild.data -+ # type may be blank -+ if subelem.firstChild: -+ self.forecast[index]["day"]["type"] = subelem.firstChild.data -+ else: -+ self.forecast[index]["day"]["type"] = " " - - if subelem.nodeName == 'ppcp': - self.forecast[index]["day"]["pop"] = subelem.firstChild.data -@@ -234,10 +244,6 @@ - self.forecast[index]["night"]["wind"]["direction"] = windelem.firstChild.data - - -- -- -- -- - if elem.nodeName == 'wind': - self.forecast[index]["wind"] = {} - for subelem in elem.childNodes: diff --git a/desktop/CurseTheWeather/CurseTheWeather.SlackBuild b/desktop/CurseTheWeather/CurseTheWeather.SlackBuild deleted file mode 100644 index 72e201cdd8..0000000000 --- a/desktop/CurseTheWeather/CurseTheWeather.SlackBuild +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/sh - -# Slackware build script for CurseTheWeather - -# Copyright 2007 Martin Lefebvre <dadexter@sekurity.com> -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -# Modified by the SlackBuilds.org project. - -# Build 3 contains updated patch to fix upstream errors due to day type having no data in XML -# Better error checking or exception handling should probably be implemented in the source - -PRGNAM=CurseTheWeather -VERSION=${VERSION:-0.6} -BUILD=${BUILD:-3} -TAG=${TAG:-_SBo} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -# Patch ctw to work with latest weather feed changes -# and display 10 day forecast -patch -p1 < $CWD/$PRGNAM-$VERSION-patch - -python setup.py install --prefix $PKG/usr - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a PKG-INFO README.txt $PKG/usr/doc/$PRGNAM-$VERSION -zcat GPL.gz > $PKG/usr/doc/$PRGNAM-$VERSION/GPL -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/desktop/CurseTheWeather/CurseTheWeather.info b/desktop/CurseTheWeather/CurseTheWeather.info deleted file mode 100644 index 99957fb939..0000000000 --- a/desktop/CurseTheWeather/CurseTheWeather.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="CurseTheWeather" -VERSION="0.6" -HOMEPAGE="https://github.com/tdy/ctw/" -DOWNLOAD="http://ftp.slackware.org.uk/salix/i486/14.0/source/ap/CurseTheWeather/CurseTheWeather-0.6.tar.gz" -MD5SUM="9594004e2483a2cc44fc8c420a7316e1" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Phillip Warner" -EMAIL="pc_warner@yahoo.com" diff --git a/desktop/CurseTheWeather/README b/desktop/CurseTheWeather/README deleted file mode 100644 index 7f62a8bea7..0000000000 --- a/desktop/CurseTheWeather/README +++ /dev/null @@ -1,18 +0,0 @@ -CurseTheWeather is a python application which displays the weather in a -terminal via a ncurses frontend (ctw). This frontend shows ascii-art weather -icons along with the current weather conditions and 10 day forecast. - -weatherfeed.py is the python module that grabs the weather data from -weather.com, and it can used by frontends other than ctw. - -** ctw and Transparency, Different Colors ** - -To modify transparency and color behavior in ctw simply modify -initColors() in /usr/bin/ctw. - -To remove transparency, simply delete: - curses.use_default_colors() -at line 125 (just under "curses.start_color()"). - -Modifying the lines with "curses.init_pair" will allow you to modify the text -colors used. diff --git a/desktop/CurseTheWeather/slack-desc b/desktop/CurseTheWeather/slack-desc deleted file mode 100644 index e611f1b3a7..0000000000 --- a/desktop/CurseTheWeather/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -CurseTheWeather: CurseTheWeather (ncurses Weather Application) -CurseTheWeather: -CurseTheWeather: CurseTheWeather is a python application which displays the weather -CurseTheWeather: in a terminal via a ncurses frontend (ctw). This frontend shows -CurseTheWeather: ascii-art weather icons along with the current weather conditions -CurseTheWeather: and 5 day forecast. -CurseTheWeather: -CurseTheWeather: weatherfeed.py is the python module that grabs the weather data from -CurseTheWeather: weather.com, and it can used by frontends other than ctw. -CurseTheWeather: -CurseTheWeather: Homepage: https://github.com/tdy/ctw/ |