ports/90570: [PATCH] x11-clocks/dclock: Update to 2.1.2.7
KIMURA Yasuhiro
yasu at utahime.org
Sat Dec 17 16:40:13 UTC 2005
>Number: 90570
>Category: ports
>Synopsis: [PATCH] x11-clocks/dclock: Update to 2.1.2.7
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Dec 17 16:40:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: KIMURA Yasuhiro
>Release: FreeBSD 4.11-RELEASE-p13 i386
>Organization:
>Environment:
System: FreeBSD xxxx 4.11-RELEASE-p13 FreeBSD 4.11-RELEASE-p13 #0: Wed Oct 12 17:59:52 JST 2005 xxxx i386
>Description:
Update to 2.1.2.7 and take maintainership.
As is described in pkg-descr, now this port uses Debian porting
of Tim Edwards's version 2.0. It is heavily modified from
Dan Heller's original version, and is not fully compatible with it.
But still it is reasonable replacement of disappeared old version.
>How-To-Repeat:
>Fix:
--- patch-dclock begins here ---
Index: Makefile
===================================================================
RCS file: /net/freebsd/cvsroot/ports/x11-clocks/dclock/Makefile,v
retrieving revision 1.17
diff -u -r1.17 Makefile
--- Makefile 27 Nov 2005 02:56:42 -0000 1.17
+++ Makefile 17 Dec 2005 16:11:36 -0000
@@ -6,25 +6,53 @@
#
PORTNAME= dclock
-PORTVERSION= pl6
+PORTVERSION= 2.1.2.7
CATEGORIES= x11-clocks
-MASTER_SITES= # disappeared
-DISTNAME= Dclock
+MASTER_SITES= ${MASTER_SITE_DEBIAN}
+MASTER_SITE_SUBDIR= pool/main/d/dclock
+DISTNAME= dclock_2.1.2.orig
-PATCH_SITES= ${MASTER_SITE_XCONTRIB}
-PATCH_SITE_SUBDIR= R6contrib-fixes
-PATCHFILES= Dclock-pl6.patch.gz
+PATCH_SITES= ${MASTER_SITE_DEBIAN:S,%SUBDIR%,pool/main/d/dclock,}
+PATCHFILES= dclock_2.1.2-7.diff.gz
PATCH_DIST_STRIP= -p1
-MAINTAINER= ports at FreeBSD.org
-COMMENT= A 7-segment digital clock with optional military time and alarm
+MAINTAINER= yasu at utahime.org
+COMMENT= A 7-segment digital clock with some optional features
-DEPRECATED= mastersites disappeared
-EXPIRATION_DATE= 2006-01-26
-
-IGNOREFILES= ${DISTFILES}
USE_IMAKE= yes
+USE_REINPLACE= yes
+
+WRKSRC= ${WRKDIR}/dclock
MAN1= dclock.1
-PLIST_FILES= bin/dclock
-.include <bsd.port.mk>
+OPTIONS= SOX "Install SoX to play audio" On
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_SOX)
+RUN_DEPENDS= ${LOCALBASE}/bin/play:${PORTSDIR}/audio/sox
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' \
+ -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
+ ${WRKSRC}/Dclock.c \
+ ${WRKSRC}/Dclock.ad \
+ ${WRKSRC}/dclock.1
+ @${MV} ${WRKSRC}/dclock.1 ${WRKSRC}/dclock.man
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/Dclock.ad ${PREFIX}/lib/X11/app-defaults/DClock
+ ${MKDIR} ${DATADIR}/sounds
+.for f in bell.wav digital.wav
+ ${INSTALL_DATA} ${WRKSRC}/sounds/${f} ${DATADIR}/sounds
+.endfor
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.for f in README TODO
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/debian/changelog ${DOCSDIR}/changelog.Debian
+.endif
+
+.include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /net/freebsd/cvsroot/ports/x11-clocks/dclock/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo 25 Nov 2005 19:16:28 -0000 1.5
+++ distinfo 17 Dec 2005 14:07:09 -0000
@@ -1,5 +1,6 @@
-MD5 (Dclock-pl6.patch.gz) = 539204f67d1662c5ed738f8b8e9d9bf2
-SHA256 (Dclock-pl6.patch.gz) = 98ac37a7893844947a581c9b730907d652b388f81e88913d9b1a556573974ac3
-SIZE (Dclock-pl6.patch.gz) = 2133
-MD5 (Dclock.tar.gz) = IGNORE
-SHA256 (Dclock.tar.gz) = IGNORE
+MD5 (dclock_2.1.2.orig.tar.gz) = e5cd7c843809d94a78ad62fd39fb8b58
+SHA256 (dclock_2.1.2.orig.tar.gz) = e613b2ea01e7bc41c1ae76b2ae7a5ad81805e2aba29c0e843fa2f9b28518136e
+SIZE (dclock_2.1.2.orig.tar.gz) = 51418
+MD5 (dclock_2.1.2-7.diff.gz) = a9e5012d4c0d86660da4e3f7d8f50592
+SHA256 (dclock_2.1.2-7.diff.gz) = 999b8da2868393d38853427da866161b109bc62577c0e99964c519339b95a8da
+SIZE (dclock_2.1.2-7.diff.gz) = 4794
Index: pkg-descr
===================================================================
RCS file: /net/freebsd/cvsroot/ports/x11-clocks/dclock/pkg-descr,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 pkg-descr
--- pkg-descr 16 Aug 1996 07:39:57 -0000 1.1.1.1
+++ pkg-descr 17 Dec 2005 16:13:16 -0000
@@ -1,5 +1,8 @@
-This is a classic, simple, 7-segment X11 clock, which seems to work
-reall well. It was on the suns at uni, and when I moved, I missed it
-so much, I ported it!
---
-leonard at dstc.edu.au
+Dclock is a classic, simple, 7-segment X11 clock with some optional
+features such as military time and alarm. The original version is
+written by Dan Heller. Tim Edwards heavily modified it and released as
+version 2.0. This port uses Debian porting as upstream, which is based
+on Tim's version and also includes some additional features and fixes.
+
+WWW: http://opencircuitdesign.com/~tim/
+WWW: http://packages.qa.debian.org/d/dclock.html
Index: pkg-plist
===================================================================
RCS file: pkg-plist
diff -N pkg-plist
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ pkg-plist 17 Dec 2005 15:12:05 -0000
@@ -0,0 +1,10 @@
+ at comment $FreeBSD:$
+bin/dclock
+lib/X11/app-defaults/DClock
+%%DATADIR%%/sounds/bell.wav
+%%DATADIR%%/sounds/digital.wav
+ at dirrm %%DATADIR%%/sounds
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%%%DOCSDIR%%/changelog.Debian
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
Index: files/patch-Dclock.ad
===================================================================
RCS file: files/patch-Dclock.ad
diff -N files/patch-Dclock.ad
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-Dclock.ad 17 Dec 2005 15:23:03 -0000
@@ -0,0 +1,30 @@
+--- Dclock.ad.orig Sun Dec 18 00:18:10 2005
++++ Dclock.ad Sun Dec 18 00:20:00 2005
+@@ -1,14 +1,14 @@
+ ! sample dclock defaults
+-dclock*geometry: 240x87+271+5
+-dclock*foreground: chartreuse
+-dclock*background: DarkSlateGray
+-dclock*led_off: DarkGreen
+-dclock*borderColor: white
+-dclock*borderWidth: 2
+-dclock*widthFactor: 0.143
+-dclock*spaceFactor: 0.062
+-dclock*bellFile: /usr/share/sounds/bell.wav
+-dclock*alarmFile: /usr/share/sounds/digital.wav
+-dclock*font: *helvetica-medium-r-normal--14*
+-dclock*audioPlay: /usr/bin/play
+-dclock.input: true
++*geometry: 240x87+271+5
++*foreground: chartreuse
++*background: DarkSlateGray
++*led_off: DarkGreen
++*borderColor: white
++*borderWidth: 2
++*widthFactor: 0.143
++*spaceFactor: 0.062
++*bellFile: %%DATADIR%%/sounds/bell.wav
++*alarmFile: %%DATADIR%%/sounds/digital.wav
++*font: *helvetica-medium-r-normal--14*
++*audioPlay: %%LOCALBASE%%/bin/play
++.input: true
Index: files/patch-Dclock.c
===================================================================
RCS file: files/patch-Dclock.c
diff -N files/patch-Dclock.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-Dclock.c 17 Dec 2005 14:47:57 -0000
@@ -0,0 +1,23 @@
+--- Dclock.c.orig Sat Dec 17 23:46:28 2005
++++ Dclock.c Sat Dec 17 23:47:28 2005
+@@ -9,9 +9,9 @@
+ #include <stdio.h>
+ #include <unistd.h>
+ #include <string.h>
+-#include <values.h>
++#include <limits.h>
+ #include <time.h>
+-#include <wait.h>
++#include <sys/wait.h>
+ #include <errno.h>
+ #include <X11/IntrinsicP.h>
+ #include <X11/Xos.h>
+@@ -171,7 +171,7 @@
+ { XtNbellFile, "bellFile", XtRString, sizeof(String),
+ XtOffset(DclockWidget,dclock.bellfile), XtRString, (String)NULL},
+ { XtNaudioPlay, "audioPlay", XtRString, sizeof(String),
+- XtOffset(DclockWidget,dclock.audioplay), XtRString, "/usr/bin/play"},
++ XtOffset(DclockWidget,dclock.audioplay), XtRString, "%%LOCALBASE%%/bin/play"},
+ };
+
+ /* Define the Dclock widget */
Index: files/patch-ab
===================================================================
RCS file: files/patch-ab
diff -N files/patch-ab
--- files/patch-ab 24 Dec 1999 04:39:20 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- Dclock.h.orig Mon Jun 6 08:00:00 1994
-+++ Dclock.h Sun Dec 19 15:59:17 1999
-@@ -58,7 +58,7 @@
- #define XtNfadeRate "fadeRate"
- #define XtNtails "tails"
- #define XtNdate "date"
--#define XtNmilitaryTime "militaryTime"
-+#define XtNmilitaryTime "miltime"
- #define XtNlanguage "language"
- #define XtNhours_snd "hours_snd"
- #define XtNhalf_hours_snd "half_hours_snd"
Index: files/patch-ac
===================================================================
RCS file: files/patch-ac
diff -N files/patch-ac
--- files/patch-ac 24 Dec 1999 04:39:20 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
---- d_clock.c.orig Fri Jun 3 08:00:00 1994
-+++ d_clock.c Sun Dec 19 16:01:36 1999
-@@ -131,7 +131,7 @@
- else
- name = argv[0];
-
-- toplevel = XtInitialize(name, "DClock", options, XtNumber(options),
-+ toplevel = XtInitialize(name, "Dclock", options, XtNumber(options),
- &argc, argv);
- XtAddActions(actionsList, 1);
-
Index: files/patch-ad
===================================================================
RCS file: files/patch-ad
diff -N files/patch-ad
--- files/patch-ad 4 Jan 2000 20:43:49 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,27 +0,0 @@
---- Dclock.c.orig Tue Jan 4 14:01:53 2000
-+++ Dclock.c Tue Jan 4 14:01:55 2000
-@@ -967,7 +967,7 @@
- {
- char datestr[128];
- register char *datep = datestr, *p;
-- int x;
-+ int x, year = now->tm_year + 1900;
-
- if (!w->dclock.display_time)
- datep += strlen(strcpy(datep, "Push HERE to Set/Unset Alarm"));
-@@ -1000,11 +1000,12 @@
- *datep++ = (now->tm_mday / 10 + '0');
- *datep++ = now->tm_mday % 10 + '0';
- when 'Y':
-- *datep++ = '1', *datep++ = '9';
-+ *datep++ = (year / 1000) % 10 + '0';
-+ *datep++ = (year / 100) % 10 + '0';
- /* fall thru */
- case 'y':
-- *datep++ = now->tm_year / 10 + '0';
-- *datep++ = now->tm_year % 10 + '0';
-+ *datep++ = (year / 10) % 10 + '0';
-+ *datep++ = year % 10 + '0';
- when '%':
- *datep++ = *p;
- otherwise: ; /* nothing */
Index: files/patch-dclock.1
===================================================================
RCS file: files/patch-dclock.1
diff -N files/patch-dclock.1
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-dclock.1 17 Dec 2005 14:27:17 -0000
@@ -0,0 +1,11 @@
+--- dclock.1.orig Sat Dec 17 23:23:39 2005
++++ dclock.1 Sat Dec 17 23:24:21 2005
+@@ -304,7 +304,7 @@
+ .B audioPlay (\fPclass\fB String)
+ Specifies an executable to use to play the bell and alarm audio files, if
+ they are specified. Otherwise, the system bell is used (default is
+-"/usr/bin/play").
++"%%LOCALBASE%%/bin/play").
+ .SH ENVIRONMENT
+ .PP
+ .TP 8
--- patch-dclock ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list