From owner-svn-ports-all@freebsd.org Sun Apr 14 12:40:58 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 CEDAF1574EBC; Sun, 14 Apr 2019 12:40:57 +0000 (UTC) (envelope-from kai@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 73D0D680CA; Sun, 14 Apr 2019 12:40:57 +0000 (UTC) (envelope-from kai@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 4D8FA209B8; Sun, 14 Apr 2019 12:40:57 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x3ECevLg053915; Sun, 14 Apr 2019 12:40:57 GMT (envelope-from kai@FreeBSD.org) Received: (from kai@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x3ECeuEK053911; Sun, 14 Apr 2019 12:40:56 GMT (envelope-from kai@FreeBSD.org) Message-Id: <201904141240.x3ECeuEK053911@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kai set sender to kai@FreeBSD.org using -f From: Kai Knoblich Date: Sun, 14 Apr 2019 12:40:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r498902 - in head/astro/wmsun: . files X-SVN-Group: ports-head X-SVN-Commit-Author: kai X-SVN-Commit-Paths: in head/astro/wmsun: . files X-SVN-Commit-Revision: 498902 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 73D0D680CA X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.97)[-0.968,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: Sun, 14 Apr 2019 12:40:58 -0000 Author: kai Date: Sun Apr 14 12:40:56 2019 New Revision: 498902 URL: https://svnweb.freebsd.org/changeset/ports/498902 Log: astro/wmsun: "Update" to 1.05 and return to official upstream repository While I'm here: * Add license information * Sort variables a bit according to the PHB This was initially a small patch that was meant to update the MASTER_SITES and the WWW field. [1] On further research it came to light that the previous version of astro/wmsun was a fork whose upstream sources are now gone. In the meantime there have been some recent activities regarding Window Maker dockapps and many of those programs were collected, updated and are maintained by the current Window Maker developers. Therefore the intial patch has been extended a bit to point to the new upstream location instead of using a semi-official location that could vanish in near future. [2] At last but not least: The program was renamed from "wmSun" to "wmsun" so there's a bit more churn than usual. https://github.com/window-maker/dockapps/blob/master/wmsun/ChangeLog PR: 235526 Submitted by: Marco Beishuzen (maintainer) [1] Approved by: tcberner (mentor), maintainer [2] Differential Revision: https://reviews.freebsd.org/D19136 Added: head/astro/wmsun/files/patch-wmsun.c (contents, props changed) Deleted: head/astro/wmsun/files/patch-wmSun.c Modified: head/astro/wmsun/Makefile head/astro/wmsun/distinfo head/astro/wmsun/files/patch-Makefile head/astro/wmsun/pkg-descr Modified: head/astro/wmsun/Makefile ============================================================================== --- head/astro/wmsun/Makefile Sun Apr 14 12:39:29 2019 (r498901) +++ head/astro/wmsun/Makefile Sun Apr 14 12:40:56 2019 (r498902) @@ -2,25 +2,30 @@ # $FreeBSD$ PORTNAME= wmsun -PORTVERSION= 1.12 +PORTVERSION= 1.05 +PORTEPOCH= 1 CATEGORIES= astro windowmaker -MASTER_SITES= http://linux-bsd-unix.strefa.pl/ -DISTNAME= wmSun-${PORTVERSION} +MASTER_SITES= https://www.dockapps.net/download/ MAINTAINER= mbeis@xs4all.nl COMMENT= Dockapp that displays the rise and set times of the Sun -WRKSRC_SUBDIR= wmSun +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING +LIB_DEPENDS= libdockapp.so:x11-wm/libdockapp + USE_XORG= xext xpm x11 + MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" \ INCDIR="-I${LOCALBASE}/include" LIBDIR="-L${LOCALBASE}/lib" MAKE_JOBS_UNSAFE= yes -PLIST_FILES= bin/wmSun man/man1/wmSun.1.gz +PLIST_FILES= bin/wmsun man/man1/wmsun.1.gz +WRKSRC= ${WRKDIR}/dockapps-a1e67bd do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/wmSun ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/wmSun.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/wmsun ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/wmsun.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 .include Modified: head/astro/wmsun/distinfo ============================================================================== --- head/astro/wmsun/distinfo Sun Apr 14 12:39:29 2019 (r498901) +++ head/astro/wmsun/distinfo Sun Apr 14 12:40:56 2019 (r498902) @@ -1,2 +1,3 @@ -SHA256 (wmSun-1.12.tar.gz) = d05fb019dd835fc33b2c7c3fb7cf1b6a8cd7fe59b62c8d3fa00ddd0f776da15d -SIZE (wmSun-1.12.tar.gz) = 147170 +TIMESTAMP = 1549747586 +SHA256 (wmsun-1.05.tar.gz) = 29c7d2da4c0731a20955af9ba01bde3901dc269bfa1020ff707927c62d5b83a0 +SIZE (wmsun-1.05.tar.gz) = 20640 Modified: head/astro/wmsun/files/patch-Makefile ============================================================================== --- head/astro/wmsun/files/patch-Makefile Sun Apr 14 12:39:29 2019 (r498901) +++ head/astro/wmsun/files/patch-Makefile Sun Apr 14 12:40:56 2019 (r498902) @@ -1,17 +1,19 @@ ---- Makefile.orig 2015-04-01 21:05:45 UTC +--- Makefile.orig 2015-08-28 11:57:39 UTC +++ Makefile -@@ -18,12 +18,12 @@ LIBS = -lXpm -lX11 -lXext -lm - OBJS = wmSun.o SunRise.o ../wmgeneral/wmgeneral.o +@@ -19,14 +19,14 @@ LIBS = -lXpm -lX11 -lXext -lm -ldockapp + OBJS = wmsun.o SunRise.o .c.o: -- $(CC) $(COPTS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR) -+ $(CC) $(CFLAGS) -D$(OPSYS) -c $< -o $@ $(INCDIR) +- $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o ++ $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ $(INCDIR) - all: wmSun.o wmSun + all: wmsun.o wmsun - wmSun: $(OBJS) -- $(CC) $(COPTS) $(SYSTEM) -o wmSun $^ $(INCDIR) $(LIBDIR) $(LIBS) -+ $(CC) $(CFLAGS) $(SYSTEM) -o wmSun $(OBJS) $(LIBDIR) $(LIBS) + wmsun.o: wmSun_master.xpm wmSun_mask.xbm + wmsun: $(OBJS) +- $(CC) $(LDFLAGS) -o wmsun $^ $(LIBS) ++ $(CC) $(LDFLAGS) -o wmsun $(OBJS) $(LIBDIR) $(LIBS) + clean: - for i in $(OBJS) ; do rm -f $$i; done + for i in $(OBJS) ; do \ Added: head/astro/wmsun/files/patch-wmsun.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/astro/wmsun/files/patch-wmsun.c Sun Apr 14 12:40:56 2019 (r498902) @@ -0,0 +1,20 @@ +--- wmsun.c.orig 2015-08-28 11:57:39 UTC ++++ wmsun.c +@@ -43,7 +43,6 @@ + /* + * Includes + */ +-#define _POSIX_C_SOURCE 1 + #include /* for ButtonPress, ButtonRelease, etc */ + #include /* for XEvent, ConnectionNumber, etc */ + #include /* for cos, sin */ +@@ -106,7 +105,8 @@ int main(int argc, char *argv[]) { + int n; + int Year, Month; + int DayOfMonth; +- long CurrentLocalTime, CurrentGMTTime, date; ++ time_t CurrentLocalTime, CurrentGMTTime; ++ long date; + double UT, val, LTRise, LTSet, LocalHour, hour24(); + int H, M; + struct timeval timeout; Modified: head/astro/wmsun/pkg-descr ============================================================================== --- head/astro/wmsun/pkg-descr Sun Apr 14 12:39:29 2019 (r498901) +++ head/astro/wmsun/pkg-descr Sun Apr 14 12:40:56 2019 (r498902) @@ -1,3 +1,3 @@ A dockapp that displays the rise and set time of the sun. -WWW: http://linux-bsd-unix.strefa.pl/ +WWW: https://www.dockapps.net/wmsun/