Install plists in FormulaInstaller, not build.rb

Build rb should only build!
This commit is contained in:
Max Howell 2012-09-11 20:57:41 -04:00
parent fe295faffe
commit 523f50862b
2 changed files with 9 additions and 8 deletions

View File

@ -146,14 +146,6 @@ def install f
f.prefix.mkpath
f.install
# Install a plist if one is defined
unless f.startup_plist.nil?
unless f.plist_path.exist?
f.plist_path.write f.startup_plist
f.plist_path.chmod 0644
end
end
# Find and link metafiles
FORMULA_META_FILES.each do |filename|
next if File.directory? filename

View File

@ -186,6 +186,7 @@ class FormulaInstaller
check_PATH unless f.keg_only?
end
install_plist
fix_install_names
ohai "Summary" if ARGV.verbose? or show_summary_heading
@ -283,6 +284,14 @@ class FormulaInstaller
end
end
def install_plist
# Install a plist if one is defined
if f.startup_plist and not f.plist_path.exist?
f.plist_path.write f.startup_plist
f.plist_path.chmod 0644
end
end
def fix_install_names
Keg.new(f.prefix).fix_install_names
rescue Exception => e