aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.h.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb
index 83cb79c50..4d0f45377 100644
--- a/Library/Homebrew/brew.h.rb
+++ b/Library/Homebrew/brew.h.rb
@@ -29,13 +29,15 @@ def __make url, name
path = Formula.path name
raise "#{path} already exists" if path.exist?
+ homepage = `osascript -e 'tell application "Safari" to if running then get URL of document of first window'`.chomp
+
template=<<-EOS
require 'brewkit'
class #{Formula.class_s name} <Formula
url '#{url}'
- homepage ''
md5 ''
+ homepage '#{homepage}'
cmake depends_on 'cmake'