summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom William Payne <twp@gentoo.org>2006-01-15 17:53:36 +0000
committerTom William Payne <twp@gentoo.org>2006-01-15 17:53:36 +0000
commitfd31536783484d1b92b491181dc60be82b2ae03c (patch)
tree8085fad45734adbbf31cbb49ec851b13027ac20d /x11-misc/remind/files
parentAdded IUSE var to ebuilds, no changes (diff)
downloadgentoo-2-fd31536783484d1b92b491181dc60be82b2ae03c.tar.gz
gentoo-2-fd31536783484d1b92b491181dc60be82b2ae03c.tar.bz2
gentoo-2-fd31536783484d1b92b491181dc60be82b2ae03c.zip
Version bump. Bug # 119083.
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'x11-misc/remind/files')
-rw-r--r--x11-misc/remind/files/03.00.24/01-optional-filename.patch100
-rw-r--r--x11-misc/remind/files/03.00.24/03-broken-postscript.patch11
-rw-r--r--x11-misc/remind/files/03.00.24/03-tkremind-no-newlines.patch23
-rw-r--r--x11-misc/remind/files/03.00.24/04-rem-cmd.patch12
-rw-r--r--x11-misc/remind/files/digest-remind-03.00.241
5 files changed, 147 insertions, 0 deletions
diff --git a/x11-misc/remind/files/03.00.24/01-optional-filename.patch b/x11-misc/remind/files/03.00.24/01-optional-filename.patch
new file mode 100644
index 000000000000..84a64a817f8b
--- /dev/null
+++ b/x11-misc/remind/files/03.00.24/01-optional-filename.patch
@@ -0,0 +1,100 @@
+diff -Naur remind-03.00.24/man/remind.1 remind/man/remind.1
+--- remind-03.00.24/man/remind.1 2005-09-30 05:33:53.000000000 +0200
++++ remind/man/remind.1 2006-01-15 15:40:42.000000000 +0100
+@@ -4,7 +4,7 @@
+ .SH NAME
+ remind \- a sophisticated reminder service
+ .SH SYNOPSIS
+-.B remind [\fIoptions\fR] \fIfilename\fR [\fIdate\fR] [\fI*rep\fR] [\fItime\fR]
++.B remind [\fIoptions\fR] [\fIfilename\fR [\fIdate\fR] [\fI*rep\fR] [\fItime\fR] ]
+ .SH DESCRIPTION
+ \fBRemind\fR reads the supplied \fIfilename\fR and executes the commands
+ found in it. The commands are used to issue reminders and alarms. Each
+@@ -13,7 +13,9 @@
+ .PP
+ If \fIfilename\fR is specified as a single dash '-', then \fBRemind\fR
+ takes its input from standard input. This also implicitly enables
+-the \fB\-o\fR option, described below.
++the \fB\-o\fR option, described below. If no filename is given, remind uses
++\fI~/.reminders\fR or the content of the DOT_REMINDERS environment
++variable.
+ .SH OPTIONS
+ \fBRemind\fR has a slew of options. If you're new to the program,
+ ignore them for now and skip to the section "Reminder Files".
+diff -Naur remind-03.00.24/src/init.c remind/src/init.c
+--- remind-03.00.24/src/init.c 2005-09-30 05:29:32.000000000 +0200
++++ remind/src/init.c 2006-01-15 15:40:42.000000000 +0100
+@@ -32,6 +32,8 @@
+ #include "version.h"
+ #include "globals.h"
+
++#define DOT_REMINDERS ".reminders"
++
+ /***************************************************************
+ *
+ * Command line options recognized:
+@@ -87,6 +89,30 @@
+
+ /***************************************************************/
+ /* */
++/* DefaultReminders */
++/* */
++/* Detect a default reminder file */
++/* */
++/***************************************************************/
++
++char* DefaultReminders()
++{
++ char *dot_reminders;
++ char *home;
++ size_t len;
++ if((dot_reminders=getenv("DOT_REMINDERS")))
++ return dot_reminders;
++ else if((home=getenv("HOME"))) {
++ len = strlen(home) + strlen(DOT_REMINDERS) + 2;
++ dot_reminders = (char*)malloc(len);
++ snprintf(dot_reminders, len, "%s/%s", home, DOT_REMINDERS);
++ return dot_reminders;
++ }
++ else return DOT_REMINDERS;
++}
++
++/***************************************************************/
++/* */
+ /* InitRemind */
+ /* */
+ /* Initialize the system - called only once at beginning! */
+@@ -348,11 +374,8 @@
+ }
+
+ /* Get the filename. */
+- if (i >= argc) {
+- Usage();
+- exit(1);
+- }
+- InitialFile = argv[i++];
++ if (i >= argc) InitialFile = DefaultReminders();
++ else InitialFile = argv[i++];
+
+ /* Get the date, if any */
+ if (i < argc) {
+@@ -448,7 +471,7 @@
+ #ifdef BETA
+ fprintf(ErrFp, ">>>> BETA VERSION <<<<\n");
+ #endif
+- fprintf(ErrFp, "Usage: remind [options] filename [date] [time] [*rep]\n");
++ fprintf(ErrFp, "Usage: remind [options] [filename [date] [time] [*rep] ]\n");
+ fprintf(ErrFp, "Options:\n");
+ fprintf(ErrFp, " -n Output next occurrence of reminders in simple format\n");
+ fprintf(ErrFp, " -r Disable RUN directives\n");
+diff -Naur remind-03.00.24/src/protos.h remind/src/protos.h
+--- remind-03.00.24/src/protos.h 2005-09-30 05:29:32.000000000 +0200
++++ remind/src/protos.h 2006-01-15 15:42:11.000000000 +0100
+@@ -45,6 +45,7 @@
+ int SetAccessDate (char *fname, int jul);
+ int TopLevel (void);
+ int CallFunc (Operator *f, int nargs);
++char *DefaultReminders (void);
+ void InitRemind (int argc, char *argv[]);
+ void Usage (void);
+ int main (int argc, char *argv[]);
diff --git a/x11-misc/remind/files/03.00.24/03-broken-postscript.patch b/x11-misc/remind/files/03.00.24/03-broken-postscript.patch
new file mode 100644
index 000000000000..aa44549aca9b
--- /dev/null
+++ b/x11-misc/remind/files/03.00.24/03-broken-postscript.patch
@@ -0,0 +1,11 @@
+diff -Naur remind-03.00.24/src/rem2ps.c remind/src/rem2ps.c
+--- remind-03.00.24/src/rem2ps.c 2005-09-30 05:29:32.000000000 +0200
++++ remind/src/rem2ps.c 2006-01-15 15:48:26.000000000 +0100
+@@ -601,7 +601,6 @@
+ PutChar(')');
+ while(isspace((unsigned char)*s)) s++;
+ if (!*s) {
+- printf("]\n");
+ goto finish;
+ }
+ PutChar('(');
diff --git a/x11-misc/remind/files/03.00.24/03-tkremind-no-newlines.patch b/x11-misc/remind/files/03.00.24/03-tkremind-no-newlines.patch
new file mode 100644
index 000000000000..6ae9e51172a5
--- /dev/null
+++ b/x11-misc/remind/files/03.00.24/03-tkremind-no-newlines.patch
@@ -0,0 +1,23 @@
+diff -Naur remind-03.00.24/scripts/tkremind remind/scripts/tkremind
+--- remind-03.00.24/scripts/tkremind 2005-04-14 19:34:34.000000000 +0200
++++ remind/scripts/tkremind 2006-01-15 15:50:55.000000000 +0100
+@@ -1240,7 +1240,8 @@
+ lappend ans "-global-$winstem" [eval set $winstem]
+ }
+ "Entry" {
+- lappend ans "-entry-$winstem" [$win get]
++ # Do not put newlines in the reminder files
++ lappend ans "-entry-$winstem" [string map -nocase {"\n" " "} [$win get]]
+ }
+ }
+ }
+@@ -1519,7 +1520,8 @@
+ regsub -- {^-stdin-\([0-9]*\): } $err {} err
+ error "Error from Remind: $err"
+ }
+- append rem " MSG $body"
++ # Do not include newline characters after MSG
++ append rem " MSG " [string map -nocase {"\n" " "} $body]
+ return $rem
+ }
+
diff --git a/x11-misc/remind/files/03.00.24/04-rem-cmd.patch b/x11-misc/remind/files/03.00.24/04-rem-cmd.patch
new file mode 100644
index 000000000000..475f06da4e38
--- /dev/null
+++ b/x11-misc/remind/files/03.00.24/04-rem-cmd.patch
@@ -0,0 +1,12 @@
+diff -Naur remind-03.00.24/src/dorem.c remind/src/dorem.c
+--- remind-03.00.24/src/dorem.c 2005-11-20 02:26:59.000000000 +0100
++++ remind/src/dorem.c 2006-01-15 15:55:28.000000000 +0100
+@@ -880,7 +880,7 @@
+ }
+ }
+ }
+- if (l >= 0 && DBufPutc(&execBuffer, cmd[l]) != OK) {
++ if (l!=(i-1) && l >= 0 && DBufPutc(&execBuffer, cmd[l]) != OK) {
+ r = E_NO_MEM;
+ goto finished;
+ }
diff --git a/x11-misc/remind/files/digest-remind-03.00.24 b/x11-misc/remind/files/digest-remind-03.00.24
new file mode 100644
index 000000000000..7bfb8a38a2cd
--- /dev/null
+++ b/x11-misc/remind/files/digest-remind-03.00.24
@@ -0,0 +1 @@
+MD5 41258b5d1058cc6938ebd6279706ac48 remind-03.00.24.tar.gz 303964