- Support USE_TK
PR: 161635 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
parent
daf2abbb57
commit
658f97193f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=283798
2 changed files with 17 additions and 16 deletions
|
@ -14,12 +14,13 @@ MASTER_SITES= SF
|
|||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= A Tcl/Tk based manual browser
|
||||
|
||||
LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84
|
||||
RUN_DEPENDS= rman:${PORTSDIR}/textproc/rman \
|
||||
glimpse:${PORTSDIR}/textproc/glimpse
|
||||
RUN_DEPENDS= glimpse:${PORTSDIR}/textproc/glimpse \
|
||||
rman:${PORTSDIR}/textproc/rman
|
||||
|
||||
USE_TK= yes
|
||||
USE_GMAKE= yes
|
||||
MAKE_ARGS= WISH="${PREFIX}/bin/wish8.4" \
|
||||
USE_DOS2UNIX= yes
|
||||
MAKE_ARGS= WISH="${WISH}" \
|
||||
texinfodir="${PREFIX}/${INFO_PATH}" \
|
||||
gzgrep="\"/usr/bin/zgrep -E\"" \
|
||||
mastermen="\"/usr/share/man ${PREFIX}/man ${LOCALBASE}/man\"" \
|
||||
|
@ -28,7 +29,7 @@ MAKE_ARGS= WISH="${PREFIX}/bin/wish8.4" \
|
|||
manprint="{groff -mandoc -Tps -te -l}"
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e "s;/usr/local/bin/wish;${PREFIX}/bin/wish8.4;" \
|
||||
@${REINPLACE_CMD} -e 's|/usr/local/bin/wish|${WISH}|' \
|
||||
${WRKSRC}/contrib/tkmanclient
|
||||
|
||||
do-install:
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
--- tkmandesc.tcl.orig Wed Apr 2 01:31:38 2003
|
||||
+++ tkmandesc.tcl Sun Oct 19 11:09:54 2003
|
||||
@@ -224,8 +224,9 @@
|
||||
set mani(manTitleList) $man(manTitleList)
|
||||
|
||||
if {![info exists env(MANPATH)] || [string trim $env(MANPATH)] eq ""} {
|
||||
- puts stderr "You must set a MANPATH environment variable,\nwhich is a colon-separated list of directories in which\nto find man pages, for example /usr/man:/usr/share/man.\n(See the help page for an explanation of why\nalternatives to the MANPATH are a bad thing.)"
|
||||
- exit 1
|
||||
+# puts stderr "You must set a MANPATH environment variable,\nwhich is a colon-separated list of directories in which\nto find man pages, for example /usr/man:/usr/share/man.\n(See the help page for an explanation of why\nalternatives to the MANPATH are a bad thing.)"
|
||||
+# exit 1
|
||||
+ set env(MANPATH) [join $manx(mastermen) ":"]
|
||||
}
|
||||
set manx(MANPATH0) $env(MANPATH)
|
||||
|
||||
set mani(manTitleList) $man(manTitleList)
|
||||
|
||||
if {![info exists env(MANPATH)] || [string trim $env(MANPATH)] eq ""} {
|
||||
- puts stderr "You must set a MANPATH environment variable,\nwhich is a colon-separated list of directories in which\nto find man pages, for example /usr/man:/usr/share/man.\n(See the help page for an explanation of why\nalternatives to the MANPATH are a bad thing.)"
|
||||
- exit 1
|
||||
+# puts stderr "You must set a MANPATH environment variable,\nwhich is a colon-separated list of directories in which\nto find man pages, for example /usr/man:/usr/share/man.\n(See the help page for an explanation of why\nalternatives to the MANPATH are a bad thing.)"
|
||||
+# exit 1
|
||||
+ set env(MANPATH) [join $manx(mastermen) ":"]
|
||||
}
|
||||
set manx(MANPATH0) $env(MANPATH)
|
||||
|
||||
|
|
Loading…
Reference in a new issue