aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/source-highlight.rb
blob: 0fb96532a15fcb45955de5b869d85590f5e27eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class SourceHighlight < Formula
  url 'http://ftpmirror.gnu.org/src-highlite/source-highlight-3.1.5.tar.gz'
  mirror 'http://ftp.gnu.org/gnu/src-highlite/source-highlight-3.1.5.tar.gz'
  homepage 'http://www.gnu.org/software/src-highlite/'
  md5 '3117ee47c1c6b0668667e20d2aca3757'

  depends_on 'boost'

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--with-boost=#{HOMEBREW_PREFIX}"
    system "make install"

    bash_completion_d = prefix + 'etc/bash_completion.d'
    bash_completion_d.install 'source-highlight-bash-completion'
  end
end