From owner-svn-ports-all@freebsd.org Thu Apr 11 00:53:10 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 37923157258A; Thu, 11 Apr 2019 00:53:10 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8175F6CBB1; Thu, 11 Apr 2019 00:53:09 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 30BB128B1; Thu, 11 Apr 2019 00:52:52 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x3B0qqU1090426; Thu, 11 Apr 2019 00:52:52 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x3B0qp07090424; Thu, 11 Apr 2019 00:52:51 GMT (envelope-from swills@FreeBSD.org) Message-Id: <201904110052.x3B0qp07090424@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Thu, 11 Apr 2019 00:52:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r498625 - in head/x11-clocks/tclock: . files X-SVN-Group: ports-head X-SVN-Commit-Author: swills X-SVN-Commit-Paths: in head/x11-clocks/tclock: . files X-SVN-Commit-Revision: 498625 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 8175F6CBB1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.93 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.93)[-0.934,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Apr 2019 00:53:10 -0000 Author: swills Date: Thu Apr 11 00:52:51 2019 New Revision: 498625 URL: https://svnweb.freebsd.org/changeset/ports/498625 Log: x11-clocks/tclock: fix drawing bug PR: 236848 Submitted by: Klaus Aehlig (maintainer) Modified: head/x11-clocks/tclock/Makefile (contents, props changed) head/x11-clocks/tclock/files/patch-tclock.c (contents, props changed) Modified: head/x11-clocks/tclock/Makefile ============================================================================== --- head/x11-clocks/tclock/Makefile Thu Apr 11 00:52:46 2019 (r498624) +++ head/x11-clocks/tclock/Makefile Thu Apr 11 00:52:51 2019 (r498625) @@ -3,7 +3,7 @@ PORTNAME= tclock PORTVERSION= 1.0.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= x11-clocks MASTER_SITES= http://www.linta.de/distfiles/ \ ftp://ftp.uni-potsdam.de/pub/X11/tools/clocks/ @@ -11,12 +11,13 @@ MASTER_SITES= http://www.linta.de/distfiles/ \ MAINTAINER= aehlig@linta.de COMMENT= Transparent analog clock for x11 -NO_WRKSUBDIR= yes +LICENSE= GPLv1 +LICENSE_FILE= ${WRKSRC}/COPYING + USES= imake tar:Z USE_XORG= x11 xext -PLIST_FILES= bin/tclock man/man1/${PORTNAME}.1.gz -LICENSE= GPLv1 -LICENSE_FILE= ${WRKSRC}/COPYING +PLIST_FILES= bin/tclock man/man1/${PORTNAME}.1.gz +NO_WRKSUBDIR= yes .include Modified: head/x11-clocks/tclock/files/patch-tclock.c ============================================================================== --- head/x11-clocks/tclock/files/patch-tclock.c Thu Apr 11 00:52:46 2019 (r498624) +++ head/x11-clocks/tclock/files/patch-tclock.c Thu Apr 11 00:52:51 2019 (r498625) @@ -1,5 +1,5 @@ ---- tclock.c.orig 1992-12-21 19:56:29.000000000 +0000 -+++ tclock.c 2011-06-20 18:42:37.000000000 +0100 +--- tclock.c.orig 1992-12-21 19:56:29 UTC ++++ tclock.c @@ -22,7 +22,10 @@ */ @@ -11,7 +11,7 @@ #include #include #include -@@ -51,7 +54,7 @@ +@@ -51,7 +54,7 @@ Display *display; int screen_number; Window rootWindow, mainWindow; int ShapeEventNumber, ShapeErrorNumber; @@ -20,7 +20,16 @@ struct tm lastTimes, times; Pixmap border, clip; GC clearGC, drawGC; -@@ -212,7 +215,7 @@ +@@ -113,6 +116,8 @@ initHand(h, s) + + hand[h].radius[i] = hand[h].radius[0]; + hand[h].offset[i] = hand[h].offset[0]; ++ ++ hand[h].position = -1; + } + + void +@@ -212,7 +217,7 @@ reshape() XShapeCombineMask(display, mainWindow, ShapeBounding, 0, 0, border, ShapeSet); XShapeCombineMask(display, mainWindow, ShapeClip, 0, 0, clip, ShapeSet); @@ -29,7 +38,7 @@ /* This call to XPending ensures that if the window gets closed, we die */ XPending(display); -@@ -222,8 +225,6 @@ +@@ -222,8 +227,6 @@ XTextProperty * strToTP(s) char *s; { @@ -38,7 +47,7 @@ XTextProperty *tp = (XTextProperty *)malloc(sizeof *tp); XStringListToTextProperty(&s, 1, tp); -@@ -233,11 +234,11 @@ +@@ -233,11 +236,11 @@ strToTP(s) int sigalrm() { @@ -53,7 +62,7 @@ } unsigned long -@@ -294,7 +295,7 @@ +@@ -294,7 +297,7 @@ makeAppName(r) strcpy(appClass, "Tclock"); } @@ -62,7 +71,7 @@ main(ac, av) int ac; char **av; -@@ -309,6 +310,7 @@ +@@ -309,6 +312,7 @@ main(ac, av) extern char *getenv(); char *displayName, fn[1000]; @@ -70,7 +79,7 @@ int parseReturn, rc; XrmParseCommand(&db, option, numOptions, "tclock", &ac, av); -@@ -330,7 +332,7 @@ +@@ -330,7 +334,7 @@ main(ac, av) display = XOpenDisplay(displayName); if(display == 0) { @@ -79,7 +88,7 @@ exit(-1); } -@@ -341,13 +343,14 @@ +@@ -341,13 +345,14 @@ main(ac, av) exit(1); db = XrmGetStringDatabase(tclockDefaults); @@ -96,7 +105,7 @@ XrmMergeDatabases(XrmGetFileDatabase(getenv("XENVIRONMENT")), &db); XrmMergeDatabases(cmdDB, &db); -@@ -410,7 +413,7 @@ +@@ -410,7 +415,7 @@ main(ac, av) XMapRaised(display, mainWindow); XFlush(display); @@ -105,7 +114,7 @@ new.it_interval.tv_sec = 1; new.it_value.tv_sec = 1; new.it_interval.tv_usec = 0; -@@ -420,4 +423,3 @@ +@@ -420,4 +425,3 @@ main(ac, av) for(;;) sigpause(0); }