vit: Fix installation of vit-commands help file

vit-commands is installed into 'etc', but it needs to go in
`$prefix/etc`, not in `$HOMEBREW_PREFIX/etc`. It's not actually a
configuration file, and vit looks for it in its keg prefix.

Ideally the file wouldn't even be symlinked into `$HOMEBREW_PREFIX/etc`
but I don't see any way to avoid that.

Closes Homebrew/homebrew#30886.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Kevin Ballard 2014-07-15 15:17:18 -07:00 committed by Jack Nagel
parent 8518490455
commit 9aa59916b8
1 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,7 @@ class Vit < Formula
head "https://git.tasktools.org/scm/ex/vit.git"
url "http://taskwarrior.org/download/vit-1.2.tar.gz"
sha1 "46ed3f9ff81112a2e28675720616568098a69cfa"
revision 1
depends_on "task"
@ -28,7 +29,9 @@ class Vit < Formula
bin.install "vit"
man1.install "vit.1"
man5.install "vitrc.5"
etc.install "commands" => "vit-commands"
# vit-commands needs to be installed in the keg because that's where vit
# will look for it.
(prefix+"etc").install "commands" => "vit-commands"
bin.env_script_all_files(libexec+"bin", :PERL5LIB => ENV["PERL5LIB"])
end
end