zsh: support site specific files

This fixes the `site-scripts` and `site-functions` directories
so that zsh points to the HOMEBREW_PREFIX version of these files
instead of the Cellar version.

This means you can drop files in these directories and the files
will persist when you upgrade zsh. Otherwise they disappear when
you upgrade zsh.

Closes #11955.

[jn: mkpath everything under share/zsh]

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
ack: install completion into site-functions

`_ack` needs to be installed into `share/zsh/site-functions`
not `share/zsh/functions`.

Files in `share/zsh/functions` must not change unless zsh is
upgraded and zsh is restarted.  `site-functions` can change during a zsh
process's lifetime.

Closes #11937.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
hub: install completion into site-functions

`_hub` needs to be installed into `share/zsh/site-functions`
not `share/zsh/functions`.

Files in `share/zsh/functions` must not change unless zsh is
upgraded and zsh is restarted.  `site-functions` can change during a zsh
process's lifetime.

Closes #11938.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
task: install completion into site-functions

`_task` needs to be installed into `share/zsh/site-functions`
not `share/zsh/functions`.

Files in `share/zsh/functions` must not change unless zsh is
upgraded and zsh is restarted.  `site-functions` can change during a zsh
process's lifetime.

Closes #11939.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
git-now: install completion into site-functions

`_git-now` needs to be installed into `share/zsh/site-functions`
not `share/zsh/functions`.

Files in `share/zsh/functions` must not change unless zsh is
upgraded and zsh is restarted.  `site-functions` can change during a zsh
process's lifetime.

This will enable homebrew's zsh to automatically use the completion.
See issue #11936 for details.

Closes #11940.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
git-flow: install completion into site-functions

`_git-flow` needs to be installed into `share/zsh/site-functions`
not `share/zsh/functions`.

Files in `share/zsh/functions` must not change unless zsh is
upgraded and zsh is restarted.  `site-functions` can change during a zsh
process's lifetime.

This will enable homebrew's zsh to automatically use the completion.
See issue #11936 for details.

Closes #11941.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
autojump: install completion into site-functions

`_autojump` needs to be installed into `share/zsh/site-functions`
not `share/zsh/functions`.

Files in `share/zsh/functions` must not change unless zsh is
upgraded and zsh is restarted.  `site-functions` can change during a zsh
process's lifetime.

This will enable homebrew's zsh to automatically use the completion.
See issue #11936 for details.

Closes #11942.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
media-info 0.7.57
htop-osx: fix typo in caveats
peg: Update to 0.1.9

Closes #12037.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Exodriver: update to 2.5

Closes #12034.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
httrack: Update to 3.45.4

Closes #12031.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
openimageio 1.0.4

Upgrade openimageio to version 1.0.4.  All tests pass.

Closes #12028.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
cfitsio 3.30

Upgrade cfitsio to version 3.30.  Tested using openimageio.

Closes #12027.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
ffmpeg: use linked_keg when checking optional deps

ffmpeg when built as head checks if x264 is installed using
`Formula.factory.installed?` that won't find x264 stable as it looks for a HEAD
build.  Switch from `.installed?` to `linked_keg.exist?` for all dependencies
as this will find them whether they are installed as head or stable.

Fixes #11996.
Closes #12020.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
ffmpeg: Actually change optional deps checking

Ooops, this should have been ammended onto 9e24c7a.
metasploit: fix checksum

Fixes #12039.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
git-now: fix typo in caveats

The zsh-completion path in the caveat was missing the
`share` directory component.

Closes #12035.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
ENV.rb: Always return integers from make_jobs

When referencing `Hardware.processor_count`, `ENV.make_jobs` will return an
integer. If referencing the environment variable `HOMEBREW_MAKE_JOBS`, it
returned a string.

Now, the function always returns an integer.

Fixes #12033.
Revert "ENV.rb: Always return integers from make_jobs"

This reverts commit ea1a9e603abe3dab90bf5b157d2614cf58e2cc8e.

Argh. Unrelated PySide changes slipped in.