lesspipe: use new dsl

master
Adam Vandenberg 2012-08-27 21:59:53 -07:00
parent e2faef4871
commit 81d295df4a
1 changed files with 2 additions and 4 deletions

View File

@ -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