aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2009-11-30 09:47:22 +0800
committermi <mi@FreeBSD.org>2009-11-30 09:47:22 +0800
commit90958885c2edaaa238a4430d85e81c0287b886ce (patch)
tree3ed576ab361b9c854d1f09777cb80e84aed99c3e /lang
parent2c716208f9fafedfc477d405425ad6cfff7e081a (diff)
downloadfreebsd-ports-gnome-90958885c2edaaa238a4430d85e81c0287b886ce.tar.gz
freebsd-ports-gnome-90958885c2edaaa238a4430d85e81c0287b886ce.tar.zst
freebsd-ports-gnome-90958885c2edaaa238a4430d85e81c0287b886ce.zip
Better handle differences in the set of help-pages.
Chase the lang/tcl85's decision to install man1/tclsh8.5.1 instead of man1/tclsh.1 -- now, when we can't find a man-page foo, we try looking for foo$tcl_version. PR: ports/140978 Submitted by: olli hauer
Diffstat (limited to 'lang')
-rw-r--r--lang/tclX/Makefile8
-rw-r--r--lang/tclX/files/patch-af21
-rw-r--r--lang/tclX/pkg-plist4
3 files changed, 25 insertions, 8 deletions
diff --git a/lang/tclX/Makefile b/lang/tclX/Makefile
index 044fce18dc7b..1991a84dc910 100644
--- a/lang/tclX/Makefile
+++ b/lang/tclX/Makefile
@@ -61,6 +61,14 @@ MLINKS+= TclXInit.3 $l.3
.if ${TCL_VER} > 8.4
EXTRA_PATCHES+= ${FILESDIR}/tcl85-test-patch
+PLIST_SUB+= BELOW_85='@comment '
+.else
+PLIST_SUB+= BELOW_85=''
+.endif
+.if ${TCL_VER} > 8.3
+PLIST_SUB+= ABOVE_83=''
+.else
+PLIST_SUB+= ABOVE_83='@comment '
.endif
pre-configure:
diff --git a/lang/tclX/files/patch-af b/lang/tclX/files/patch-af
index e5609d5c2c3f..66a63732dc38 100644
--- a/lang/tclX/files/patch-af
+++ b/lang/tclX/files/patch-af
@@ -1,5 +1,5 @@
---- ./unix/tools/bldmanhelp.tcl.orig Thu Dec 2 21:33:05 2004
-+++ ./unix/tools/bldmanhelp.tcl Sun Mar 25 17:07:36 2007
+--- unix/tools/bldmanhelp.tcl 2004-12-02 15:33:05.000000000 -0500
++++ unix/tools/bldmanhelp.tcl 2009-11-28 16:41:13.000000000 -0500
@@ -11,10 +11,9 @@
#
# The command line is:
@@ -12,9 +12,11 @@
# o maninfo is the path to a file that when sources returns a list of
# entries describing manual pages to convert. Each entry is a list
# of manual file and the path of the help file to generate.
-@@ -69,17 +68,32 @@
+@@ -68,18 +67,41 @@
+
proc CopyManPage {manPage outFH} {
global skipSection
++ global tcl_version
- set stat [catch {
- open $manPage
@@ -24,7 +26,14 @@
+ return
+ }
+ set manPage [file rootname $manPage]
-+ set manPage [split [exec man -w $section $manPage] ":)"]
++ if {[catch {exec man -w $section $manPage} page] &&
++ [catch {exec man -w $section $manPage$tcl_version} page]} {
++ global gotErrors
++ set gotErrors 1
++ puts stderr "can't find man-page for \"$manPage\": $page"
++ return
++ }
++ set manPage [split $page ":)"]
+ if {[llength $manPage] > 1} { # Get the source, not from cat
+ set manPage [string trim [lindex $manPage 1]]
+ }
@@ -49,7 +58,7 @@
.so* {
CopyManPage [lindex $line 1] $outFH
}
-@@ -119,11 +133,10 @@
+@@ -119,11 +141,10 @@
# for input to buildhelp.
#
@@ -62,7 +71,7 @@
foreach ent $manInfoTbl {
puts stdout " preprocessing $ent"
-@@ -144,13 +157,12 @@
+@@ -144,13 +165,12 @@
set tmpFile "bldmanhelp.tmp"
diff --git a/lang/tclX/pkg-plist b/lang/tclX/pkg-plist
index 56a6a0ccb04d..a0fe63d9d602 100644
--- a/lang/tclX/pkg-plist
+++ b/lang/tclX/pkg-plist
@@ -81,7 +81,7 @@ lib/tclx%%TCLX_VER%%/help.tcl
%%PORTDOCS%%lib/tclx%%TCLX_VER%%/help/tcl/files/readdir
%%PORTDOCS%%lib/tclx%%TCLX_VER%%/help/tcl/files/recursive_glob
%%PORTDOCS%%lib/tclx%%TCLX_VER%%/help/tcl/files/registry
-%%PORTDOCS%%lib/tclx%%TCLX_VER%%/help/tcl/files/resource
+%%PORTDOCS%%%%BELOW_85%%lib/tclx%%TCLX_VER%%/help/tcl/files/resource
%%PORTDOCS%%lib/tclx%%TCLX_VER%%/help/tcl/files/seek
%%PORTDOCS%%lib/tclx%%TCLX_VER%%/help/tcl/files/select
%%PORTDOCS%%lib/tclx%%TCLX_VER%%/help/tcl/files/sync
@@ -132,7 +132,7 @@ lib/tclx%%TCLX_VER%%/help.tcl
%%PORTDOCS%%lib/tclx%%TCLX_VER%%/help/tcl/lists/lreplace
%%PORTDOCS%%lib/tclx%%TCLX_VER%%/help/tcl/lists/lrmdups
%%PORTDOCS%%lib/tclx%%TCLX_VER%%/help/tcl/lists/lsearch
-%%PORTDOCS%%lib/tclx%%TCLX_VER%%/help/tcl/lists/lset
+%%PORTDOCS%%%%ABOVE_83%%lib/tclx%%TCLX_VER%%/help/tcl/lists/lset
%%PORTDOCS%%lib/tclx%%TCLX_VER%%/help/tcl/lists/lsort
%%PORTDOCS%%lib/tclx%%TCLX_VER%%/help/tcl/lists/lvarcat
%%PORTDOCS%%lib/tclx%%TCLX_VER%%/help/tcl/lists/lvarpop