diff options
| author | Max Howell | 2010-02-27 17:26:27 +0000 |
|---|---|---|
| committer | Max Howell | 2010-03-07 17:57:05 +0000 |
| commit | c4decd76fb353c9e8f0bcb07203f214434fc5395 (patch) | |
| tree | 53c0ca16f2edca1237f2f5a42938cce2d0b31f08 /Library/Formula | |
| parent | 84ab27476cf79ac26200888108e6bef7ac6be852 (diff) | |
| download | homebrew-c4decd76fb353c9e8f0bcb07203f214434fc5395.tar.bz2 | |
String.undent for prettier HEREDOCs
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ack.rb | 3 | ||||
| -rw-r--r-- | Library/Formula/android-sdk.rb | 17 | ||||
| -rw-r--r-- | Library/Formula/mysql.rb | 53 | ||||
| -rw-r--r-- | Library/Formula/ruby-enterprise-edition.rb | 16 | ||||
| -rw-r--r-- | Library/Formula/sip.rb | 11 | ||||
| -rw-r--r-- | Library/Formula/thrift.rb | 6 |
6 files changed, 51 insertions, 55 deletions
diff --git a/Library/Formula/ack.rb b/Library/Formula/ack.rb index 27f730947..2a418a344 100644 --- a/Library/Formula/ack.rb +++ b/Library/Formula/ack.rb @@ -1,9 +1,6 @@ require 'formula' class Ack <ScriptFileFormula - # NOTE you don't need to specify the version, usually it is determined - # automatically by examination of the URL, however in this case our auto - # determination magic is inadequete version '1.92' url "http://github.com/petdance/ack/raw/f5556c48eb46100e1733f5a21b45a00f6c190061/ack" md5 '7175438fbcb43405f50d7ffda701eeb3' diff --git a/Library/Formula/android-sdk.rb b/Library/Formula/android-sdk.rb index a04477d3d..9961ec85a 100644 --- a/Library/Formula/android-sdk.rb +++ b/Library/Formula/android-sdk.rb @@ -25,13 +25,14 @@ class AndroidSdk <Formula end end - def caveats; <<-EOS -We agreed to the Android SDK License Agreement for you by downloading the SDK. -If this is unacceptable you should uninstall. -You can read the license at: http://developer.android.com/sdk/terms.html - -Please add this line to your .bash_profile: - export ANDROID_SDK_ROOT=#{prefix} -EOS + def caveats; <<-EOS.undent + We agreed to the Android SDK License Agreement for you when we downloaded the + SDK. If this is unacceptable you should uninstall. You can read the license + at: http://developer.android.com/sdk/terms.html + + Please add this line to your .bash_profile: + + export ANDROID_SDK_ROOT=#{prefix} + EOS end end diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb index 8eb604fb2..488ab187a 100644 --- a/Library/Formula/mysql.rb +++ b/Library/Formula/mysql.rb @@ -55,38 +55,37 @@ class Mysql <Formula (prefix+'com.mysql.mysqld.plist').write startup_plist end - def caveats; <<-EOS -Set up databases with: - mysql_install_db + def caveats; <<-EOS.undent + Set up databases with: + mysql_install_db -Automatically load on login with: - launchctl load -w #{prefix}/com.mysql.mysqld.plist + Automatically load on login with: + launchctl load -w #{prefix}/com.mysql.mysqld.plist -Or start manually with: - #{prefix}/share/mysql/mysql.server start + Or start manually with: + #{prefix}/share/mysql/mysql.server start EOS end - def startup_plist - return <<-EOPLIST -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> -<plist version="1.0"> -<dict> - <key>KeepAlive</key> - <true/> - <key>Label</key> - <string>com.mysql.mysqld</string> - <key>Program</key> - <string>#{bin}/mysqld_safe</string> - <key>RunAtLoad</key> - <true/> - <key>UserName</key> - <string>#{`whoami`.chomp}</string> - <key>WorkingDirectory</key> - <string>#{HOMEBREW_PREFIX}/var</string> -</dict> -</plist> + def startup_plist; <<-EOPLIST.undent + <?xml version="1.0" encoding="UTF-8"?> + <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> + <plist version="1.0"> + <dict> + <key>KeepAlive</key> + <true/> + <key>Label</key> + <string>com.mysql.mysqld</string> + <key>Program</key> + <string>#{bin}/mysqld_safe</string> + <key>RunAtLoad</key> + <true/> + <key>UserName</key> + <string>#{`whoami`.chomp}</string> + <key>WorkingDirectory</key> + <string>#{HOMEBREW_PREFIX}/var</string> + </dict> + </plist> EOPLIST end end diff --git a/Library/Formula/ruby-enterprise-edition.rb b/Library/Formula/ruby-enterprise-edition.rb index cdc6696a0..fe2671a8e 100644 --- a/Library/Formula/ruby-enterprise-edition.rb +++ b/Library/Formula/ruby-enterprise-edition.rb @@ -16,18 +16,18 @@ class RubyEnterpriseEdition <Formula system *args end - def caveats; <<-EOS -By default we don't compile REE as a shared library. From their documentation: + def caveats; <<-EOS.undent + By default we don't compile REE as a shared library. From their documentation: - Please note that enabling --enable-shared will make the Ruby interpreter - about 20% slower. + Please note that enabling --enable-shared will make the Ruby interpreter + about 20% slower. -For desktop environments (particularly ones requiring RubyCocoa) this is -acceptable and even desirable. + For desktop environments (particularly ones requiring RubyCocoa) this is + acceptable and even desirable. -If you need REE to be compiled as a shared library, you can re-compile like so: + If you need REE to be compiled as a shared library, you can re-compile like so: - brew install ruby-enterprise-edition --force --enable-shared + brew install ruby-enterprise-edition --force --enable-shared EOS end end diff --git a/Library/Formula/sip.rb b/Library/Formula/sip.rb index 92954e07f..6639decde 100644 --- a/Library/Formula/sip.rb +++ b/Library/Formula/sip.rb @@ -15,14 +15,13 @@ class Sip <Formula system "make install" end - def caveats; <<-EOS -This formula won't function until you add the following to your PYTHONPATH -environment variable: + def caveats; <<-EOS.undent + This formula won't function until you amend your PYTHONPATH like so: -#{HOMEBREW_PREFIX}/lib/python + export PYTHON_PATH=#{HOMEBREW_PREFIX}/lib/python:$PYTHON_PATH -This is why you would ideally install sip using pip or easy_install. But this -can't work because this package doesn't support Python's disttools. + This is why you would ideally install sip using pip or easy_install. But this + can't work because this package doesn't support Python's disttools. EOS end end diff --git a/Library/Formula/thrift.rb b/Library/Formula/thrift.rb index 9d3b636ea..4820f44c1 100644 --- a/Library/Formula/thrift.rb +++ b/Library/Formula/thrift.rb @@ -23,10 +23,10 @@ class Thrift <Formula system "make install" end - def caveats; <<-EOS -We didn't install the python bindings, to do that: + def caveats; <<-EOS.undent + We didn't install the python bindings, to do that: - easy_install thrift + easy_install thrift EOS end end |
