diff options
author | Cezary M. Kruk <c.kruk@bigfoot.com> | 2010-10-17 09:27:11 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-10-17 20:16:51 -0500 |
commit | ffb689d93795f1ead3a6bee7dcd99c70fe659771 (patch) | |
tree | 96e847fb75f2321f833ab328f0c4e38ac709a57a /desktop | |
parent | 17436376c311a63205c2574e8aa7478f8a7a7810 (diff) | |
download | slackbuilds-ffb689d93795f1ead3a6bee7dcd99c70fe659771.tar.gz |
desktop/wmMoonClock: Patched to fix southern hemisphere display.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/wmMoonClock/README | 5 | ||||
-rw-r--r-- | desktop/wmMoonClock/SouthernHemisphere.patch | 10 | ||||
-rw-r--r-- | desktop/wmMoonClock/slack-desc | 4 | ||||
-rw-r--r-- | desktop/wmMoonClock/wmMoonClock.SlackBuild | 3 | ||||
-rw-r--r-- | desktop/wmMoonClock/wmMoonClock.info | 2 |
5 files changed, 18 insertions, 6 deletions
diff --git a/desktop/wmMoonClock/README b/desktop/wmMoonClock/README index 6cba56e9e7..ebc8ae2e53 100644 --- a/desktop/wmMoonClock/README +++ b/desktop/wmMoonClock/README @@ -1,4 +1,5 @@ wmMoonClock is Window Maker moon phase dockable application -wmMoonClock displays the current phase of the moon. Clicking on -the icon brings up different displays - there are five in all. +wmMoonClock displays the current phase of the moon. Clicking on the +icon brings up different displays - there are five in all. Patched +version displays correct results for both hemispheres. diff --git a/desktop/wmMoonClock/SouthernHemisphere.patch b/desktop/wmMoonClock/SouthernHemisphere.patch new file mode 100644 index 0000000000..a6d5ec58ab --- /dev/null +++ b/desktop/wmMoonClock/SouthernHemisphere.patch @@ -0,0 +1,10 @@ +--- wmMoonClock-1.27/Src/wmMoonClock.c 1999-06-07 11:27:18.000000000 -0300 ++++ wmMoonClock-1.??/Src/wmMoonClock.c 2004-12-15 18:59:50.714764064 -0200 +@@ -244,6 +244,7 @@ + nMAX = 1000; + ImageNumber = (int)(c.MoonPhase * 60.0 + 0.5); + if (ImageNumber > 59) ImageNumber = 0; ++ if (Glat < 0) ImageNumber = 59 - ImageNumber; + j = ImageNumber/10; + i = ImageNumber%10; + copyXPMArea(67+58*i, 2+58*j, 54, 54, 5, 5); diff --git a/desktop/wmMoonClock/slack-desc b/desktop/wmMoonClock/slack-desc index d5378d4c58..a76411b01b 100644 --- a/desktop/wmMoonClock/slack-desc +++ b/desktop/wmMoonClock/slack-desc @@ -9,8 +9,8 @@ wmMoonClock: wmMoonClock (Window Maker moon phase dockable application) wmMoonClock: wmMoonClock: wmMoonClock displays the current phase of the moon. Clicking on the -wmMoonClock: icon brings up different displays -- there are 5 in all. -wmMoonClock: +wmMoonClock: icon brings up different displays -- there are 5 in all. Patched +wmMoonClock: version displays correct results for both hemispheres. wmMoonClock: wmMoonClock: wmMoonClock: diff --git a/desktop/wmMoonClock/wmMoonClock.SlackBuild b/desktop/wmMoonClock/wmMoonClock.SlackBuild index 9fcbff5dbc..a1d9b95d06 100644 --- a/desktop/wmMoonClock/wmMoonClock.SlackBuild +++ b/desktop/wmMoonClock/wmMoonClock.SlackBuild @@ -7,7 +7,7 @@ PRGNAM=wmMoonClock VERSION=${VERSION:-1.27} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} # Automatically determine the architecture we're building on: @@ -46,6 +46,7 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +patch -p0 < $CWD/SouthernHemisphere.patch cd $PRGNAM-$VERSION chown -R root:root . find . \ diff --git a/desktop/wmMoonClock/wmMoonClock.info b/desktop/wmMoonClock/wmMoonClock.info index 9420c5b4f8..3b84c8038d 100644 --- a/desktop/wmMoonClock/wmMoonClock.info +++ b/desktop/wmMoonClock/wmMoonClock.info @@ -7,4 +7,4 @@ DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Cezary M. Kruk" EMAIL="c.kruk@bigfoot.com" -APPROVED="rworkman" +APPROVED="dsomero" |