summaryrefslogtreecommitdiff
path: root/time/asclock
diff options
context:
space:
mode:
authorwiz <wiz>2000-12-17 23:32:09 +0000
committerwiz <wiz>2000-12-17 23:32:09 +0000
commitfb54ca6e79512b331f6c65b3efaf08d4e7219b5b (patch)
tree73288b5bb97270ccddd92731e20bbfff8858d306 /time/asclock
parent143076fe6de60fa3d2351ac4e46ccb0b17a83ce5 (diff)
downloadpkgsrc-fb54ca6e79512b331f6c65b3efaf08d4e7219b5b.tar.gz
New category: time. Move many packages here:
misc/cal, misc/cardboard-schedule, misc/ical, misc/plan, misc/py-mxDateTime, misc/remind, sysutils/logtime, and 19 more from x11.
Diffstat (limited to 'time/asclock')
-rw-r--r--time/asclock/Makefile64
-rw-r--r--time/asclock/files/asclock.sh36
-rw-r--r--time/asclock/files/md53
-rw-r--r--time/asclock/files/patch-sum5
-rw-r--r--time/asclock/patches/patch-aa11
-rw-r--r--time/asclock/patches/patch-ab60
-rw-r--r--time/asclock/patches/patch-ac95
-rw-r--r--time/asclock/pkg/COMMENT1
-rw-r--r--time/asclock/pkg/DESCR4
-rw-r--r--time/asclock/pkg/PLIST4
10 files changed, 283 insertions, 0 deletions
diff --git a/time/asclock/Makefile b/time/asclock/Makefile
new file mode 100644
index 00000000000..f0387230e03
--- /dev/null
+++ b/time/asclock/Makefile
@@ -0,0 +1,64 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/12/17 23:32:12 wiz Exp $
+#
+
+DISTNAME= asclock-classic-1.0
+PKGNAME= asclock-1.0
+CATEGORIES= x11 time
+MASTER_SITES= http://www.asclock.org/tar/
+
+MAINTAINER= jlam@netbsd.org
+HOMEPAGE= http://www.asclock.org/
+
+USE_IMAKE= YES
+USE_XPM= YES
+
+LANGUAGES= en de pt nl no it sv es hu br fr cs ru uk sl id da
+
+WRKSRC= ${WRKDIR}/asclock1.0
+PLIST_SRC= ${WRKDIR}/.PLIST_SRC
+
+# Translate to two-letter abbreviations in /usr/share/misc/language.
+#
+post-extract:
+ ${MV} ${WRKSRC}/english ${WRKSRC}/en
+ ${MV} ${WRKSRC}/german ${WRKSRC}/de
+ ${MV} ${WRKSRC}/portuguese ${WRKSRC}/pt
+ ${MV} ${WRKSRC}/dutch ${WRKSRC}/nl
+ ${MV} ${WRKSRC}/norwegian ${WRKSRC}/no
+ ${MV} ${WRKSRC}/italian ${WRKSRC}/it
+ ${MV} ${WRKSRC}/swedish ${WRKSRC}/sv
+ ${MV} ${WRKSRC}/spanish ${WRKSRC}/es
+ ${MV} ${WRKSRC}/hungarian ${WRKSRC}/hu
+ ${MV} ${WRKSRC}/breton ${WRKSRC}/br
+ ${MV} ${WRKSRC}/french ${WRKSRC}/fr
+ ${MV} ${WRKSRC}/czech ${WRKSRC}/cs
+ ${MV} ${WRKSRC}/russian ${WRKSRC}/ru
+ ${MV} ${WRKSRC}/ukrainian ${WRKSRC}/uk
+ ${MV} ${WRKSRC}/slovene ${WRKSRC}/sl
+ ${MV} ${WRKSRC}/indonesian ${WRKSRC}/id
+ ${MV} ${WRKSRC}/danish ${WRKSRC}/da
+
+pre-configure:
+ ${LN} -sf ./en/month.xpm ${WRKSRC}/month.xpm
+ ${LN} -sf ./en/weekday.xpm ${WRKSRC}/weekday.xpm
+ ${LN} -sf ./xpm/color.xpm ${WRKSRC}/clk.xpm
+
+do-install:
+ ${SED} -e "s,@PREFIX@,${PREFIX},g" \
+ ${FILESDIR}/asclock.sh > ${WRKDIR}/asclock.sh
+ ${INSTALL_SCRIPT} ${WRKDIR}/asclock.sh ${PREFIX}/bin/asclock
+ ${INSTALL_PROGRAM} ${WRKSRC}/asclock ${PREFIX}/libexec/asclock-classic
+ ${INSTALL_DATA} ${WRKSRC}/asclock.0 ${PREFIX}/man/cat1/asclock.0
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/asclock-classic
+ ${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC}
+.for LANGUAGE in ${LANGUAGES}
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/asclock-classic/${LANGUAGE}
+ cd ${WRKSRC}/${LANGUAGE}; ${INSTALL_DATA} month.xpm weekday.xpm \
+ ${PREFIX}/share/asclock-classic/${LANGUAGE}
+ @${ECHO} share/asclock-classic/${LANGUAGE}/month.xpm >> ${PLIST_SRC}
+ @${ECHO} share/asclock-classic/${LANGUAGE}/weekday.xpm >> ${PLIST_SRC}
+ @${ECHO} @dirrm share/asclock-classic/${LANGUAGE} >> ${PLIST_SRC}
+.endfor
+ @${ECHO} @dirrm share/asclock-classic >> ${PLIST_SRC}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/time/asclock/files/asclock.sh b/time/asclock/files/asclock.sh
new file mode 100644
index 00000000000..1dbc582461f
--- /dev/null
+++ b/time/asclock/files/asclock.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# $NetBSD: asclock.sh,v 1.1.1.1 2000/12/17 23:32:12 wiz Exp $
+
+args=''
+while [ $# -gt 0 ]
+do
+ case $1 in
+ -lang)
+ LANG=$2; shift
+ if [ -z "${LANG}" ]
+ then
+ echo "asclock: -lang needs a language option"
+ quit 1
+ fi
+ ;;
+ *)
+ args="${args} $1"
+ ;;
+ esac
+ shift
+done
+
+ASCLOCKDIR=@PREFIX@/share/asclock-classic
+
+# default to American English
+if [ -z "${LANG}" -o ! -d ${ASCLOCKDIR}/${LANG} ]
+then
+ LANG=en
+fi
+
+monthxpm=${ASCLOCKDIR}/${LANG}/month.xpm
+weekdayxpm=${ASCLOCKDIR}/${LANG}/weekday.xpm
+
+args="${args} -monthxpm ${monthxpm} -weekdayxpm ${weekdayxpm}"
+exec @PREFIX@/libexec/asclock-classic ${args}
diff --git a/time/asclock/files/md5 b/time/asclock/files/md5
new file mode 100644
index 00000000000..1ee542a0699
--- /dev/null
+++ b/time/asclock/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/12/17 23:32:12 wiz Exp $
+
+MD5 (asclock-classic-1.0.tar.gz) = fc7f280e77b2646a02fd0dd42ac31ceb
diff --git a/time/asclock/files/patch-sum b/time/asclock/files/patch-sum
new file mode 100644
index 00000000000..ee50d1d3ec2
--- /dev/null
+++ b/time/asclock/files/patch-sum
@@ -0,0 +1,5 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/12/17 23:32:12 wiz Exp $
+
+MD5 (patch-aa) = ddddd4ce995df7f14094cb6641e62677
+MD5 (patch-ab) = 9ec1fd6bcf07ca38c5bc80ce67231955
+MD5 (patch-ac) = 33ddc79bc6880a2d46513816e7493ab8
diff --git a/time/asclock/patches/patch-aa b/time/asclock/patches/patch-aa
new file mode 100644
index 00000000000..72a66c158af
--- /dev/null
+++ b/time/asclock/patches/patch-aa
@@ -0,0 +1,11 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/12/17 23:32:12 wiz Exp $
+
+--- Imakefile.orig Wed Sep 16 11:56:00 1998
++++ Imakefile Thu Oct 28 13:11:11 1999
+@@ -1,5 +1,5 @@
+
+-XPMLIB = -L/usr/lib/X11 -lXpm
++XPMLIB = -Wl,-R${X11BASE}/lib -L${X11BASE}/lib -lXpm
+ DEPLIBS = $(DEPXLIB)
+
+ LOCAL_LIBRARIES = $(XPMLIB) $(XLIB)
diff --git a/time/asclock/patches/patch-ab b/time/asclock/patches/patch-ab
new file mode 100644
index 00000000000..ade79206969
--- /dev/null
+++ b/time/asclock/patches/patch-ab
@@ -0,0 +1,60 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/12/17 23:32:13 wiz Exp $
+
+--- asclock.c.orig Sat Sep 26 17:05:03 1998
++++ asclock.c Thu Oct 28 13:12:29 1999
+@@ -19,6 +19,7 @@
+ int ONLYSHAPE=0; /* default value is noshape */
+ int ITBLINKS=1; /* default is blinking */
+ int ICONIFIED=0; /* default is not iconified */
++int ITDOCKS=0; /* default is not Docking mode */
+ int YEAR=0; /* default is to show time, not year */
+ /* led positions *************************************************************/
+ int twelve[5] = {5, 14, 24, 28, 37};
+@@ -85,14 +86,15 @@
+ " -24 24 hour format",
+ " -exe <program> program to start on click",
+ " -led <color> color of the led",
+-" -monthxpm <xpm> month xpm",
+ " -clockxpm <xpm> clock xpm",
++" -monthxpm <xpm> month xpm",
+ " -weekdayxpm <xpm> weekday xpm",
++" -year show year instead of time",
+ " -position [+|-]x[+|-]y position of asclock",
+ " -shape without groundplate",
+ " -noblink don't blink",
+ " -iconic start up as icon",
+-" -year show year instead of time",
++" -dock Window Maker docking",
+ NULL
+ };
+
+@@ -173,6 +175,9 @@
+ case 'n':
+ ITBLINKS = 0;
+ continue;
++ case 'd':
++ ITDOCKS = 1;
++ continue;
+ case 'y':
+ YEAR = 1;
+ continue;
+@@ -256,13 +261,17 @@
+ XShapeCombineMask(dpy, iconwin, ShapeBounding, 0, 0, pixmask, ShapeSet);
+ }
+
+- mywmhints.initial_state = (ICONIFIED ? IconicState : NormalState);
++ mywmhints.initial_state = ITDOCKS ? WithdrawnState :
++ (ICONIFIED ? IconicState : NormalState);
+ mywmhints.icon_window = iconwin;
+ mywmhints.icon_x = mysizehints.x;
+ mywmhints.icon_y = mysizehints.y;
+- mywmhints.flags = StateHint | IconWindowHint | IconPositionHint;
++ mywmhints.window_group = win;
++ mywmhints.flags = StateHint | IconWindowHint | IconPositionHint
++ | WindowGroupHint;
+ XSetWMHints(dpy, win, &mywmhints);
+
++ XSetCommand(dpy, win, argv, argc);
+ XMapWindow(dpy,win);
+
+ InsertTime();
diff --git a/time/asclock/patches/patch-ac b/time/asclock/patches/patch-ac
new file mode 100644
index 00000000000..e91ee511507
--- /dev/null
+++ b/time/asclock/patches/patch-ac
@@ -0,0 +1,95 @@
+$NetBSD: patch-ac,v 1.1.1.1 2000/12/17 23:32:13 wiz Exp $
+
+--- asclock.man.orig Wed Sep 16 11:56:00 1998
++++ asclock.man Thu Oct 28 13:14:36 1999
+@@ -1,14 +1,18 @@
+-.TH asclock 0.99 "23 July 1996" asclock
++.TH asclock 1.0 "11 April 1998" asclock
+ .UC
+ .SH NAME
+ \fBasclock\fP \- the AfterStep clock
+ .SH SYNOPSIS
+ .B asclock
+-[ -help] [-12 | -24] [-shape]
+- [-position \fI[+|-]x[+|-]y\fP]
++[ -help] [-12 | -24] [-shape]
+ [-exe \fIprogram\fP]
+ [-led \fIcolor\fP]
+- [-noblink] [-iconic]
++ [-clockxpm \fIxpm\fP]
++ [-monthxpm \fIxpm\fP]
++ [-weekdayxpm \fIxpm\fP]
++ [-year]
++ [-position \fI[+|-]x[+|-]y\fP]
++ [-noblink] [-iconic] [-dock]
+ .SH DESCRIPTION
+ The \fBasclock\fP is a clock written to emulate the date/time application on
+ the NEXTSTEP(tm) operating system. \fBasclock\fP supports multiple languages,
+@@ -23,12 +27,17 @@
+ where options include:
+ -12 12 hour format
+ -24 24 hour format
++ -shape without groundplate
+ -exe <program> program to start on click
+ -led <color> color of the led
++ -clockxpm <xpm> clock xpm
++ -monthxpm <xpm> month xpm
++ -weekdayxpm <xpm> weekday xpm
++ -year show year instead of time
+ -position [+|-]x[+|-]y position of asclock
+- -shape without groundplate
+ -noblink don't blink
+ -iconic start up as icon
++ -dock Window Maker docking
+ .fi
+ .RE
+ .IP "-12 or -24"
+@@ -50,6 +59,22 @@
+ .I showrgb
+ .P (part of X11).
+ .RE
++.IP "-monthxpm <xpm>"
++.RS
++specifies the XPM file for the month pages.
++.RE
++.IP "-clockxpm <xpm>"
++.RS
++specifies the XPM file for the clock and calendar display.
++.RE
++.IP "-weekdayxpm <xpm>"
++.RS
++specifies the XPM file for the weekday pages.
++.RE
++.IP "-year"
++.RS
++shows the current the year in the display instead of the current time.
++.RE
+ .IP "-position [+|-]x[+|-]y "
+ .RS
+ specifies the starting position of \fBasclock\fP. The [+|-] works like the standard X-Windows x/y geometry option.
+@@ -66,6 +91,10 @@
+ .RS
+ This gives weird output with AfterStep, so don't bother. It's for mwm and other wm's with no hint functionality.
+ .RE
++.IP "-dock"
++.RS
++starts \fBasclock\fP in docking mode. This option is necessary to dock \fBasclock\fP in the Window Maker dock. \fBasclock\fP ignores the -iconic option when started in docking mode.
++.RE
+ .SH INVOCATION
+ \fBasclock\fP can be called from one of many ways. The most common invocation
+ is the command line:
+@@ -86,6 +115,14 @@
+ will cause \fBasclock\fP to use the shape extensions so that it will be a
+ button on the \fBWharf (1)\fP button bar under the \fBafterstep (1)\fP
+ window manager.
++
++If you run Window Maker then you should use the "-dock" option:
++.nf
++
++ [user@host] ~% asclock -shape -12 -dock &
++
++.fi
++and then drag the icon to the dock.
+ .SH BUGS
+ we don't have bugs :)
+ .SH COPYRIGHTS
diff --git a/time/asclock/pkg/COMMENT b/time/asclock/pkg/COMMENT
new file mode 100644
index 00000000000..32be2f50fbb
--- /dev/null
+++ b/time/asclock/pkg/COMMENT
@@ -0,0 +1 @@
+NeXTstep-like clock and calendar
diff --git a/time/asclock/pkg/DESCR b/time/asclock/pkg/DESCR
new file mode 100644
index 00000000000..be0fa06cbda
--- /dev/null
+++ b/time/asclock/pkg/DESCR
@@ -0,0 +1,4 @@
+The asclock is a clock written to emulate the date/time application on
+the NEXTSTEP(tm) operating system. asclock supports multiple
+languages, military and AM/PM time formats, program execution, and the
+shape extension to X-Windows.
diff --git a/time/asclock/pkg/PLIST b/time/asclock/pkg/PLIST
new file mode 100644
index 00000000000..7c0f53399f3
--- /dev/null
+++ b/time/asclock/pkg/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/12/17 23:32:13 wiz Exp $
+bin/asclock
+libexec/asclock-classic
+man/cat1/asclock.0