diff options
Diffstat (limited to 'x11/kdebase3/patches')
-rw-r--r-- | x11/kdebase3/patches/patch-ca | 21 | ||||
-rw-r--r-- | x11/kdebase3/patches/patch-cb | 70 | ||||
-rw-r--r-- | x11/kdebase3/patches/patch-cc | 24 |
3 files changed, 115 insertions, 0 deletions
diff --git a/x11/kdebase3/patches/patch-ca b/x11/kdebase3/patches/patch-ca new file mode 100644 index 00000000000..a973c4bfb21 --- /dev/null +++ b/x11/kdebase3/patches/patch-ca @@ -0,0 +1,21 @@ +$NetBSD: patch-ca,v 1.4 2005/12/17 19:36:27 markd Exp $ + +--- khelpcenter/searchhandlers/khc_mansearch.pl.orig 2005-12-01 00:32:43.000000000 +1300 ++++ khelpcenter/searchhandlers/khc_mansearch.pl +@@ -55,7 +55,7 @@ my @results; + while( <MAN> ) { + # print "RAW:$_"; + chop; +- /^([^\s]+)\s+\((.*)\)\s+-\s+(.*)$/; ++ /^([^(]+)\s+\((.*)\)\s+-\s+(.*)$/; + my $page = $1; + my $section = $2; + my $description = $3; +@@ -73,6 +73,7 @@ if ( $nummatches > 0 ) { + for my $result ( @results ) { + my ( $page, $section, $description ) = @$result; + my $url = "man:" . $page; ++ $url =~ s/,.*//; + print "<li><a href=\"$url\">"; + print "$page - $description</a></li>\n"; + if ( ++$count == $maxcount ) { last; } diff --git a/x11/kdebase3/patches/patch-cb b/x11/kdebase3/patches/patch-cb new file mode 100644 index 00000000000..a2858639031 --- /dev/null +++ b/x11/kdebase3/patches/patch-cb @@ -0,0 +1,70 @@ +$NetBSD: patch-cb,v 1.4 2005/12/17 19:36:27 markd Exp $ + +--- khelpcenter/searchhandlers/khc_docbookdig.pl.in.orig 2005-10-11 04:03:56.000000000 +1300 ++++ khelpcenter/searchhandlers/khc_docbookdig.pl.in +@@ -26,8 +26,8 @@ use strict; + + use Getopt::Long; + +-my $htdigdata = "/srv/www/htdig/common/"; +-my $htdigbin = "/usr/bin"; ++my $htdigdata = "@prefix@/share/htdig/common/"; ++my $htdigbin = "@prefix@/bin"; + my $kdeprefix = "@prefix@"; + chomp $kdeprefix; + +@@ -85,7 +85,7 @@ if ( !open( START, ">$startfile" ) ) { + exit 1; + } + +-my $findcmd = "find $kdeprefix/share/doc/HTML/$lang/ -name index.docbook"; ++my $findcmd = "find $kdeprefix/share/doc/kde/HTML/$lang/ -name index.docbook"; + + print STDERR "FINDCMD: $findcmd\n"; + +@@ -121,21 +121,24 @@ if ( !open( PARSER, ">$parserfile" ) ) { + print PARSER << "EOT"; + #! /bin/sh + ++PATH=/bin:/usr/bin:\$PATH ++export PATH ++ + file=\$1 + shift + mime=\$1 + shift + + if test "\$#" -gt 0; then +- orig=\${1/file:\/\//} ++ orig=`echo \$1 | sed -e 's=file:=/='` + shift + fi + + case "\$orig" in + help:/*) +- orig=\${orig/help:\//} +- orig=\${orig/\/index.docbook//} +- cd $kdeprefix/share/doc/HTML/en/\$orig ++ orig=\${orig#help:} ++ orig=\${orig\%/index.docbook} ++ cd $kdeprefix/share/doc/kde/HTML/en/\$orig + file=index.docbook + ;; + *) +@@ -162,14 +165,14 @@ common_dir: $commondir + locale: $locale + database_dir: $htdigdb + database_base: \${database_dir}/$identifier +-local_urls: help://=$kdeprefix/share/doc/HTML/en/ file://=/ ++local_urls: help://=$kdeprefix/share/doc/kde/HTML/en/ file://=/ + local_urls_only: true + limit_urls_to: file:// help:/ + ignore_noindex: true + max_hop_count: 4 + robotstxt_name: kdedig + compression_level: 6 +-template_map: Long long $kdeprefix/share/apps/khelpcenter/searchhandlers/htdig/htdig_long.html ++template_map: Long long $kdeprefix/share/kde/apps/khelpcenter/searchhandlers/htdig/htdig_long.html + search_algorithm: exact:1 prefix:0.8 + maximum_pages: 1 + matches_per_page: 10 diff --git a/x11/kdebase3/patches/patch-cc b/x11/kdebase3/patches/patch-cc new file mode 100644 index 00000000000..80b4d85e56e --- /dev/null +++ b/x11/kdebase3/patches/patch-cc @@ -0,0 +1,24 @@ +$NetBSD: patch-cc,v 1.5 2005/12/17 19:36:28 markd Exp $ + +--- khelpcenter/searchhandlers/khc_htdig.pl.in.orig 2005-10-11 04:03:56.000000000 +1300 ++++ khelpcenter/searchhandlers/khc_htdig.pl.in +@@ -26,8 +26,8 @@ use strict; + + use Getopt::Long; + +-my $htdigdata = "/srv/www/htdig/common/"; +-my $htdigbin = "/usr/bin"; ++my $htdigdata = "@prefix@/share/htdig/common/"; ++my $htdigbin = "@prefix@/bin"; + my $kdeprefix = "@prefix@"; + chomp $kdeprefix; + +@@ -93,7 +93,7 @@ ignore_noindex: true + max_hop_count: 4 + robotstxt_name: kdedig + compression_level: 6 +-template_map: Long long $kdeprefix/share/apps/khelpcenter/searchhandlers/htdig/htdig_long.html \\ ++template_map: Long long $kdeprefix/share/kde/apps/khelpcenter/searchhandlers/htdig/htdig_long.html \\ + Short short $htdigdata/short.html + search_algorithm: exact:1 prefix:0.8 + maximum_pages: 1 |