diff options
| author | Gabriele Sales | 2010-11-15 21:40:52 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2010-11-19 06:25:10 -0800 |
| commit | d13a1d62782671b00ecb47e4d89001d7164d95c4 (patch) | |
| tree | a19aee0cc3222da05697c91e127671c8a78977d3 | |
| parent | 8ba10e91b55a9cad9954b9ad0c733eac1488a832 (diff) | |
| download | homebrew-d13a1d62782671b00ecb47e4d89001d7164d95c4.tar.bz2 | |
gnu-sed: added --default-names option.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/gnu-sed.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Library/Formula/gnu-sed.rb b/Library/Formula/gnu-sed.rb index a96e47b59..99712a4fa 100644 --- a/Library/Formula/gnu-sed.rb +++ b/Library/Formula/gnu-sed.rb @@ -1,12 +1,23 @@ require 'formula' +def use_default_names? + ARGV.include? '--default-names' +end + class GnuSed <Formula url 'http://ftp.gnu.org/gnu/sed/sed-4.2.1.tar.bz2' homepage 'http://www.gnu.org/software/sed/' md5 '7d310fbd76e01a01115075c1fd3f455a' + def options + [['--default-names', "Do NOT prepend 'g' to the binary; will override system utils."]] + end + def install - system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking", "--program-prefix=g" + args = ["--prefix=#{prefix}", "--disable-dependency-tracking"] + args << "--program-prefix=g" unless use_default_names? + + system "./configure", *args system "make install" end end |
