diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/lesspipe.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/lesspipe.rb b/Library/Formula/lesspipe.rb index 0acab65cd..1a98f5121 100644 --- a/Library/Formula/lesspipe.rb +++ b/Library/Formula/lesspipe.rb @@ -5,7 +5,15 @@ class Lesspipe < Formula url 'http://www-zeuthen.desy.de/~friebel/unix/less/lesspipe-1.71.tar.gz' md5 '6d921dc4ce9809d405cb8d694ac7cbbd' + def options + [['--syntax-highlighting', 'Enable syntax highlighting']] + end + def install + if ARGV.include? '--syntax-highlighting' + inreplace 'configure', %q{$ifsyntax = "\L$ifsyntax";}, %q{$ifsyntax = "\Ly";} + end + system "./configure", "--prefix=#{prefix}", "--default" man1.mkpath system "make install" |
