[Pkg-wmaker-commits] [wmmoonclock] 04/23: Import Debian changes 1.27-14
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Mon Aug 14 22:54:10 UTC 2017
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmmoonclock.
commit 125f0a7506d127e979e6d9d4871c55f2d3ba93b2
Author: Martin A. Godisch <godisch at debian.org>
Date: Fri Feb 11 22:17:45 2005 +0100
Import Debian changes 1.27-14
wmmoonclock (1.27-14) unstable; urgency=low
* Added Czech debconf translation, closes: #294733.
Thanks to Miroslav Kure.
* Fixed POSIX compliance of debian/rules.
* Removed watch file, upstream homepage is gone.
wmmoonclock (1.27-13) unstable; urgency=low
* Added Japanese debconf translation, closes: #236820.
Thanks to Hideki Yamane.
* Removed ucf/debconf and lintian workarounds.
* Updated debian/menu, debian/rules, and standards version.
wmmoonclock (1.27-12) unstable; urgency=low
* Added Spanish debconf translation, closes: #201004.
Thanks to Carlos Alberto Martín Edo.
* Simplified ucf handling, see bug #199233, adjusted ucf dependency.
* Removed useless BUGS file.
* Converted debian/changelog to UTF-8.
* Updated standards version.
wmmoonclock (1.27-11) unstable; urgency=low
* Improved ucf transition.
wmmoonclock (1.27-10) unstable; urgency=low
* Updated deb'configuration, added ucf support.
wmmoonclock (1.27-9) unstable; urgency=low
* Updated deb'configuration, closes: #185206.
* Updated standards version.
wmmoonclock (1.27-8) unstable; urgency=low
* Added french debconf translation, closes: #189226.
Thanks to Christian Perrier.
* Updated configuration.
wmmoonclock (1.27-7) unstable; urgency=low
* Added portuguese debconf translation, closes: #185686.
Thanks to André Luís Lopes.
* Improved debconf template, closes: #185710.
wmmoonclock (1.27-6) unstable; urgency=low
* Transition to po-debconf, updated build-dependencies.
* Updated standards version.
wmmoonclock (1.27-5) unstable; urgency=low
* New maintainer upload, closes: #170232, #182936.
* Fixed lots of compiler warnings.
* Added debconf'iguration for latitude and longitude.
* Removed build-dependency on debhelper, debian/ cleanup.
---
Src/CalcEphem.c | 18 +++-----
Src/CalcEphem.h | 3 ++
Src/ChangeLog | 51 ----------------------
Src/Makefile | 9 ++--
Src/Moon.c | 19 ++++----
Src/Moon.h | 6 +++
Src/MoonRise.c | 21 ++++++---
Src/MoonRise.h | 8 ++++
Src/TODO | 11 -----
Src/wmMoonClock.c | 6 +--
debian/changelog | 80 ++++++++++++++++++++++++++++++++++
debian/changelog.upstream | 98 +++++++++++++++++++++++++++++++++++++++++
debian/config | 26 +++++++++++
debian/control | 16 ++++---
debian/copyright | 26 +++++++----
debian/dirs | 2 -
debian/menu | 4 +-
debian/po/POTFILES.in | 1 +
debian/po/cs.po | 89 ++++++++++++++++++++++++++++++++++++++
debian/po/de.po | 92 +++++++++++++++++++++++++++++++++++++++
debian/po/es.po | 92 +++++++++++++++++++++++++++++++++++++++
debian/po/fr.po | 96 +++++++++++++++++++++++++++++++++++++++++
debian/po/ja.po | 90 ++++++++++++++++++++++++++++++++++++++
debian/po/pt_BR.po | 94 ++++++++++++++++++++++++++++++++++++++++
debian/po/templates.pot | 76 ++++++++++++++++++++++++++++++++
debian/postinst | 36 ++++++++++++++++
debian/postrm | 21 +++++++++
debian/rules | 108 +++++++++++++++++++++++++---------------------
debian/templates | 26 +++++++++++
29 files changed, 1063 insertions(+), 162 deletions(-)
diff --git a/Src/CalcEphem.c b/Src/CalcEphem.c
index 5d57286..97d9ca9 100644
--- a/Src/CalcEphem.c
+++ b/Src/CalcEphem.c
@@ -1,13 +1,12 @@
+#include <string.h>
#include "CalcEphem.h"
-CalcEphem(date, UT, c)
+void CalcEphem(date, UT, c)
long int date; /* integer containing the date (e.g. 960829) */
double UT; /* Universal Time */
CTrans *c; /* structure containing all the relevent coord trans info */
{
-double vv;
-int dd, mm, ss;
int year, month, day;
double TU, TU2, TU3, T0, gmst;
@@ -16,12 +15,7 @@ int dd, mm, ss;
double days, M, E, nu, lambnew;
double r0, earth_sun_distance;
double RA, DEC, RA_Moon, DEC_Moon;
- double dt, g0_1, g1_1, h1_1, gclat, glon, psi;
- double TDT, Lmoon_0, P0, N0, Imoon, Lmoon, Mmoon_m, Nmoon, Cmoon;
- double Emoon_nu, Amoon_e, Amoon_3, Mmoon_mp, Emoon_c, amoon, emoon, AGE;
- double Amoon_4, Lmoon_p, Vmoon, Lmoon_pp, Nmoon_p, LambdaMoon, BetaMoon, R;
- Vector S, K, Y, Z, D, Dgei, Dgsm;
- int i, j;
+ double TDT, AGE, LambdaMoon, BetaMoon, R;
double jd(), hour24(), angle2pi(), angle360(), kepler(), Moon(), NewMoon();
double Ta, Tb, Tc, frac();
double SinGlat, CosGlat, SinGlon, CosGlon, Tau, lmst, x, y, z;
@@ -237,7 +231,7 @@ int year, month, day;
char dowstr[];
{
double JD, A, Afrac, jd();
- int n, iday, iA;
+ int n, iA;
JD = jd(year, month, day, 0.0);
A = (JD + 1.5)/7.0;
@@ -282,7 +276,7 @@ double jd(ny, nm, nd, UT)
int ny, nm, nd;
double UT;
{
- double A, B, C, D, JD, MJD, day;
+ double A, B, C, D, JD, day;
day = nd + UT/24.0;
@@ -372,7 +366,7 @@ double angle;
}
-Radec_to_Cart(ra, dec, r)
+void Radec_to_Cart(ra, dec, r)
double ra, dec; /* RA and DEC */
Vector *r; /* returns corresponding cartesian unit vector */
{
diff --git a/Src/CalcEphem.h b/Src/CalcEphem.h
index 4e907bb..7ed5bde 100644
--- a/Src/CalcEphem.h
+++ b/Src/CalcEphem.h
@@ -54,4 +54,7 @@ typedef struct CTrans {
int Visible; /* Wether or not moon is above horizon */
} CTrans;
+void CalcEphem(long int, double, CTrans*);
+int DayofWeek(int, int, int, char*);
+int DayofYear(int, int, int);
diff --git a/Src/ChangeLog b/Src/ChangeLog
deleted file mode 100644
index 54cbf7b..0000000
--- a/Src/ChangeLog
+++ /dev/null
@@ -1,51 +0,0 @@
-Version 1.27 - released June 7, 1999.
- fixed a minor bug in computation of azimuth (A in Horizon Coords). Thanks to
- Dan Moraru for spotting this one. (There were two SinGlat factors instead of one).
-
-Version 1.26 - released April 22, 1999 (?).
-Version 1.25 - released March 22, 1999.
- Now auto-detects 8-bit display and forces the LowColor pixmap to
- be used. The -low option still works if you need to conserve colors
- even on high-color displays.
-
- Added 3 command line options + code to change colors of the data
- entries:
-
- -bc <Color> to change background color.
- -lc <Color> to change color of labels and headers.
- -dc <Color> to change color of data values.
-
-Version 1.24 - released February 9, 1999.
- Added low color support via the -low command line option.
-
-Version 1.23 - released February 4, 1999.
- cosmetic for AfterStep users. removed spurious black line at RHS edge an mask.
-
-Version 1.22 - released January 8, 1999.
-
- + Changed PI2 to TwoPi in Moon.c -- Linux Pyth. had probs because
- PI2 was defined in <math.h>.
-
-Version 1.21 - released January 7, 1999.
-
- + minor bug fixes in Makefile and manpage.
-
-Version 1.2 - released January 3, 1999.
- Added:
-
- + Local Time/ Universal Time display.
- + Visible: Yes/No to indicate if Moon is up or not.
- + Frac (percent through orbit -- this is NOT a simple
- conversion of AGE....).
- + Horizon Coords. Altitude is measured up from horizon to
- Moon in degrees. Azimuth is in degrees from due south.
-
- Also shuffled things around a bit...
-
-Version 1.1 - released December 24, 1998.
- Fixed bug in AGE calculation. It now should be highly accurate.
- Note that AGE is not the same as Phase*29.530589 ...
- I have checked with the Astronomical Almanac and it agrees very
- well....
-
-Version 1.0 - released December 16, 1998.
diff --git a/Src/Makefile b/Src/Makefile
index f8a8241..f7f5a47 100644
--- a/Src/Makefile
+++ b/Src/Makefile
@@ -1,5 +1,5 @@
CC = gcc
-CFLAGS = -O2
+# CFLAGS = -O2
INCDIR = -I/usr/X11R6/include/X11
DESTDIR= /usr/X11R6
LIBDIR = -L/usr/X11R6/lib
@@ -22,7 +22,7 @@ all: wmMoonClock.o wmMoonClock
wmMoonClock.o: wmMoonClock_master.xpm wmMoonClock_mask.xbm CalcEphem.h
wmMoonClock: $(OBJS)
- $(CC) $(COPTS) $(SYSTEM) -lm -o wmMoonClock $^ $(INCDIR) $(LIBDIR) $(LIBS)
+ $(CC) $(CFLAGS) $(SYSTEM) -lm -o wmMoonClock $^ $(INCDIR) $(LIBDIR) $(LIBS)
clean:
for i in $(OBJS) ; do \
@@ -31,6 +31,7 @@ clean:
rm -f wmMoonClock
install:: wmMoonClock
- install -s -m 0755 wmMoonClock $(DESTDIR)/bin
- install -m 0644 wmMoonClock.1 $(DESTDIR)/man/man1
+ install -d -m 0755 $(DESTDIR)/usr/bin $(DESTDIR)/usr/share/man/man1
+ install -m 0755 wmMoonClock $(DESTDIR)/usr/bin
+ install -m 0644 wmMoonClock.1 $(DESTDIR)/usr/share/man/man1
diff --git a/Src/Moon.c b/Src/Moon.c
index 64552a9..f7e001d 100644
--- a/Src/Moon.c
+++ b/Src/Moon.c
@@ -8,6 +8,10 @@
double angle360();
+void addthe(double, double, double, double, double*, double*);
+void addsol(double, double, double, double, int, int, int, int);
+void addn(double, int, int, int, int);
+void term(int, int, int, int, double*, double*);
double TwoPi = 6.283185308;
double ARC = 206264.81;
@@ -25,8 +29,8 @@ double T2;
double S1, S2, S3, S4, S5, S6, S7;
double DL0, DL, DD, DGAM, DLS, DF;
double L0, L, LS, F, D;
-double ARG, FAC;
-int MAX, i, j;
+double ARG = 0.0, FAC = 0.0;
+int MAX = 0, i, j;
double S;
@@ -274,7 +278,7 @@ double frac(double x){
-addsol(double COEFFL, double COEFFS, double COEFFG, double COEFFP, int P, int Q, int R, int S){
+void addsol(double COEFFL, double COEFFS, double COEFFG, double COEFFP, int P, int Q, int R, int S){
double X, Y;
@@ -289,7 +293,7 @@ addsol(double COEFFL, double COEFFS, double COEFFG, double COEFFP, int P, int Q,
-term(int P, int Q, int R, int S, double *X, double *Y){
+void term(int P, int Q, int R, int S, double *X, double *Y){
double XX, YY;
int k, I[5];
@@ -307,7 +311,7 @@ term(int P, int Q, int R, int S, double *X, double *Y){
-addthe(double C1, double S1, double C2, double S2, double *C, double *S){
+void addthe(double C1, double S1, double C2, double S2, double *C, double *S){
*C = C1*C2 - S1*S2;
*S = S1*C2 + C1*S2;
@@ -316,7 +320,7 @@ addthe(double C1, double S1, double C2, double S2, double *C, double *S){
}
-addn(double COEFFN, int P, int Q, int R, int S){
+void addn(double COEFFN, int P, int Q, int R, int S){
double X, Y;
@@ -381,7 +385,7 @@ double NewMoon(double ax, double bx, double cx){
* DEC: declination (in deg; equinox of date)
*
*/
-MiniMoon(double T, double *RA, double *DEC){
+void MiniMoon(double T, double *RA, double *DEC){
double L0,L,LS,F,D,H,S,N,DL,CB,L_MOON,B_MOON,V,W,X,Y,Z,RHO;
double frac(), cosEPS, sinEPS, P2, ARC;
@@ -424,7 +428,6 @@ MiniMoon(double T, double *RA, double *DEC){
*RA = ( 48.0/P2)*atan2(Y, X+RHO);
if (*RA<0.0) *RA += 24.0;
- return(0);
}
diff --git a/Src/Moon.h b/Src/Moon.h
new file mode 100644
index 0000000..e8616dc
--- /dev/null
+++ b/Src/Moon.h
@@ -0,0 +1,6 @@
+#ifndef MOON_H
+#define MOON_H
+
+void MiniMoon(double, double*, double*);
+
+#endif
diff --git a/Src/MoonRise.c b/Src/MoonRise.c
index d079f8d..2869b2d 100644
--- a/Src/MoonRise.c
+++ b/Src/MoonRise.c
@@ -1,5 +1,7 @@
#include <stdio.h>
#include <math.h>
+#include "MoonRise.h"
+#include "Moon.h"
#define DegPerRad 57.29577951308232087680
#define RadPerDeg 0.01745329251994329576
@@ -7,7 +9,7 @@
extern double Glon, SinGlat, CosGlat, TimeZone;
-MoonRise(int year, int month, int day, double LocalHour, double *UTRise, double *UTSet){
+void MoonRise(int year, int month, int day, double LocalHour, double *UTRise, double *UTSet){
double UT, ym, y0, yp, SinH0;
double xe, ye, z1, z2, SinH(), hour24();
@@ -76,7 +78,7 @@ MoonRise(int year, int month, int day, double LocalHour, double *UTRise, double
}
-UTTohhmm(double UT, int *h, int *m){
+void UTTohhmm(double UT, int *h, int *m){
if (UT < 0.0) {
@@ -85,6 +87,14 @@ UTTohhmm(double UT, int *h, int *m){
} else {
*h = (int)UT;
*m = (int)((UT-(double)(*h))*60.0+0.5);
+ if (*m == 60) {
+ /*
+ * If it was 23:60 this should become 24:00
+ * I prefer this designation to 00:00. So dont reset h to 0 when it goes above 24.
+ */
+ *h += 1;
+ *m = 0;
+ }
}
}
@@ -94,7 +104,7 @@ UTTohhmm(double UT, int *h, int *m){
-Interp(double ym, double y0, double yp, double *xe, double *ye, double *z1, double *z2, int *nz){
+void Interp(double ym, double y0, double yp, double *xe, double *ye, double *z1, double *z2, int *nz){
double a, b, c, d, dx;
@@ -115,7 +125,6 @@ Interp(double ym, double y0, double yp, double *xe, double *ye, double *z1, doub
if (*z1 < -1.0) *z1 = *z2;
}
- return(0);
}
@@ -125,8 +134,8 @@ Interp(double ym, double y0, double yp, double *xe, double *ye, double *z1, doub
double SinH(int year, int month, int day, double UT){
- double TU, TU2, TU3, LambdaMoon, BetaMoon, R, AGE, frac(), jd();
- double RA_Moon, DEC_Moon, T0, gmst, lmst, Tau, epsilon, Moon();
+ double TU, frac(), jd();
+ double RA_Moon, DEC_Moon, gmst, lmst, Tau, Moon();
double angle2pi();
TU = (jd(year, month, day, UT) - 2451545.0)/36525.0;
diff --git a/Src/MoonRise.h b/Src/MoonRise.h
new file mode 100644
index 0000000..d263d2e
--- /dev/null
+++ b/Src/MoonRise.h
@@ -0,0 +1,8 @@
+#ifndef MOONRISE_H
+#define MOONRISE_H
+
+void MoonRise(int, int, int, double, double*, double*);
+void UTTohhmm(double, int*, int*);
+void Interp(double, double, double, double*, double*, double*, double*, int*);
+
+#endif
diff --git a/Src/TODO b/Src/TODO
deleted file mode 100644
index c07e19b..0000000
--- a/Src/TODO
+++ /dev/null
@@ -1,11 +0,0 @@
-Things TODO:
- - clean up code!
- - more detailed documentation.
- - reduce size of pixmap! Dont need it in one pixmap.
- Aslo, does the hi-color pixmap really need all those colors?
- - add rotation of moon so user sees it as they would in reality?
- - eclipses. The calcs are quite acurate so this should be easily doable.
- (Note the Sun position calcs in CalcEphem are low precision -- high is not
- as costly as the Moon calcs.) Sun posiiton is calculated but not used yet...
- - Next new moons, next full moons, next quarters, etc...
- - Moon names. I.e. Harvest, Blue, etc...
diff --git a/Src/wmMoonClock.c b/Src/wmMoonClock.c
index 7fe749e..2727933 100644
--- a/Src/wmMoonClock.c
+++ b/Src/wmMoonClock.c
@@ -112,6 +112,7 @@
#include <X11/X.h>
#include <X11/xpm.h>
#include "CalcEphem.h"
+#include "MoonRise.h"
#include "xutils.h"
#include "wmMoonClock_master.xpm"
#include "wmMoonClock_masterLow.xpm"
@@ -159,13 +160,10 @@ int main(int argc, char *argv[]) {
struct tm *GMTTime, *LocalTime;
XEvent event;
- int i, n, k, j, ImageNumber;
- int Year, Month, DayOfWeek, DayOfMonth;
- int Hours, Mins, Secs, OldSecs, digit, xoff, xsize;
+ int i, n, j, ImageNumber, Year, Month, DayOfMonth, digit;
long CurrentLocalTime, CurrentGMTTime, date;
double UT, val, RA, DEC, UTRise, UTSet, LocalHour, hour24();
int D, H, M, S, sgn, A, B, q;
- char str[10];
CTrans c;
diff --git a/debian/changelog b/debian/changelog
index 6b199f6..efc8696 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,83 @@
+wmmoonclock (1.27-14) unstable; urgency=low
+
+ * Added Czech debconf translation, closes: #294733.
+ Thanks to Miroslav Kure.
+ * Fixed POSIX compliance of debian/rules.
+ * Removed watch file, upstream homepage is gone.
+
+ -- Martin A. Godisch <godisch at debian.org> Fri, 11 Feb 2005 22:17:45 +0100
+
+wmmoonclock (1.27-13) unstable; urgency=low
+
+ * Added Japanese debconf translation, closes: #236820.
+ Thanks to Hideki Yamane.
+ * Removed ucf/debconf and lintian workarounds.
+ * Updated debian/menu, debian/rules, and standards version.
+
+ -- Martin A. Godisch <godisch at debian.org> Mon, 08 Mar 2004 16:41:48 +0100
+
+wmmoonclock (1.27-12) unstable; urgency=low
+
+ * Added Spanish debconf translation, closes: #201004.
+ Thanks to Carlos Alberto Martín Edo.
+ * Simplified ucf handling, see bug #199233, adjusted ucf dependency.
+ * Removed useless BUGS file.
+ * Converted debian/changelog to UTF-8.
+ * Updated standards version.
+
+ -- Martin A. Godisch <godisch at debian.org> Sun, 27 Jul 2003 15:57:02 +0200
+
+wmmoonclock (1.27-11) unstable; urgency=low
+
+ * Improved ucf transition.
+
+ -- Martin A. Godisch <godisch at debian.org> Sun, 29 Jun 2003 10:24:05 +0200
+
+wmmoonclock (1.27-10) unstable; urgency=low
+
+ * Updated deb'configuration, added ucf support.
+
+ -- Martin A. Godisch <godisch at debian.org> Fri, 27 Jun 2003 07:12:15 +0200
+
+wmmoonclock (1.27-9) unstable; urgency=low
+
+ * Updated deb'configuration, closes: #185206.
+ * Updated standards version.
+
+ -- Martin A. Godisch <godisch at debian.org> Fri, 30 May 2003 18:39:00 +0200
+
+wmmoonclock (1.27-8) unstable; urgency=low
+
+ * Added french debconf translation, closes: #189226.
+ Thanks to Christian Perrier.
+ * Updated configuration.
+
+ -- Martin A. Godisch <godisch at debian.org> Thu, 03 Apr 2003 16:26:10 +0200
+
+wmmoonclock (1.27-7) unstable; urgency=low
+
+ * Added portuguese debconf translation, closes: #185686.
+ Thanks to André Luís Lopes.
+ * Improved debconf template, closes: #185710.
+
+ -- Martin A. Godisch <godisch at debian.org> Sat, 22 Mar 2003 07:33:12 +0100
+
+wmmoonclock (1.27-6) unstable; urgency=low
+
+ * Transition to po-debconf, updated build-dependencies.
+ * Updated standards version.
+
+ -- Martin A. Godisch <godisch at debian.org> Fri, 14 Mar 2003 08:09:40 +0100
+
+wmmoonclock (1.27-5) unstable; urgency=low
+
+ * New maintainer upload, closes: #170232, #182936.
+ * Fixed lots of compiler warnings.
+ * Added debconf'iguration for latitude and longitude.
+ * Removed build-dependency on debhelper, debian/ cleanup.
+
+ -- Martin A. Godisch <godisch at debian.org> Sat, 01 Mar 2003 10:39:32 +0100
+
wmmoonclock (1.27-4) unstable; urgency=low
* Recompile against newer libxpm (closes: #67953)
diff --git a/debian/changelog.upstream b/debian/changelog.upstream
new file mode 100644
index 0000000..68640c8
--- /dev/null
+++ b/debian/changelog.upstream
@@ -0,0 +1,98 @@
+/*
+ *
+ * wmMoonClock-1.26 (C) 1998, 1999 Mike Henderson (mghenderson at lanl.gov)
+ *
+ * - Shows Moon Phase....
+ *
+ *
+ *
+ *
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program (see the file COPYING); if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA
+ *
+ * Things TODO:
+ * - clean up code!
+ * - more detailed documentation.
+ * - reduce size of pixmap! Dont need it in one pixmap.
+ * Aslo, does the hi-color pixmap really need all those colors?
+ * - add rotation of moon so user sees it as they would in reality?
+ * - eclipses. The calcs are quite acurate so this should be easily doable.
+ * (Note the Sun position calcs in CalcEphem are low precision -- high is not
+ * as costly as the Moon calcs.) Sun posiiton is calculated but not used yet...
+ * - Next new moons, next full moons, next quarters, etc...
+ * - Moon names. I.e. Harvest, Blue, etc...
+ *
+ *
+ *
+ * Changes:
+ * Version 1.27 - released June 7, 1999.
+ * fixed a minor bug in computation of azimuth (A in Horizon Coords). Thanks to
+ * Dan Moraru for spotting this one. (There were two SinGlat factors instead of one).
+ *
+ * Version 1.26 - released April 22, 1999 (?).
+ * Version 1.25 - released March 22, 1999.
+ * Now auto-detects 8-bit display and forces the LowColor pixmap to
+ * be used. The -low option still works if you need to conserve colors
+ * even on high-color displays.
+ *
+ * Added 3 command line options + code to change colors of the data
+ * entries:
+ *
+ * -bc <Color> to change background color.
+ * -lc <Color> to change color of labels and headers.
+ * -dc <Color> to change color of data values.
+ *
+ * Version 1.24 - released February 9, 1999.
+ * Added low color support via the -low command line option.
+ *
+ * Version 1.23 - released February 4, 1999.
+ * cosmetic for AfterStep users. removed spurious black line at RHS edge an mask.
+ *
+ * Version 1.22 - released January 8, 1999.
+ *
+ * + Changed PI2 to TwoPi in Moon.c -- Linux Pyth. had probs because
+ * PI2 was defined in <math.h>.
+ *
+ * Version 1.21 - released January 7, 1999.
+ *
+ * + minor bug fixes in Makefile and manpage.
+ *
+ * Version 1.2 - released January 3, 1999.
+ * Added:
+ *
+ * + Local Time/ Universal Time display.
+ * + Visible: Yes/No to indicate if Moon is up or not.
+ * + Frac (percent through orbit -- this is NOT a simple
+ * conversion of AGE....).
+ * + Horizon Coords. Altitude is measured up from horizon to
+ * Moon in degrees. Azimuth is in degrees from due south.
+ *
+ * Also shuffled things around a bit...
+ *
+ *
+ *
+ * Version 1.1 - released December 24, 1998.
+ * Fixed bug in AGE calculation. It now should be highly accurate.
+ * Note that AGE is not the same as Phase*29.530589 ...
+ * I have checked with the Astronomical Almanac and it agrees very
+ * well....
+ *
+ *
+ * Version 1.0 - released December 16, 1998.
+ *
+ *
+ *
+ */
diff --git a/debian/config b/debian/config
new file mode 100644
index 0000000..53e531e
--- /dev/null
+++ b/debian/config
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+set -e
+
+[ -x /usr/bin/ucf ] || exit 0
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+db_get wmmoonclock/latitude
+if [ -z "$RET" ] && db_get wmsun/latitude; then
+ db_set wmmoonclock/latitude "$RET"
+fi
+db_get wmmoonclock/longitude
+if [ -z "$RET" ] && db_get wmsun/longitude; then
+ db_set wmmoonclock/longitude "$RET"
+fi
+
+db_beginblock
+db_input medium wmmoonclock/latitude || true
+db_input medium wmmoonclock/longitude || true
+db_endblock
+db_go || true
+
+db_stop
+exit 0
diff --git a/debian/control b/debian/control
index 44a8699..b856e90 100644
--- a/debian/control
+++ b/debian/control
@@ -1,13 +1,19 @@
Source: wmmoonclock
Section: x11
Priority: optional
-Maintainer: Adam Klein <aklein at debian.org>
-Standards-Version: 3.0.1
+Maintainer: Martin A. Godisch <godisch at debian.org>
+Build-Depends: xlibs-dev, po-debconf
+Standards-Version: 3.6.1
Package: wmmoonclock
Architecture: any
Depends: ${shlibs:Depends}
-Description: Displays the phase of the moon
+Recommends: debconf (>= 0.5) | debconf-2.0, ucf (>= 0.30)
+Conflicts: ucf (<< 0.30)
+Suggests: wmsun, wmaker | afterstep
+Description: WindowMaker moon phase dockapp
wmMoonClock displays a small pixmap of the current phase of the moon.
- It is designed for use with the Window Maker dock, but will of course
- work elsewhere.
+ You have to enter your Latitude and Longitude for it to work correctly.
+ wmMoonClock is designed to work with the WindowMaker dock, but will
+ work with other window managers as well. wmMoonClock's upstream homepage
+ can be found at http://nis-www.lanl.gov/~mgh/WindowMaker/DockApps.shtml.
diff --git a/debian/copyright b/debian/copyright
index 2a2a8cb..2a3651d 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,12 +1,22 @@
-This package was debianized by Adam Klein aklein at debian.org on
-Thu, 24 Dec 1998 23:27:25 -0800.
+This package was debianized by Adam Klein <aklein at debian.org> on
+Thu, 24 Dec 1998. It was downloaded from
+http://nis-www.lanl.gov/~mgh/WindowMaker/DockApps.shtml.
-It was downloaded from
-http://nis-www.lanl.gov/~mgh/WindowMaker/wmMoonClock-N.NN.tar.gz
+Copyright (c) Michael G. Henderson <mghenderson at lanl.gov>
-Upstream Author: Michael G. Henderson <mghenderson at lanl.gov>
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2 of the License, or (at your
+ option) any later version.
-Copyright:
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
-This program is distributed under the GNU General Public License. On Debian
-systems, this license can be found in the file /usr/doc/copyright/GPL.
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
+On Debian GNU/Linux systems, the complete text of the GNU General Public
+License can be found in /usr/share/common-licenses/GPL.
diff --git a/debian/dirs b/debian/dirs
deleted file mode 100644
index 30dbcc2..0000000
--- a/debian/dirs
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/X11R6/bin
-usr/X11R6/man/man1
diff --git a/debian/menu b/debian/menu
index 70b1574..0c74b7d 100644
--- a/debian/menu
+++ b/debian/menu
@@ -1,2 +1,2 @@
-?package(wmmoonclock):needs=X11 section=Apps/Tools\
- title="wmMoonClock" command="/usr/X11R6/bin/wmMoonClock"
+?package(wmmoonclock):needs="X11" section="Apps/Tools" \
+ title="wmMoonClock" command="/usr/bin/wmMoonClock"
diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in
new file mode 100644
index 0000000..cef83a3
--- /dev/null
+++ b/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff --git a/debian/po/cs.po b/debian/po/cs.po
new file mode 100644
index 0000000..e1be287
--- /dev/null
+++ b/debian/po/cs.po
@@ -0,0 +1,89 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: wmmoonclock\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-08 16:29+0100\n"
+"PO-Revision-Date: 2005-02-11 12:39+0100\n"
+"Last-Translator: Miroslav Kure <kurem at debian.cz>\n"
+"Language-Team: Czech <debian-l10n-czech at debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-2\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid "Please enter the latitude of the observer."
+msgstr "Zadejte zem�pisnou ���ku pozorovatele."
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid ""
+"You have to enter your latitude for wmMoonClock to work correctly. You may "
+"find it out at http://www.calle.com/world/, positive is northern hemisphere, "
+"negative is southern hemisphere. If you don't know your latitude at this "
+"moment, leave the input field blank and run `dpkg-reconfigure wmmoonclock' "
+"later."
+msgstr ""
+"Aby wmMoonClock pracoval spr�vn�, mus�te zadat svou zem�pisnou ���ku. "
+"Zjistit ji m��ete t�eba na http://www.calle.com/world/ (severn� polokoule "
+"m� ��sla kladn�, ji�n� z�porn�). Pokud nyn� svou zem�pisnou ���ku nezn�te, "
+"nezad�vejte nic a pozd�ji spus�te `dpkg-reconfigure wmmoonclock'."
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid ""
+"Note that this configuration applies only to the X menu system. If you call "
+"wmMoonClock from a terminal prompt you can supply the `-lat' option."
+msgstr ""
+"Toto nastaven� se t�k� pouze spu�t�n� z menu. Zavol�te-li wmMoonClock z "
+"termin�lu, m��ete zadat parametr `-lat'."
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid "Please enter the longitude of the observer."
+msgstr "Zadejte zem�pisnou d�lku pozorovatele."
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid ""
+"You have to enter your longitude for wmMoonClock to work correctly. You may "
+"find it out at http://www.calle.com/world/. Greenwich is 0.0, and longitude "
+"increases positively toward the west. Alternatively, negative numbers can "
+"also be used to specify longitudes to the east of Greenwich. If you don't "
+"know your longitude at this moment, leave the input field blank and run "
+"`dpkg-reconfigure wmmoonclock' later."
+msgstr ""
+"Aby wmMoonClock pracoval spr�vn�, mus�te zadat svou zem�pisnou d�lku. "
+"Zjistit ji m��ete t�eba na http://www.calle.com/world/. Greenwich m� hodnotu "
+"0.0, sm�rem na z�pad se d�lka zv�t�uje. Voliteln� m��ete zadat i z�pornou "
+"hodnotu, kter� zna�� d�lky na v�chod od Greenwiche. Pokud nyn� svou "
+"zem�pisnou d�lku nezn�te, nezad�vejte nic a pozd�ji spus�te "
+"`dpkg-reconfigure wmmoonclock'."
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid ""
+"Note that this configuration applies only to the X menu system. If you call "
+"wmMoonClock from a terminal prompt you can supply the `-lon' option."
+msgstr ""
+"Toto nastaven� se t�k� pouze spu�t�n� z menu. Zavol�te-li wmMoonClock z "
+"termin�lu, m��ete zadat parametr `-lon'."
diff --git a/debian/po/de.po b/debian/po/de.po
new file mode 100644
index 0000000..5072b85
--- /dev/null
+++ b/debian/po/de.po
@@ -0,0 +1,92 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: wmmoonclock 1.27-6\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-08 16:29+0100\n"
+"PO-Revision-Date: 2003-03-21 10:30+0100\n"
+"Last-Translator: Martin A. Godisch <godisch at debian.org>\n"
+"Language-Team: Martin A. Godisch <godisch at debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid "Please enter the latitude of the observer."
+msgstr "Bitte geben Sie Ihren Breitengrad ein."
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid ""
+"You have to enter your latitude for wmMoonClock to work correctly. You may "
+"find it out at http://www.calle.com/world/, positive is northern hemisphere, "
+"negative is southern hemisphere. If you don't know your latitude at this "
+"moment, leave the input field blank and run `dpkg-reconfigure wmmoonclock' "
+"later."
+msgstr ""
+"Zur korrekten Funktion ben�tigt wmMoonClock Ihren Breitengrad. Dieser l��t "
+"sich unter http://www.calle.com/world/ herausfinden, positive Werte "
+"kennzeichnen die n�rdliche Halbkugel, negative die s�dliche. Falls Sie Ihren "
+"Breitengrad im Moment nicht kennen, lassen Sie dieses Eingabefeld leer und "
+"rufen Sie sp�ter \"dpkg-reconfigure wmmoonclock\" auf."
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid ""
+"Note that this configuration applies only to the X menu system. If you call "
+"wmMoonClock from a terminal prompt you can supply the `-lat' option."
+msgstr ""
+"Beachten Sie, da� sich diese Konfiguration nur auf das X-Men�system bezieht. "
+"Wenn Sie wmMoonClock von der Kommandozeile aus aufrufen, sollten Sie die "
+"Option \"-lat\" angeben."
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid "Please enter the longitude of the observer."
+msgstr "Bitte geben Sie Ihren L�ngengrad ein."
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid ""
+"You have to enter your longitude for wmMoonClock to work correctly. You may "
+"find it out at http://www.calle.com/world/. Greenwich is 0.0, and longitude "
+"increases positively toward the west. Alternatively, negative numbers can "
+"also be used to specify longitudes to the east of Greenwich. If you don't "
+"know your longitude at this moment, leave the input field blank and run "
+"`dpkg-reconfigure wmmoonclock' later."
+msgstr ""
+"Zur korrekten Funktion ben�tigt wmMoonClock Ihren L�ngengrad. Dieser l��t "
+"sich unter http://www.calle.com/world/ herausfinden. 0.0 steht f�r "
+"Greenwich, die L�nge wird positiv nach Westen gez�hlt. Alternativ k�nnen "
+"auch negative Werte f�r L�ngengrade �stlich von Greenwich angegeben werden. "
+"Falls Sie Ihren L�ngengrad im Moment nicht kennen, lassen Sie dieses "
+"Eingabefeld leer und rufen Sie sp�ter \"dpkg-reconfigure wmmoonclock\" auf."
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid ""
+"Note that this configuration applies only to the X menu system. If you call "
+"wmMoonClock from a terminal prompt you can supply the `-lon' option."
+msgstr ""
+"Beachten Sie, da� sich diese Konfiguration nur auf das X-Men�system bezieht. "
+"Wenn Sie wmMoonClock von der Kommandozeile aus aufrufen, sollten Sie die "
+"Option \"-lon\" angeben."
diff --git a/debian/po/es.po b/debian/po/es.po
new file mode 100644
index 0000000..1c5ca90
--- /dev/null
+++ b/debian/po/es.po
@@ -0,0 +1,92 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+# Carlos Alberto Mart�n Edo <carlos at dat.etsit.upm.es>, 2003
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: wmmoonclock 1.27-11\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-08 16:29+0100\n"
+"PO-Revision-Date: 2003-07-12 13:22+0200\n"
+"Last-Translator: Carlos Alberto Mart�n Edo <carlos at dat.etsit.upm.es>\n"
+"Language-Team: Debian L10n Spanish <debian-l10n-spanish at lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid "Please enter the latitude of the observer."
+msgstr "Por favor, introduzca la latitud del observador."
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid ""
+"You have to enter your latitude for wmMoonClock to work correctly. You may "
+"find it out at http://www.calle.com/world/, positive is northern hemisphere, "
+"negative is southern hemisphere. If you don't know your latitude at this "
+"moment, leave the input field blank and run `dpkg-reconfigure wmmoonclock' "
+"later."
+msgstr ""
+"Debe introducir su latitud para que wmMoonClock funcione correctamente. "
+"Puede encontrar ese dato en http://www.calle.com/world/. Una latitud "
+"positiva indica hemisferio norte y negativa hemisferio sur. Si en estos "
+"momentos desconoce su latitud, deje vac�o el campo y ejecute `dpkg-"
+"reconfigure wmmoonclock' m�s tarde."
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid ""
+"Note that this configuration applies only to the X menu system. If you call "
+"wmMoonClock from a terminal prompt you can supply the `-lat' option."
+msgstr ""
+"N�tese que esta configuraci�n se aplica �nicamente al sistema de men�s de X. "
+"Si ejecuta wmMoonClock desde un terminal puede utilizar las opciones `-lat'."
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid "Please enter the longitude of the observer."
+msgstr "Por favor, introduzca la longitud del observador."
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid ""
+"You have to enter your longitude for wmMoonClock to work correctly. You may "
+"find it out at http://www.calle.com/world/. Greenwich is 0.0, and longitude "
+"increases positively toward the west. Alternatively, negative numbers can "
+"also be used to specify longitudes to the east of Greenwich. If you don't "
+"know your longitude at this moment, leave the input field blank and run "
+"`dpkg-reconfigure wmmoonclock' later."
+msgstr ""
+"Debe introducir su longitud para que wmMoonClock funcione correctamente. "
+"Puede encontrar ese dato en http://www.calle.com/world/. La longitud de "
+"Greenwich es 0 y va aumentando hacia el oeste. Por otra parte, se pueden "
+"utilizar n�meros negativos para especificar longitudes este respecto a "
+"Greenwich. Si ignora en estos momentos su longitud, deje vac�o el campo y "
+"ejecute `dpkg-reconfigure wmmoonclock' m�s tarde."
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid ""
+"Note that this configuration applies only to the X menu system. If you call "
+"wmMoonClock from a terminal prompt you can supply the `-lon' option."
+msgstr ""
+"N�tese que esta configuraci�n se aplica �nicamente al sistema de men�s de X. "
+"Si ejecuta wmMoonClock desde un terminal puede utilizar las opciones `-lon'."
diff --git a/debian/po/fr.po b/debian/po/fr.po
new file mode 100644
index 0000000..0762b01
--- /dev/null
+++ b/debian/po/fr.po
@@ -0,0 +1,96 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: wmmoonclock 1.27-7\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-08 16:29+0100\n"
+"PO-Revision-Date: 2003-04-04 08:07-0100\n"
+"Last-Translator: Christian Perrier <bubulle at debian.org>\n"
+"Language-Team: Debian french translation team <debian-l10n-french at lists."
+"debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=iso-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid "Please enter the latitude of the observer."
+msgstr "Veuillez entrer la latitude de l'observateur."
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid ""
+"You have to enter your latitude for wmMoonClock to work correctly. You may "
+"find it out at http://www.calle.com/world/, positive is northern hemisphere, "
+"negative is southern hemisphere. If you don't know your latitude at this "
+"moment, leave the input field blank and run `dpkg-reconfigure wmmoonclock' "
+"later."
+msgstr ""
+"Vous devez indiquer la latitude du lieu o� vous vous situez pour que "
+"wmMoonClock fonctionne correctement. Vous pouvez la trouver sur http://www."
+"calle.com/world/, les valeurs �tant positives pour l'h�misph�re nord et "
+"n�gatives pour l'h�misph�re sud. Si vous ne connaissez pas votre latitude "
+"maintenant, laissez cette entr�e vide et lancez ��dpkg-reconfigure "
+"wmmoonclock�� plus tard."
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid ""
+"Note that this configuration applies only to the X menu system. If you call "
+"wmMoonClock from a terminal prompt you can supply the `-lat' option."
+msgstr ""
+"Veuillez noter que cette option de configuration ne sera utilis�e que par le "
+"syst�me de menus de X Window. Si vous d�marrez wmMoonClock depuis la ligne "
+"de commande en mode terminal, vous pouvez utiliser l'option ��-lat��."
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid "Please enter the longitude of the observer."
+msgstr "Veuillez entrer la longitude de l'observateur."
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid ""
+"You have to enter your longitude for wmMoonClock to work correctly. You may "
+"find it out at http://www.calle.com/world/. Greenwich is 0.0, and longitude "
+"increases positively toward the west. Alternatively, negative numbers can "
+"also be used to specify longitudes to the east of Greenwich. If you don't "
+"know your longitude at this moment, leave the input field blank and run "
+"`dpkg-reconfigure wmmoonclock' later."
+msgstr ""
+"Vous devez indiquer la longitude du lieu o� vous vous situez pour que "
+"wmMoonClock fonctionne correctement. Vous pouvez la trouver sur http://www."
+"calle.com/world/. Les lieux situ�s sur le m�ridien de Greenwich ont une "
+"longitude �gale � 0.0. Les valeurs augmentent en allant vers l'ouest. � "
+"l'oppos�, des nombres n�gatifs sont utilis�s pour les lieux situ�s � l'est "
+"du m�ridien de Greenwich. Si vous ne connaissez pas votre longitude "
+"maintenant, laissez cette entr�e vide et lancez ��dpkg-reconfigure "
+"wmmoonclock�� plus tard."
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid ""
+"Note that this configuration applies only to the X menu system. If you call "
+"wmMoonClock from a terminal prompt you can supply the `-lon' option."
+msgstr ""
+"Veuillez noter que cette option de configuration ne sera utilis�e que par le "
+"syst�me de menus de X Window. Si vous d�marrez wmMoonClock depuis la ligne "
+"de commande en mode terminal, vous pouvez utiliser l'option ��-lon��."
diff --git a/debian/po/ja.po b/debian/po/ja.po
new file mode 100644
index 0000000..0a031f3
--- /dev/null
+++ b/debian/po/ja.po
@@ -0,0 +1,90 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: wmmoonclock 1.27-12\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-08 16:29+0100\n"
+"PO-Revision-Date: 2004-02-29 16:04+0900\n"
+"Last-Translator: Hideki Yamane <henrich at samba.gr.jp>\n"
+"Language-Team: Japanese <debian-japanese at lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=EUC-JP\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid "Please enter the latitude of the observer."
+msgstr "���ѼԤΰ��٤����Ϥ��Ƥ���������"
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid ""
+"You have to enter your latitude for wmMoonClock to work correctly. You may "
+"find it out at http://www.calle.com/world/, positive is northern hemisphere, "
+"negative is southern hemisphere. If you don't know your latitude at this "
+"moment, leave the input field blank and run `dpkg-reconfigure wmmoonclock' "
+"later."
+msgstr ""
+"wmMoonClock ��������ư���٤ˤ��ʤ��ε���ΰ��٤����Ϥ���ɬ�פ������"
+"��������� http://www.calle.com/world/ ��Ĵ�٤��ޤ�������Ⱦ��Ǥ����ο���"
+"Ⱦ��Ǥ���ο�Ǥ����������˰��٤��狼��ʤ���硢����������Τޤޤˤ��Ƹ�"
+"�ۤ� `dpkg-reconfigure wmmoonclock' �ȼ¹Ԥ��Ƥ���������"
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid ""
+"Note that this configuration applies only to the X menu system. If you call "
+"wmMoonClock from a terminal prompt you can supply the `-lat' option."
+msgstr ""
+"��������� X ��˥塼�����ƥ�ˤΤ�Ŭ�Ѥ���뤳�Ȥ���դ��Ƥ��������������ߥ�"
+"�뤫�� wmSun ��ư������� `-lat' ���ץ������դ����ͤ����Ǥ��ޤ���"
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid "Please enter the longitude of the observer."
+msgstr "���ѼԤη��٤����Ϥ��Ƥ���������"
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid ""
+"You have to enter your longitude for wmMoonClock to work correctly. You may "
+"find it out at http://www.calle.com/world/. Greenwich is 0.0, and longitude "
+"increases positively toward the west. Alternatively, negative numbers can "
+"also be used to specify longitudes to the east of Greenwich. If you don't "
+"know your longitude at this moment, leave the input field blank and run "
+"`dpkg-reconfigure wmmoonclock' later."
+msgstr ""
+"wmMoonClock ��������ư���٤ˤ��ʤ��ε���η��٤����Ϥ���ɬ�פ������"
+"��������� http://www.calle.com/world/ ��Ĵ�٤��ޤ�������˥å��� 0.0 �ǡ�"
+"���˹Ԥ��˽��äƷ��٤������Ƥ����ޤ���ȿ�Фˡ�����˥å�����η��٤���ꤹ��"
+"�٤ˤ���ο����ѤǤ��ޤ����������˷��٤��狼��ʤ���硢����������Τޤ�"
+"�ˤ��Ƹ�ۤ� `dpkg-reconfigure wmmoonclock' �ȼ¹Ԥ��Ƥ���������"
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid ""
+"Note that this configuration applies only to the X menu system. If you call "
+"wmMoonClock from a terminal prompt you can supply the `-lon' option."
+msgstr ""
+"��������� X ��˥塼�����ƥ�ˤΤ�Ŭ�Ѥ���뤳�Ȥ���դ��Ƥ��������������ߥ�"
+"�뤫�� wmMoonClock ��ư������� `-lon' ���ץ������դ����ͤ����Ǥ���"
+"����"
diff --git a/debian/po/pt_BR.po b/debian/po/pt_BR.po
new file mode 100644
index 0000000..505884f
--- /dev/null
+++ b/debian/po/pt_BR.po
@@ -0,0 +1,94 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: wmmoonclock-1.27-6\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-08 16:29+0100\n"
+"PO-Revision-Date: 2003-03-22 07:15+0100\n"
+"Last-Translator: Andr� Lu�s Lopes <andrelop at ig.com.br>\n"
+"Language-Team: Debian-BR Project <debian-l10n-portuguese at lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-1\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid "Please enter the latitude of the observer."
+msgstr "Por favor informe a latitude do observador."
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid ""
+"You have to enter your latitude for wmMoonClock to work correctly. You may "
+"find it out at http://www.calle.com/world/, positive is northern hemisphere, "
+"negative is southern hemisphere. If you don't know your latitude at this "
+"moment, leave the input field blank and run `dpkg-reconfigure wmmoonclock' "
+"later."
+msgstr ""
+"Voc� precisa informar sua latitude para que o wmMoonClock funcione "
+"corretamente. � poss�vel encontrar sua latitude correta em http://www.calle."
+"com/world/, valores positivos s�o do hemisf�rio norte, negativos s�o do "
+"hemisf�rio sul. Caso voc� n�o saiba sua latitude agora, deixe o campo em "
+"branco e execute o comando `dpkg-reconfigure wmsum' posteriormente para "
+"definir esta op��o."
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid ""
+"Note that this configuration applies only to the X menu system. If you call "
+"wmMoonClock from a terminal prompt you can supply the `-lat' option."
+msgstr ""
+"Note que esta configura��o se aplica somente ao sistema de menus do X. Caso "
+"voc� execute o wmMoonClock a partir de um terminal voc� ainda precisar� "
+"fornecer a op��o `-lat'."
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid "Please enter the longitude of the observer."
+msgstr "Por favor informe a latitude do observador."
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid ""
+"You have to enter your longitude for wmMoonClock to work correctly. You may "
+"find it out at http://www.calle.com/world/. Greenwich is 0.0, and longitude "
+"increases positively toward the west. Alternatively, negative numbers can "
+"also be used to specify longitudes to the east of Greenwich. If you don't "
+"know your longitude at this moment, leave the input field blank and run "
+"`dpkg-reconfigure wmmoonclock' later."
+msgstr ""
+"Voc� precisa informar sua longitude para que o wnMoonClock funcione "
+"corretamente. � poss�vel encontrar sua longitude em http://www.calle.com/"
+"world/. Greenwich � o meridiano 0.0 e a longitude aumenta positivamente em "
+"dire��o ao ocidente. Alternativamente, n�meros negativos podem tamb�m ser "
+"usados para especificar longitudes para o leste de Greenwich. Caso voc� n�o "
+"saiba sua longitude agora, deixe o campo em branco e execute o comando `dpkg-"
+"reconfigure wmsun' posteriormente para definir esta op��o."
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid ""
+"Note that this configuration applies only to the X menu system. If you call "
+"wmMoonClock from a terminal prompt you can supply the `-lon' option."
+msgstr ""
+"Note que esta configura��o se aplica somente ao sistema de menus do X. Caso "
+"voc� execute o wmMoonClock a partir de um terminal voc� ainda precisar� "
+"fornecer a op��o `-lon'."
diff --git a/debian/po/templates.pot b/debian/po/templates.pot
new file mode 100644
index 0000000..2020a0a
--- /dev/null
+++ b/debian/po/templates.pot
@@ -0,0 +1,76 @@
+#
+# Translators, if you are not familiar with the PO format, gettext
+# documentation is worth reading, especially sections dedicated to
+# this format, e.g. by running:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Some information specific to po-debconf are available at
+# /usr/share/doc/po-debconf/README-trans
+# or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+# Developers do not need to manually edit POT or PO files.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2004-03-08 16:29+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid "Please enter the latitude of the observer."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid ""
+"You have to enter your latitude for wmMoonClock to work correctly. You may "
+"find it out at http://www.calle.com/world/, positive is northern hemisphere, "
+"negative is southern hemisphere. If you don't know your latitude at this "
+"moment, leave the input field blank and run `dpkg-reconfigure wmmoonclock' "
+"later."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid ""
+"Note that this configuration applies only to the X menu system. If you call "
+"wmMoonClock from a terminal prompt you can supply the `-lat' option."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid "Please enter the longitude of the observer."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid ""
+"You have to enter your longitude for wmMoonClock to work correctly. You may "
+"find it out at http://www.calle.com/world/. Greenwich is 0.0, and longitude "
+"increases positively toward the west. Alternatively, negative numbers can "
+"also be used to specify longitudes to the east of Greenwich. If you don't "
+"know your longitude at this moment, leave the input field blank and run "
+"`dpkg-reconfigure wmmoonclock' later."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:16
+msgid ""
+"Note that this configuration applies only to the X menu system. If you call "
+"wmMoonClock from a terminal prompt you can supply the `-lon' option."
+msgstr ""
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..c4873c9
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+set -e
+
+[ "$1" = configure ] || exit 0
+
+if [ -e /usr/share/debconf/confmodule -a -x /usr/bin/ucf ]; then
+ . /usr/share/debconf/confmodule
+
+ args=""
+ umask 022
+
+ db_get wmmoonclock/latitude
+ if [ "$RET" ]; then
+ args="$args -lat $RET"
+ fi
+
+ db_get wmmoonclock/longitude
+ if [ "$RET" ]; then
+ args="$args -lon $RET"
+ fi
+
+ echo "?package(wmmoonclock):needs=\"X11\" section=\"Apps/Tools\" \\" > /etc/menu/wmmoonclock.new && \
+ echo " title=\"wmMoonClock\" command=\"/usr/bin/wmMoonClock $args\"" >> /etc/menu/wmmoonclock.new
+
+ ucf --debconf-ok /etc/menu/wmmoonclock.new /etc/menu/wmmoonclock
+ rm -f /etc/menu/wmmoonclock.new
+
+ db_stop
+fi
+
+if [ -x /usr/bin/update-menus ]; then
+ update-menus
+fi
+
+exit 0
diff --git a/debian/postrm b/debian/postrm
new file mode 100644
index 0000000..690867c
--- /dev/null
+++ b/debian/postrm
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = purge ]; then
+ if [ -e /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+ db_purge
+ db_stop
+ fi
+ if [ -x /usr/bin/ucf ]; then
+ ucf --purge /etc/menu/wmmoonclock
+ fi
+ rm -f /etc/menu/wmmoonclock /etc/menu/wmmoonclock.*
+fi
+
+if [ -x /usr/bin/update-menus ]; then
+ update-menus
+fi
+
+exit 0
diff --git a/debian/rules b/debian/rules
index 7d278df..b0989c2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,55 +1,65 @@
#!/usr/bin/make -f
-# MAde with the aid of dh_make, by Craig Small
-# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
-# Some lines taken from debmake, by Cristoph Lameter.
-# Modified for wmMoonClock by Adam Klein
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+BUILDDIR = debian/wmmoonclock
+DEBDIR = $(BUILDDIR)/DEBIAN
+DOCDIR = $(BUILDDIR)/usr/share/doc/wmmoonclock
+testdir = test -f Src/wmMoonClock.c && test -f debian/rules
+testroot = test x`whoami` = xroot
-export DH_COMPAT=2
-
-build: build-stamp
-build-stamp:
- dh_testdir
- $(MAKE) -C Src
- touch build-stamp
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+export CFLAGS
clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp install-stamp
+ $(testdir)
+ -rm -f build debian/files debian/substvars
-$(MAKE) -C Src clean
- dh_clean
-
-install: install-stamp
-install-stamp: build-stamp
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
- $(MAKE) -C Src install DESTDIR=`pwd`/debian/wmmoonclock/usr/X11R6
- touch install-stamp
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installdocs Src/TODO
- dh_installmenu
- dh_installchangelogs Src/ChangeLog
- dh_strip
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
+ -rm -rf debian/wmmoonclock
+
+build:
+ $(testdir)
+ $(MAKE) -C Src
+ touch build
+
+binary: binary-arch
+
+binary-indep:
+
+binary-arch: build
+ $(testdir)
+ $(testroot)
+ rm -rf debian/wmmoonclock
+
+ $(MAKE) -C Src install DESTDIR=$(CURDIR)/debian/wmmoonclock
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ strip -R .comment -R .note $(BUILDDIR)/usr/bin/wmMoonClock
+endif
+ gzip -9 $(BUILDDIR)/usr/share/man/man1/wmMoonClock.1
+ ln -s wmMoonClock $(BUILDDIR)/usr/bin/wmmoonclock
+ ln -s wmMoonClock.1.gz $(BUILDDIR)/usr/share/man/man1/wmmoonclock.1.gz
+ install -D -m 0644 debian/menu $(BUILDDIR)/usr/lib/menu/wmmoonclock
+ install -d -m 0755 $(BUILDDIR)/etc/menu
+
+ install -D -m 0644 debian/changelog $(DOCDIR)/changelog.Debian
+ install -D -m 0644 debian/changelog.upstream $(DOCDIR)/changelog
+ install -m 0644 debian/copyright $(DOCDIR)
+ gzip -9 $(DOCDIR)/changelog*
+
+ install -d -m 0755 $(DEBDIR)
+ install -m 0644 debian/control $(DEBDIR)
+ install -m 0755 debian/config debian/postinst debian/postrm $(DEBDIR)
+ cd $(BUILDDIR) && find usr -type f -print0 | xargs -0 md5sum | tee DEBIAN/md5sums
+ po2debconf debian/templates > $(DEBDIR)/templates
+ chmod 0644 $(DEBDIR)/md5sums $(DEBDIR)/templates
+
+ dpkg-shlibdeps $(BUILDDIR)/usr/bin/wmMoonClock
+ dpkg-gencontrol -isp -pwmmoonclock -P$(BUILDDIR)
+ chown -R root:root $(BUILDDIR)
+ chmod -R go=u-w $(BUILDDIR)
+ dpkg --build $(BUILDDIR) ..
+
+.PHONY: clean binary-indep binary-arch binary
diff --git a/debian/templates b/debian/templates
new file mode 100644
index 0000000..62094fd
--- /dev/null
+++ b/debian/templates
@@ -0,0 +1,26 @@
+Template: wmmoonclock/latitude
+Type: string
+_Description: Please enter the latitude of the observer.
+ You have to enter your latitude for wmMoonClock to work correctly.
+ You may find it out at http://www.calle.com/world/, positive is
+ northern hemisphere, negative is southern hemisphere. If you don't
+ know your latitude at this moment, leave the input field blank and
+ run `dpkg-reconfigure wmmoonclock' later.
+ .
+ Note that this configuration applies only to the X menu system.
+ If you call wmMoonClock from a terminal prompt you can supply the
+ `-lat' option.
+
+Template: wmmoonclock/longitude
+Type: string
+_Description: Please enter the longitude of the observer.
+ You have to enter your longitude for wmMoonClock to work correctly.
+ You may find it out at http://www.calle.com/world/. Greenwich is 0.0,
+ and longitude increases positively toward the west. Alternatively,
+ negative numbers can also be used to specify longitudes to the east
+ of Greenwich. If you don't know your longitude at this moment, leave
+ the input field blank and run `dpkg-reconfigure wmmoonclock' later.
+ .
+ Note that this configuration applies only to the X menu system.
+ If you call wmMoonClock from a terminal prompt you can supply the
+ `-lon' option.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmmoonclock.git
More information about the Pkg-wmaker-commits
mailing list