aboutsummaryrefslogtreecommitdiffstats
path: root/x11-clocks
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2006-08-07 05:38:28 +0800
committerarved <arved@FreeBSD.org>2006-08-07 05:38:28 +0800
commite5dbee2f0706192f52b9602cc3b7638ed0d0f766 (patch)
tree7c7addee2760905ad8934c5f4fc2e7a3a0338060 /x11-clocks
parent6da2ade670556c81dbaef4384fc3630289dd4a68 (diff)
downloadfreebsd-ports-graphics-e5dbee2f0706192f52b9602cc3b7638ed0d0f766.tar.gz
freebsd-ports-graphics-e5dbee2f0706192f52b9602cc3b7638ed0d0f766.tar.zst
freebsd-ports-graphics-e5dbee2f0706192f52b9602cc3b7638ed0d0f766.zip
Fix -y option to display the correct year
Fix abbreviation of Thursday PR: 98886 Submitted by: Eric P. Scott <eps+pbug0606@ana.com> Approved by: maintainer timeout (6 weeks)
Diffstat (limited to 'x11-clocks')
-rw-r--r--x11-clocks/wmclock/Makefile1
-rw-r--r--x11-clocks/wmclock/files/patch-weekday.xpm16
-rw-r--r--x11-clocks/wmclock/files/patch-wmclock.c16
3 files changed, 33 insertions, 0 deletions
diff --git a/x11-clocks/wmclock/Makefile b/x11-clocks/wmclock/Makefile
index 91118d639c6..9177e341828 100644
--- a/x11-clocks/wmclock/Makefile
+++ b/x11-clocks/wmclock/Makefile
@@ -7,6 +7,7 @@
PORTNAME= wmclock
PORTVERSION= 1.0.12.2
+PORTREVISION= 1
CATEGORIES= x11-clocks windowmaker
MASTER_SITES= http://www.jmknoble.net/WindowMaker/wmclock/
diff --git a/x11-clocks/wmclock/files/patch-weekday.xpm b/x11-clocks/wmclock/files/patch-weekday.xpm
new file mode 100644
index 00000000000..67c67f061af
--- /dev/null
+++ b/x11-clocks/wmclock/files/patch-weekday.xpm
@@ -0,0 +1,16 @@
+--- lang.english/weekday.xpm.orig Tue Mar 7 22:56:36 2000
++++ lang.english/weekday.xpm
+@@ -27,11 +27,11 @@
+ "b..bb..b.bbbbb.bbb.b",
+ "b.bbbb.b.....b....bb",
+ "bbbbbbbbbbbbbbbbbbbb",
+-"b.....b.bbb.b.....bb",
++"b.....b.bbb.b.bbbb.b",
+ "bbb.bbb.bbb.b.bbbb.b",
+-"bbb.bbb.....b.....bb",
+-"bbb.bbb.bbb.b.bbb.bb",
++"bbb.bbb.....b.bbbb.b",
+ "bbb.bbb.bbb.b.bbbb.b",
++"bbb.bbb.bbb.bb....bb",
+ "bbbbbbbbbbbbbbbbbbbb",
+ "b.....b.....bb.....b",
diff --git a/x11-clocks/wmclock/files/patch-wmclock.c b/x11-clocks/wmclock/files/patch-wmclock.c
new file mode 100644
index 00000000000..1b5746a3857
--- /dev/null
+++ b/x11-clocks/wmclock/files/patch-wmclock.c
@@ -0,0 +1,16 @@
+--- wmclock.c.orig Tue Mar 7 23:31:33 2000
++++ wmclock.c
+@@ -470,11 +470,11 @@
+ XCopyArea(dpy, led.pixmap, visible.pixmap, normalGC,
+ digitXOffset , digitYOffset, LED_NUM_WIDTH, LED_NUM_HEIGHT,
+ xPos[DIGIT_1_X_POS], yPos[DIGIT_Y_POS]);
+- digitXOffset = LED_NUM_WIDTH * (year % 1000);
++ digitXOffset = LED_NUM_WIDTH * ((year / 100) % 10);
+ XCopyArea(dpy, led.pixmap, visible.pixmap, normalGC,
+ digitXOffset , digitYOffset, LED_NUM_WIDTH, LED_NUM_HEIGHT,
+ xPos[DIGIT_2_X_POS], yPos[DIGIT_Y_POS]);
+- digitXOffset = LED_NUM_WIDTH * (year % 100);
++ digitXOffset = LED_NUM_WIDTH * ((year / 10) % 10);
+ XCopyArea(dpy, led.pixmap, visible.pixmap, normalGC,
+ digitXOffset , digitYOffset, LED_NUM_WIDTH, LED_NUM_HEIGHT,
+ xPos[DIGIT_3_X_POS], yPos[DIGIT_Y_POS]);