diff options
| author | Adam Vandenberg | 2012-08-27 21:59:53 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-27 21:59:53 -0700 |
| commit | 63176ad2e00f2d87ed42e47659685a1244c5c6fe (patch) | |
| tree | ba9d51588074def689e4e3016e3d201ba5df8d44 /Library/Formula/lesspipe.rb | |
| parent | 4eec23ef123aa6fff3e6f9086006dd567649b4cd (diff) | |
| download | homebrew-63176ad2e00f2d87ed42e47659685a1244c5c6fe.tar.bz2 | |
lesspipe: use new dsl
Diffstat (limited to 'Library/Formula/lesspipe.rb')
| -rw-r--r-- | Library/Formula/lesspipe.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/lesspipe.rb b/Library/Formula/lesspipe.rb index 1d59a48a1..727cce500 100644 --- a/Library/Formula/lesspipe.rb +++ b/Library/Formula/lesspipe.rb @@ -5,12 +5,10 @@ class Lesspipe < Formula url 'http://www-zeuthen.desy.de/~friebel/unix/less/lesspipe-1.72.tar.gz' md5 '0fdb9d4ab5dd570806e778b6815ea276' - def options - [['--syntax-highlighting', 'Enable syntax highlighting']] - end + option 'syntax-highlighting', 'Enable syntax highlighting' def install - if ARGV.include? '--syntax-highlighting' + if build.include? 'syntax-highlighting' inreplace 'configure', %q{$ifsyntax = "\L$ifsyntax";}, %q{$ifsyntax = "\Ly";} end |
