Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Install plists in FormulaInstaller, not build.rb
Browse files Browse the repository at this point in the history
Build rb should only build!
  • Loading branch information
mxcl authored and Dennis Luxen committed Sep 17, 2012
1 parent c29eb08 commit e09b32b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Library/Homebrew/build.rb
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions Library/Homebrew/formula_installer.rb
Expand Up @@ -186,6 +186,7 @@ def finish
check_PATH unless f.keg_only?
end

install_plist
fix_install_names

ohai "Summary" if ARGV.verbose? or show_summary_heading
Expand Down Expand Up @@ -283,6 +284,14 @@ def link
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
Expand Down

0 comments on commit e09b32b

Please sign in to comment.