From 81d295df4aa896beb0cbc3ce3b1271f54ae96716 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 27 Aug 2012 21:59:53 -0700 Subject: [PATCH] lesspipe: use new dsl --- Formula/lesspipe.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Formula/lesspipe.rb b/Formula/lesspipe.rb index 1d59a48a16b..727cce50058 100644 --- a/Formula/lesspipe.rb +++ b/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