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

class SourceHighlight < Formula
  homepage 'https://www.gnu.org/software/src-highlite/'
  url 'http://ftpmirror.gnu.org/src-highlite/source-highlight-3.1.8.tar.gz'
  mirror 'https://ftp.gnu.org/gnu/src-highlite/source-highlight-3.1.8.tar.gz'
  mirror 'http://mirror.anl.gov/pub/gnu/src-highlite/source-highlight-3.1.8.tar.gz'
  sha256 '01336a7ea1d1ccc374201f7b81ffa94d0aecb33afc7d6903ebf9fbf33a55ada3'

  bottle do
    sha1 "6bf1308730ead770b3ed8d47c2e93ec54d4058d8" => :yosemite
    sha1 "b9a4dce9a4342f562db11e933a3b859ffd06c5bc" => :mavericks
    sha1 "e8f5a3165b4e94056ea13c0ae2c93d6de8d78eed" => :mountain_lion
  end

  depends_on 'boost'

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

    bash_completion.install 'completion/source-highlight'
  end
end