homebrew-core/Formula/lesspipe.rb
Victor Martinez 8dc451e3e2 Fixed several broken sourceforge.net download locations
Closes Homebrew/homebrew#20645.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-30 12:17:57 -07:00

19 lines
581 B
Ruby

require 'formula'
class Lesspipe < Formula
homepage 'http://www-zeuthen.desy.de/~friebel/unix/lesspipe.html'
url 'http://downloads.sourceforge.net/project/lesspipe/lesspipe/1.82/lesspipe-1.82.tar.gz'
sha1 '61a7657b20b910ed8219c6b77467e601f9a89894'
option 'syntax-highlighting', 'Enable syntax highlighting'
def install
if build.include? 'syntax-highlighting'
inreplace 'configure', %q{$ifsyntax = "\L$ifsyntax";}, %q{$ifsyntax = "\Ly";}
end
system "./configure", "--prefix=#{prefix}", "--default"
man1.mkpath
system "make install"
end
end