homebrew-core/Formula/lesspipe.rb

22 lines
576 B
Ruby
Raw Normal View History

2009-10-20 12:41:16 +00:00
require 'formula'
class Lesspipe < Formula
homepage 'http://www-zeuthen.desy.de/~friebel/unix/lesspipe.html'
url 'http://www-zeuthen.desy.de/~friebel/unix/less/lesspipe-1.71.tar.gz'
md5 '6d921dc4ce9809d405cb8d694ac7cbbd'
2009-10-20 12:41:16 +00:00
def options
[['--syntax-highlighting', 'Enable syntax highlighting']]
end
2009-10-20 12:41:16 +00:00
def install
if ARGV.include? '--syntax-highlighting'
inreplace 'configure', %q{$ifsyntax = "\L$ifsyntax";}, %q{$ifsyntax = "\Ly";}
end
2009-10-20 12:41:16 +00:00
system "./configure", "--prefix=#{prefix}", "--default"
man1.mkpath
system "make install"
end
end