tkman port

This commit is contained in:
angelos 1998-05-20 08:12:40 +00:00
parent fbf7a86936
commit 3614c6b48f
6 changed files with 143 additions and 0 deletions

26
misc/tkman/Makefile Normal file
View File

@ -0,0 +1,26 @@
# OpenBSD makefile for: tkman
# Version required: 2.0.6
# Date created: May 20 1998
# Whom: Angelos D. Keromytis
#
# $OpenBSD: Makefile,v 1.1.1.1 1998/05/20 08:12:40 angelos Exp $
#
DISTNAME= tkman-2.0.6
CATEGORIES= misc tk80
MASTER_SITES= ftp://ftp.cs.berkeley.edu/ucb/people/phelps/tcltk/
EXTRACT_SUFX= .tar.Z
MAINTAINER= angelos@openbsd.org
LIB_DEPENDS= tk80\\.1\\.:${PORTSDIR}/x11/tk80
RUN_DEPENDS= rman:${PORTSDIR}/textproc/rman \
glimpse:${PORTSDIR}/textproc/glimpse
.if !defined(NOPORTDOCS)
post-install:
@${MKDIR} ${PREFIX}/share/doc/tkman
${INSTALL_DATA} ${WRKSRC}/tkman-help.html ${PREFIX}/share/doc/tkman
.endif
.include <bsd.port.mk>

1
misc/tkman/files/md5 Normal file
View File

@ -0,0 +1 @@
MD5 (tkman-2.0.6.tar.Z) = ed9b221357a77c55bc721e56da23032d

View File

@ -0,0 +1,95 @@
--- Makefile.orig Tue Nov 4 22:22:25 1997
+++ Makefile Thu Nov 6 08:54:39 1997
@@ -43,13 +43,13 @@
### you need to localize the paths on these lines
#WISH = /usr/sww/tcl-8.0/bin/wish
-WISH = /private/share/bin/wish
-#WISH = /usr/local/bin/wish8.0
+#WISH = /private/share/bin/wish
+WISH = ${PREFIX}/bin/wish8.0
# the executable `tkman' is placed in BINDIR
# this should be a directory that's in your bin PATH
-BINDIR = /private/share/bin
-#BINDIR = /usr/local/bin
+#BINDIR = /private/share/bin
+BINDIR = ${PREFIX}/bin
# OPTIONAL
@@ -85,10 +85,12 @@
# will examine for matches if a search in the usual locations fails while searching
# for a man pages and displaying its associated binaries (if any).
# Use this feature carefully as a large number of directories can slow down startup.
-mastermen = "/usr/man /usr/local/man"
+#mastermen = "/usr/man /usr/local/man"
#mastermen = "/usr/man /usr/local/man /usr/sww/man /usr/share/man /usr/kerberos/man"
-masterbin = "/usr/bin /usr/local/bin"
+mastermen = "${PREFIX}/man /usr/share/man ${X11BASE}/man"
+#masterbin = "/usr/bin /usr/local/bin"
#masterbin = "/usr/bin /usr/local/bin /usr/sww/bin /usr/sww/share/bin /usr/sww/share/X11R5/bin"
+masterbin = "/usr/bin ${PREFIX}/bin ${X11BASE}/bin"
# names of common printers, in addition to default printer (PRINTER or LPDEST)
@@ -118,11 +120,11 @@
# lines are cached in .../man/cat<n>@<line-length>;
# that is, the line length is appended to the usual cache directory names
#manformat = {groff -te -Tascii -man /tmp/ll - 2>/dev/null}
-manformat = {groff -te -Tlatin1 -man /tmp/ll - 2>/dev/null}
+#manformat = {groff -te -Tlatin1 -man /tmp/ll - 2>/dev/null}
# Ultrix users should uncomment the following line (you don't have eqn)
#manformat = {tbl | nroff -man }
# BSD macros (.Sh, .Ss, .PP, ...) call for -mandoc
-#manformat = {groff -Tascii -te -mandoc}
+manformat = {groff -Tascii -te -mandoc}
# BSDI
#manformat = {tbl | eqn -Tascii | nroff -man }
@@ -156,7 +158,7 @@
# pick a printing pipeline for which your platform has all the constituants
-manprint = {groff -man -Tps -te -l}
+manprint = {groff -mandoc -Tps -te -l}
# alternatives
#manprint = {tbl | eqn | troff -man -t | lpr -t}
#manprint = {tbl | eqn | psroff -man}
@@ -192,7 +194,7 @@
# Check contrib/glimpse4-fix.txt for a bug fix patch for glimpseindex.
# BY DEFAULT ON (Boolean scope set to entire file)
-glimpse = "glimpse -W"
+#glimpse = "glimpse -W"
# IF YOU DON'T WANT TO BOTHER WITH GLIMPSE, you can disable it here
#glimpse = ""
# give the full path, if you'd like
@@ -200,6 +202,7 @@
# variations (refer to the Glimpse manual page)
# no characters treated as meta characters:
#glimpse = "glimpse -Wk"
+glimpse = "glimpse -z"
# glimpseindex indexes the manual pages, for each component of one's MANPATH,
# and places the results in a set of files named .glimpse_* in that MANPATH
@@ -241,7 +244,7 @@
# default MANPATH to use if user doesn't have a MANPATH environment variable set.
# Leave this empty to have TkMan calculate a MANPATH based on a users PATH
# (like Perl man does).
-manpathdef = ""
+manpathdef = /usr/share/man:${PREFIX}/man:/usr/X11R6/man
#manpathdef = /usr/man:/usr/local/man
#manpathdef = /usr/man:/usr/local/man:/usr/sww/man:/usr/sww/X11/man
# for SGI
@@ -440,8 +443,8 @@
chmod +rx $(BINDIR)/tkman
$(CP) retkman $(BINDIR)
chmod +rx $(BINDIR)/retkman
- @echo 'You also need RosettaMan to run TkMan.'
- @echo 'Have you installed the elided text patch to Tk?'
+# @echo 'You also need RosettaMan to run TkMan.'
+# @echo 'Have you installed the elided text patch to Tk?'
test: dox tkman
cp tkman $(BINDIR)

1
misc/tkman/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
A Tcl/Tk based manual browser

16
misc/tkman/pkg/DESCR Normal file
View File

@ -0,0 +1,16 @@
A manual page reader, TkMan offers two major advantages over xman:
hypertext links to other man pages (click on a word in the text which
corresponds to a man page, and you jump there), and better navigation
within long man pages with searches (both incremental and regular
expression) and jumps to section headers. TkMan also offers some
convenience features, like a user-configurable list of commonly used man
pages, a one-click printout, and integration of `whatis' and `apropos'.
Further, one may highlight, as if with a yellow marker, arbitrary passages
of text in man pages and subsequently jump directly to these passages by
selecting an identifying excerpt from a pulldown menu. Finally, TkMan
gives one control over the directory-to-menu volume mapping of man pages
with a capability similar to but superior to xman's mandesc in that rather
than forcing all who share a man directory to follow a single organization,
TkMan gives control to the individual. In fact, one may decide he has no
use for a large set of man pages--say for instance the programmer routines
in volumes 2, 3, 4, 8--and eliminate them from his personal database.

4
misc/tkman/pkg/PLIST Normal file
View File

@ -0,0 +1,4 @@
bin/tkman
bin/retkman
share/doc/tkman/tkman-help.html
@dirrm share/doc/tkman