lesspipe: add option to enable syntax highlighting
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
be84777350
commit
5c67dad4d5
1 changed files with 8 additions and 0 deletions
|
@ -5,7 +5,15 @@ class Lesspipe < Formula
|
|||
url 'http://www-zeuthen.desy.de/~friebel/unix/less/lesspipe-1.71.tar.gz'
|
||||
md5 '6d921dc4ce9809d405cb8d694ac7cbbd'
|
||||
|
||||
def options
|
||||
[['--syntax-highlighting', 'Enable syntax highlighting']]
|
||||
end
|
||||
|
||||
def install
|
||||
if ARGV.include? '--syntax-highlighting'
|
||||
inreplace 'configure', %q{$ifsyntax = "\L$ifsyntax";}, %q{$ifsyntax = "\Ly";}
|
||||
end
|
||||
|
||||
system "./configure", "--prefix=#{prefix}", "--default"
|
||||
man1.mkpath
|
||||
system "make install"
|
||||
|
|
Loading…
Reference in a new issue