diff options
| author | Jack Nagel | 2012-08-13 09:56:40 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-13 09:57:39 -0500 |
| commit | fa074840a28778738b5e6aaee9e282a7f83c3c87 (patch) | |
| tree | e1d1237c9e4436b4ddec0bf01e8e9ef166ccd477 | |
| parent | b69a12d285397ecc59ed504f350aab806f7fae2c (diff) | |
| download | homebrew-fa074840a28778738b5e6aaee9e282a7f83c3c87.tar.bz2 | |
gnu-sed: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Formula/gnu-sed.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Formula/gnu-sed.rb b/Library/Formula/gnu-sed.rb index e57899047..fec45c3e2 100644 --- a/Library/Formula/gnu-sed.rb +++ b/Library/Formula/gnu-sed.rb @@ -1,18 +1,16 @@ require 'formula' class GnuSed < Formula + homepage 'http://www.gnu.org/software/sed/' url 'http://ftpmirror.gnu.org/sed/sed-4.2.1.tar.bz2' mirror 'http://ftp.gnu.org/gnu/sed/sed-4.2.1.tar.bz2' - homepage 'http://www.gnu.org/software/sed/' - md5 '7d310fbd76e01a01115075c1fd3f455a' + sha1 'ace93d23eabc00d3a8187ecf07d3a02b1b297810' - def options - [['--default-names', "Do NOT prepend 'g' to the binary; will override system utils."]] - end + option 'default-names', "Do not prepend 'g' to the binary" def install args = ["--prefix=#{prefix}", "--disable-dependency-tracking"] - args << "--program-prefix=g" unless ARGV.include? '--default-names' + args << "--program-prefix=g" unless build.include? 'default-names' system "./configure", *args system "make install" |
