From 63176ad2e00f2d87ed42e47659685a1244c5c6fe Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 27 Aug 2012 21:59:53 -0700 Subject: lesspipe: use new dsl --- Library/Formula/lesspipe.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Library/Formula/lesspipe.rb') 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 -- cgit v1.2.3