Package: zsh-helpfiles Version: 5.0.2 Revision: 1 Depends: zsh (>= %v) | zsh-multibyte (>= %v) BuildDepends: zsh (>= %v) | zsh-multibyte (>= %v) Source: mirror:sourceforge:zsh/zsh/%v/zsh-%v.tar.bz2 Source-Checksum: SHA256(eb220ae5a8076191ec6b4c6a5a2f18122d074a19f25b45f0320b44b8166c5a03) Source2: http://code.google.com/p/zsh-templates-osx/source/browse/trunk/Library/init/zsh/local-functions/general/run-help Source2-Checksum: SHA256(cedf59fd2cff96cf09523bd3ae4e688cd7f9a361398281ea2bc914e7c69d7aee) CompileScript:<< #!/bin/bash -efv #set -x # the perl magic token breaks Util/helpfiles perl -pi.bak -e 's|/usr/local/bin/perl -- -\*-perl-\*-|/usr/bin/perl |g' Util/helpfiles mkdir temp cd temp command man -M %p/share/man zshbuiltins | colcrt - | ../Util/helpfiles << InstallScript:<< #!/bin/zsh -efv #set -x mkdir -p %i/share/zsh/zsh_help cp temp/* %i/share/zsh/zsh_help/. mkdir -p %i/share/zsh/site-functions cp ../run-help %i/share/zsh/site-functions/. # mkdir -p %i/etc/profile.d # cat >| %i/etc/profile.d/zsh-helpfiles.sh << eof-1 # if [[ -n \$ZSH_VERSION ]]; then if [[ -z \$HELPDIR ]]; then HELPDIR=%p/share/zsh/zsh_help else HELPDIR=%p/share/zsh/zsh_help:\$HELPDIR fi export -TU HELPDIR helpdir typeset -U helpdir #keeps helpdir and HELPDIR trimmed #The directory containing run-help must be prepended to the \$FPATH FPATH=%p/share/zsh/site-functions:\$FPATH export FPATH typeset -U fpath # keeps fpath and FPATH trimmed autoload -U run-help fi # eof-1 # echo "# This file is an empty place-holder. " >| %i/etc/profile.d/zsh-helpfiles.csh # chmod a+x %i/etc/profile.d/zsh-helpfiles.*sh << Description: Z Shell help files DescDetail: << The helpfiles utility, found in the Util directory of the distribution, is a Perl program that can be used to process the zsh manual to produce a separate help file for each shell builtin and for many other shell features as well. The autoloadable run-help function, found in Func- tions/Misc, searches for these helpfiles and performs several other tests to produce the most complete help possible for the command. This package installs a corrected version of run-help that will not clobber the $HELPDIR variable that at least one other (unrelated) fink package declares. << DescUsage: << Fink automatically issues the command "autoload -U run-help" upon z-shell startup. Then, for example, issuing "run-help echo" will enable you to view a formatted helpfile extracted from the zsh man pages for the zsh builtin function echo. The environment variable $HELPDIR should point to /sw/share/zsh/zsh_help; this too is set up automatically by fink. << License: GPL Maintainer: W. Scott Homepage: http://zsh.sunsite.dk/