homebrew-core/Formula/lesspipe.rb

20 lines
578 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://sourceforge.net/projects/lesspipe/files/lesspipe/1.82/lesspipe-1.82.tar.gz'
sha1 '61a7657b20b910ed8219c6b77467e601f9a89894'
2009-10-20 12:41:16 +00:00
2012-08-28 04:59:53 +00:00
option 'syntax-highlighting', 'Enable syntax highlighting'
2009-10-20 12:41:16 +00:00
def install
2012-08-28 04:59:53 +00:00
if build.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