homebrew-core/Formula/itstool.rb

26 lines
621 B
Ruby
Raw Normal View History

require 'formula'
class Itstool < Formula
homepage 'http://itstool.org/'
url 'http://files.itstool.org/itstool/itstool-2.0.2.tar.bz2'
sha256 'bf909fb59b11a646681a8534d5700fec99be83bb2c57badf8c1844512227033a'
2013-09-20 15:15:57 +00:00
head do
url 'git://gitorious.org/itstool/itstool.git'
2013-09-20 15:15:57 +00:00
depends_on :autoconf
depends_on :automake
end
2013-11-13 05:34:03 +00:00
depends_on :python
depends_on 'libxml2' => 'with-python'
2013-11-13 05:34:03 +00:00
def install
2014-02-25 14:45:23 +00:00
ENV.append_path 'PYTHONPATH', "#{Formula["libxml2"].lib}/python2.7/site-packages"
system "./autogen.sh" if build.head?
system "./configure", "--prefix=#{prefix}"
system "make install"
end
end