summaryrefslogtreecommitdiff
path: root/x11-clocks
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-02-25 23:49:18 +0000
committerJohn Marino <marino@FreeBSD.org>2014-02-25 23:49:18 +0000
commit2000fd9c852f673b76412764512fb0f75f2cb343 (patch)
tree5598d7606a36ee770b0f1e33f9d78c4501c0b40c /x11-clocks
parentUpdate to 2.1.6 (diff)
x11-clocks/wmfuzzy: Update at 1 hertz instead of 10 khz
This fuzzy clock display only changes approximately every 5 minutes, so it's crazy that it internally updates every 10 microseconds. Save CPU and let it sleep a second at a time. While here, remove indefinite article from comment, remove unnecessary NOPORTDOCS check, and indicate GPLv2 license. PR: ports/181137 Submitted-by: Marcus Reid
Notes
Notes: svn path=/head/; revision=346080
Diffstat (limited to 'x11-clocks')
-rw-r--r--x11-clocks/wmfuzzy/Makefile8
-rw-r--r--x11-clocks/wmfuzzy/files/patch-xdisplay.c11
2 files changed, 15 insertions, 4 deletions
diff --git a/x11-clocks/wmfuzzy/Makefile b/x11-clocks/wmfuzzy/Makefile
index 925b8a6e0ccd..450785152169 100644
--- a/x11-clocks/wmfuzzy/Makefile
+++ b/x11-clocks/wmfuzzy/Makefile
@@ -3,13 +3,15 @@
PORTNAME= wmfuzzy
PORTVERSION= 0.7.1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= x11-clocks windowmaker
MASTER_SITES= http://www.manicai.net/comp/wmfuzzy/assets/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
-COMMENT= A fuzzy clock WindowMaker dockapp
+COMMENT= Fuzzy clock WindowMaker dockapp
+
+LICENSE= GPLv2
WRKSRC= ${WRKDIR}/${DISTNAME}/src
@@ -20,9 +22,7 @@ PLIST_FILES= bin/wmfuzzy
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/wmfuzzy ${STAGEDIR}${PREFIX}/bin
-.if !defined(NOPORTDOCS)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/../README ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>
diff --git a/x11-clocks/wmfuzzy/files/patch-xdisplay.c b/x11-clocks/wmfuzzy/files/patch-xdisplay.c
new file mode 100644
index 000000000000..a2c60e462ab3
--- /dev/null
+++ b/x11-clocks/wmfuzzy/files/patch-xdisplay.c
@@ -0,0 +1,11 @@
+--- xdisplay.c.orig 2004-11-23 21:32:48.000000000 +0000
++++ xdisplay.c
+@@ -383,7 +383,7 @@ void display_main_loop(void)
+ x_handle_event(&event);
+ }
+
+- usleep(100);
++ sleep(1);
+ }
+ }
+