diff options
| author | Ches Martin | 2011-05-06 13:33:41 +0700 |
|---|---|---|
| committer | Jack Nagel | 2011-08-31 18:14:17 -0500 |
| commit | f56ebc3ac6ac4124a5570d3bdf4187e28c539274 (patch) | |
| tree | 00b0c36edd9093c7a6c715c3d1a67c4b105b8e2e /Library/Formula/lesspipe.rb | |
| parent | bad2af9b3729060f81be6d973c342867c359479e (diff) | |
| download | homebrew-f56ebc3ac6ac4124a5570d3bdf4187e28c539274.tar.bz2 | |
lesspipe: add option to enable syntax highlighting
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/lesspipe.rb')
| -rw-r--r-- | Library/Formula/lesspipe.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/lesspipe.rb b/Library/Formula/lesspipe.rb index 0acab65cd..1a98f5121 100644 --- a/Library/Formula/lesspipe.rb +++ b/Library/Formula/lesspipe.rb @@ -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" |
