summaryrefslogtreecommitdiff
path: root/x11/titrax
diff options
context:
space:
mode:
authorhwr <hwr@pkgsrc.org>1998-12-08 14:11:00 +0000
committerhwr <hwr@pkgsrc.org>1998-12-08 14:11:00 +0000
commit0e86e0c6f070822711f1686b3bacd9ae732542be (patch)
tree4a5cb7369a39689219ed41e32537c98bf6c2e0a6 /x11/titrax
parentc19d395f03b3687c4236a3cc317ff4843b5139dc (diff)
downloadpkgsrc-0e86e0c6f070822711f1686b3bacd9ae732542be.tar.gz
Little X11 tool to track project times.
Thanks to Thorsten Frueauf <frueauf@netbsd.org> for the help in the package creation process.
Diffstat (limited to 'x11/titrax')
-rw-r--r--x11/titrax/Makefile23
-rw-r--r--x11/titrax/files/md53
-rw-r--r--x11/titrax/patches/patch-aa64
-rw-r--r--x11/titrax/patches/patch-ab17
-rw-r--r--x11/titrax/pkg/COMMENT1
-rw-r--r--x11/titrax/pkg/DESCR5
-rw-r--r--x11/titrax/pkg/PLIST9
7 files changed, 122 insertions, 0 deletions
diff --git a/x11/titrax/Makefile b/x11/titrax/Makefile
new file mode 100644
index 00000000000..7e389b6054b
--- /dev/null
+++ b/x11/titrax/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 1998/12/08 14:11:00 hwr Exp $
+#
+
+DISTNAME= titrax-1.98
+CATEGORIES= x11
+MASTER_SITES= ${MASTER_SITE_XCONTRIB}
+MASTER_SITE_SUBDIR= office
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.alvestrand.no/domen/titrax/TimeTracker.html
+
+USE_IMAKE= yes
+USE_PERL5= yes
+
+post-patch:
+ ${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.bak
+ ${SED} -e 's|@LOCALBASE@|${LOCALBASE}|g' -e 's|@X11BASE@|${X11BASE}|g' \
+ < ${WRKSRC}/Imakefile.bak > ${WRKSRC}/Imakefile
+
+pre-install:
+ ${MKDIR} ${X11BASE}/libexec/titrax
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/titrax/files/md5 b/x11/titrax/files/md5
new file mode 100644
index 00000000000..7ea586d8db9
--- /dev/null
+++ b/x11/titrax/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 1998/12/08 14:11:01 hwr Exp $
+
+MD5 (titrax-1.98.tar.gz) = 6c6e98ef8b9585f42d70f9838755eaf7
diff --git a/x11/titrax/patches/patch-aa b/x11/titrax/patches/patch-aa
new file mode 100644
index 00000000000..f3faf13e078
--- /dev/null
+++ b/x11/titrax/patches/patch-aa
@@ -0,0 +1,64 @@
+$NetBSD: patch-aa,v 1.1.1.1 1998/12/08 14:11:01 hwr Exp $
+
+--- Imakefile.orig Tue Oct 17 14:44:48 1995
++++ Imakefile Tue Dec 8 12:16:34 1998
+@@ -1,10 +1,10 @@
+ # Installation options
+ #=====================
+ # The place where you install local programs (not X)
+-NONXBINDIR = /local/bin
++NONXBINDIR = @LOCALBASE@/bin
+ #
+ # PERLLIBDIR should be the output from perl -e 'print "@INC[0]\n"'
+-PERLLIBDIR = /usr/lib/perl
++PERLLIBDIR = @X11BASE@/libexec/titrax
+ # PERL - where your Perl executable is located (is in sumtitrax)
+ PERL = $(NONXBINDIR)/perl
+ #
+@@ -12,7 +12,7 @@
+ # XAWLIB = -lXaw3d
+ #
+ # If you want to stop UDP packets to the author, uncomment this
+-# CDEBUGFLAGS = -DDO_NOT_TELL_ABOUT_ME
++CDEBUGFLAGS = -DDO_NOT_TELL_ABOUT_ME
+ #
+ # If you have problems with undefined variables, you may have
+ # hit the linker bug with SunOS 4.1.2 and X11R4; uncomment this line
+@@ -44,13 +44,13 @@
+ # functions that are declared, but not used
+ LINTOPTS = -az
+
+-all:: titrax sumtitra titrat
++all:: titrax sumtitra titrat weekno.perl
+ depend:: Titrax_ad.h
+
+ ComplexProgramTarget(titrax)
+ InstallAppDefaults(Titrax)
+-InstallProgram(sumtitra,$(NONXBINDIR))
+-InstallProgram(titrat,$(NONXBINDIR))
++InstallNamedProg(sumtitra,sumtitra,$(BINDIR))
++InstallNamedProg(titrat,titrat,$(BINDIR))
+ InstallManPage(sumtitra,$(MANDIR))
+ InstallNonExec(weekno.perl,$(PERLLIBDIR))
+
+@@ -61,7 +61,7 @@
+ # Modifying PERL scripts - technique courtesy of Lindsay (of Zircon fame)
+ sumtitra: Makefile
+ mv sumtitra sumtitra.tmp
+- echo '#!$(PERL)' > sumtitra
++ echo '#!$(PERL) -I$(PERLLIBDIR)' > sumtitra
+ tail +2 sumtitra.tmp >> sumtitra
+ rm sumtitra.tmp
+ titrat: Makefile
+@@ -69,6 +69,11 @@
+ echo '#!$(PERL)' > titrat
+ tail +2 titrat.tmp >> titrat
+ rm titrat.tmp
++weekno.perl: Makefile
++ mv weekno.perl weekno.perl.tmp
++ echo '#!$(PERL)' > weekno.perl
++ tail +2 weekno.perl.tmp >> weekno.perl
++ rm weekno.perl.tmp
+
+ #------------------------------------------------------------------
+ # Everything below this line should be only for release and debugging,
diff --git a/x11/titrax/patches/patch-ab b/x11/titrax/patches/patch-ab
new file mode 100644
index 00000000000..0ae0f8acb21
--- /dev/null
+++ b/x11/titrax/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1.1.1 1998/12/08 14:11:01 hwr Exp $
+
+--- titrat.orig Tue Oct 17 14:44:49 1995
++++ titrat Tue Dec 8 13:48:48 1998
+@@ -7,9 +7,9 @@
+ require 'ctime.pl';
+ # If you cannot find errno.ph, just uncomment the following line, if
+ # EEXIST is 17 in your /usr/include/sys/errno.h file.
+-# eval 'sub EEXIST {17;}';
++eval 'sub EEXIST {17;}';
+
+-require 'errno.ph';
++# require 'errno.ph';
+
+ $SIG{'HUP'} = 'signal';
+ $SIG{'INT'} = 'signal';
+
diff --git a/x11/titrax/pkg/COMMENT b/x11/titrax/pkg/COMMENT
new file mode 100644
index 00000000000..794240974fe
--- /dev/null
+++ b/x11/titrax/pkg/COMMENT
@@ -0,0 +1 @@
+Little X11 tool to track project times.
diff --git a/x11/titrax/pkg/DESCR b/x11/titrax/pkg/DESCR
new file mode 100644
index 00000000000..9573535e130
--- /dev/null
+++ b/x11/titrax/pkg/DESCR
@@ -0,0 +1,5 @@
+TimeTracker is an Athena Widget-based program to keep track of time.
+It puts up a list of projects, and the number of minutes worked on each.
+You click on the project you want to work on, and it starts counting on that.
+At the end of the day, it saves the collected data in a file, and you can
+use a script to process the data. "sumtitra" is one possible such script.
diff --git a/x11/titrax/pkg/PLIST b/x11/titrax/pkg/PLIST
new file mode 100644
index 00000000000..d9e27cbf94e
--- /dev/null
+++ b/x11/titrax/pkg/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 1998/12/08 14:11:01 hwr Exp $
+bin/sumtitra
+bin/titrax
+bin/titrat
+lib/X11/app-defaults/Titrax
+libexec/titrax/weekno.perl
+man/cat1/sumtitra.0
+man/cat1/titrax.0
+@dirrm libexec/titrax