homebrew-core/Formula/lesspipe.rb
Jaime Marquínez Ferrándiz 74c83fa9f6 Batch convert http download urls from SourceForge to https
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-02 09:16:53 -08:00

19 lines
582 B
Ruby

require 'formula'
class Lesspipe < Formula
homepage 'http://www-zeuthen.desy.de/~friebel/unix/lesspipe.html'
url 'https://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