aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-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