aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorKevin Ballard2014-07-15 15:17:18 -0700
committerJack Nagel2014-07-18 16:17:29 -0500
commitd84e16e2241f96d8a2e3e1c27a87eb9b53b3863a (patch)
tree00567187589d6b2c9aabfaa6252465a40149e93e /Library/Formula
parentb6ac1a9be92cf51d31a307a08407e86a7b31c9a5 (diff)
downloadhomebrew-d84e16e2241f96d8a2e3e1c27a87eb9b53b3863a.tar.bz2
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 #30886. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/vit.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/vit.rb b/Library/Formula/vit.rb
index bf83cdfc7..d610a53a0 100644
--- a/Library/Formula/vit.rb
+++ b/Library/Formula/vit.rb
@@ -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