aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1996-07-10 18:25:14 +0800
committerasami <asami@FreeBSD.org>1996-07-10 18:25:14 +0800
commit00025e91ab18bdaa671ed5d147c872b7b5aaf5c6 (patch)
tree58f27df7c305abfe99cbde3687d063a02441071a /deskutils
parent678398bb977db18a8c6846d3f7c9925df5a1e7c6 (diff)
downloadfreebsd-ports-gnome-00025e91ab18bdaa671ed5d147c872b7b5aaf5c6.tar.gz
freebsd-ports-gnome-00025e91ab18bdaa671ed5d147c872b7b5aaf5c6.tar.zst
freebsd-ports-gnome-00025e91ab18bdaa671ed5d147c872b7b5aaf5c6.zip
Colar enhancement to cal.
Submitted by: Andrey Zakhvatov <andy@cgu.chel.su>
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/cal/Makefile30
-rw-r--r--deskutils/cal/distinfo1
-rw-r--r--deskutils/cal/files/patch-aa16
-rw-r--r--deskutils/cal/files/patch-ab29
-rw-r--r--deskutils/cal/pkg-comment1
-rw-r--r--deskutils/cal/pkg-descr38
-rw-r--r--deskutils/cal/pkg-plist4
7 files changed, 119 insertions, 0 deletions
diff --git a/deskutils/cal/Makefile b/deskutils/cal/Makefile
new file mode 100644
index 000000000000..5b9dc31f61b8
--- /dev/null
+++ b/deskutils/cal/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: cal
+# Version required: 3.4
+# Date created: 6 July 1996
+# Whom: Andrey Zakhvatov <andy@cgu.chel.su>
+#
+# $Id$
+#
+
+DISTNAME= cal-3.4
+CATEGORIES+= misc
+MASTER_SITES= ftp://sunsite.unc.edu/pub/Linux/utils/shell/
+MAINTAINER= andy@cgu.chel.su
+
+WRKSRC= ${WRKDIR}/cal34/source
+ALL_TARGET= cal
+
+pre-patch:
+ @ mv ${WRKSRC}/makefile.unx ${WRKSRC}/Makefile
+
+do-install:
+ @ install -g bin -m 0111 -o bin ${WRKSRC}/cal ${PREFIX}/bin/cal
+ @ install -g bin -m 0644 -o bin ${WRKSRC}/cal.1 ${PREFIX}/man/man1/cal.1
+.if !defined{NOMANCOMPRESS}
+ @ gzip -9nf ${PREFIX}/man/man1/cal.1
+.endif
+ @ if [ ! -d ${PREFIX}/etc/cal ]; then mkdir ${PREFIX}/etc/cal; chmod 0755 ${PREFIX}/etc/cal; fi
+ @ if [ ! -f ${PREFIX}/etc/cal/calcol ]; then install -g bin -m 0444 -o bin ${WRKDIR}/cal34/cal.col ${PREFIX}/etc/cal/calcol; fi
+ @ if [ ! -f ${PREFIX}/etc/cal/caldat ]; then install -g bin -m 0444 -o bin ${WRKDIR}/cal34/cal.dat ${PREFIX}/etc/cal/caldat; fi
+
+.include <bsd.port.mk>
diff --git a/deskutils/cal/distinfo b/deskutils/cal/distinfo
new file mode 100644
index 000000000000..91b5a358d064
--- /dev/null
+++ b/deskutils/cal/distinfo
@@ -0,0 +1 @@
+MD5 (cal-3.4.tar.gz) = 699c45fd22917dcd32578206b1f8e38c
diff --git a/deskutils/cal/files/patch-aa b/deskutils/cal/files/patch-aa
new file mode 100644
index 000000000000..86a9da909e50
--- /dev/null
+++ b/deskutils/cal/files/patch-aa
@@ -0,0 +1,16 @@
+*** Makefile Thu Dec 28 05:29:16 1995
+--- /home/andy/ports/cal/src/source/Makefile Thu Jun 13 23:33:23 1996
+***************
+*** 7,13 ****
+--- 7,17 ----
+ # To use, enter "make -f makefile.unx"
+
+ CC=gcc
++ .ifdef PREFIX
++ CFLAGS+=-DUNIX -DPREFIX="\"${PREFIX}\""
++ .else
+ CFLAGS=-DUNIX
++ .endif
+
+ default: cal
+
diff --git a/deskutils/cal/files/patch-ab b/deskutils/cal/files/patch-ab
new file mode 100644
index 000000000000..200d34f582b6
--- /dev/null
+++ b/deskutils/cal/files/patch-ab
@@ -0,0 +1,29 @@
+*** cal.c Thu Dec 28 05:43:12 1995
+--- /home/andy/ports/cal/src/source/cal.c Sat Jun 22 15:47:26 1996
+***************
+*** 128,133 ****
+--- 128,137 ----
+ #define stricmp(a,b) strcasecmp(a,b) /* case-insensitive string comparison */
+ #endif
+
++ #ifdef __FreeBSD__ /* Make FreeBSD compatible with stricmp() */
++ #define stricmp(a,b) strcasecmp(a,b) /* case-insensitive string comparison */
++ #endif
++
+ #ifdef __ZTC__ /* make Zortech compatible with stricmp() */
+ #define stricmp(a,b) strcmpl(a,b) /* case-insensitive string comparison */
+ #endif /* __ZTC__ */
+***************
+*** 1090,1096 ****
+--- 1094,1104 ----
+ strcpy(str, file);
+ if ((fp = fopen(str, mode)) == NULL) {
+ /* If still not found then look in a lib directory */
++ #ifdef PREFIX
++ strcpy(str, PREFIX "/etc/cal/");
++ #else
+ strcpy(str, "/usr/lib/");
++ #endif
+ strcat(str,file);
+ fp = fopen(str, mode);
+ }
diff --git a/deskutils/cal/pkg-comment b/deskutils/cal/pkg-comment
new file mode 100644
index 000000000000..a09124a2daa9
--- /dev/null
+++ b/deskutils/cal/pkg-comment
@@ -0,0 +1 @@
+Enhanced color version of standard calendar utility
diff --git a/deskutils/cal/pkg-descr b/deskutils/cal/pkg-descr
new file mode 100644
index 000000000000..7df81b92dffc
--- /dev/null
+++ b/deskutils/cal/pkg-descr
@@ -0,0 +1,38 @@
+CAL is a nicely-enhanced version of the unix `cal' command.
+Features:
+
+ * Hilights today's date when displaying a monthly calendar.
+
+ * Displays an optional user-definable list of `special day'
+ descriptions (like appointments) to the right of the monthly
+ calendar display. Cal can be set optionally to ignore appointments
+ older than the current day. Next month's appointments are shown if
+ there is room to do so. Multiple appointment data files may also
+ be specified on the commandline.
+
+ * You can specify your own appointment and color definition files on the
+ commandline, or use the defaults.
+
+ * Date descriptions can display "years since" a given year, useful for
+ birthdays and anniversaries.
+
+ * Completely configurable colors -- eight separate color attributes.
+
+ * No ANSI driver needed for colors, and the output may be redirected
+ anywhere, just like the unix version. However, ANSI color control may
+ be enabled (e.g. for unix) with a #define in the source code.
+
+ * Commandline-compatible with unix `cal' command, but with several
+ enhanced switch settings.
+
+Requests, bug reports, suggestions, donations, proposals for
+contract work, and so forth may be sent to:
+
+ Attn: Alex Matulich
+ Unicorn Research Corporation
+ 4621 N. Landmark Drive
+ Orlando, FL 32817-1235
+ USA
+ 407-657-4974 FAX 407-657-6149
+
+or send e-mail to matulich_a@seaa.navsea.navy.mil.
diff --git a/deskutils/cal/pkg-plist b/deskutils/cal/pkg-plist
new file mode 100644
index 000000000000..e8345df9f607
--- /dev/null
+++ b/deskutils/cal/pkg-plist
@@ -0,0 +1,4 @@
+bin/cal
+etc/cal/calcol
+etc/cal/caldat
+man/man1/cal.1.gz