aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/itstool.rb
blob: 35b97ea11b49437a3114aa9d9071c6bed4a9a5b8 (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
27
28
29
30
31
require 'formula'

class Itstool < Formula
  homepage 'http://itstool.org/'
  url 'http://files.itstool.org/itstool/itstool-2.0.2.tar.bz2'
  sha256 'bf909fb59b11a646681a8534d5700fec99be83bb2c57badf8c1844512227033a'

  bottle do
    cellar :any
    sha1 "25b55065039462db7fe3fb238b97af2a4a83b755" => :yosemite
    sha1 "0ce0a174f26de66fb8ecc6e344c2df02dc699d63" => :mavericks
    sha1 "2a9c5f6e0b35202c3520855c04497bc092c47ab1" => :mountain_lion
  end

  head do
    url 'git://gitorious.org/itstool/itstool.git'

    depends_on "autoconf" => :build
    depends_on "automake" => :build
  end

  depends_on :python
  depends_on 'libxml2' => 'with-python'

  def install
    ENV.append_path "PYTHONPATH", "#{Formula["libxml2"].opt_lib}/python2.7/site-packages"
    system "./autogen.sh" if build.head?
    system "./configure", "--prefix=#{prefix}"
    system "make install"
  end
end