2009-10-20 12:41:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Lesspipe < Formula
|
|
|
|
homepage 'http://www-zeuthen.desy.de/~friebel/unix/lesspipe.html'
|
2011-11-17 15:42:49 +00:00
|
|
|
url 'http://www-zeuthen.desy.de/~friebel/unix/less/lesspipe-1.72.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '971636765c32573eba6b9f63cda33e70301a7274'
|
2009-10-20 12:41:16 +00:00
|
|
|
|
2012-08-28 04:59:53 +00:00
|
|
|
option 'syntax-highlighting', 'Enable syntax highlighting'
|
2011-05-06 06:33:41 +00:00
|
|
|
|
2009-10-20 12:41:16 +00:00
|
|
|
def install
|
2012-08-28 04:59:53 +00:00
|
|
|
if build.include? 'syntax-highlighting'
|
2011-05-06 06:33:41 +00:00
|
|
|
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
|