aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/lesspipe.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-27 21:59:53 -0700
committerAdam Vandenberg2012-08-27 21:59:53 -0700
commit63176ad2e00f2d87ed42e47659685a1244c5c6fe (patch)
treeba9d51588074def689e4e3016e3d201ba5df8d44 /Library/Formula/lesspipe.rb
parent4eec23ef123aa6fff3e6f9086006dd567649b4cd (diff)
downloadhomebrew-63176ad2e00f2d87ed42e47659685a1244c5c6fe.tar.bz2
lesspipe: use new dsl
Diffstat (limited to 'Library/Formula/lesspipe.rb')
-rw-r--r--Library/Formula/lesspipe.rb6
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