lesspipe: use new dsl
parent
e2faef4871
commit
81d295df4a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue