homebrew-core/Formula/midgard2.rb
2012-07-10 08:56:02 -07:00

33 lines
934 B
Ruby

require 'formula'
class Midgard2 < Formula
homepage 'http://www.midgard-project.org/'
url 'http://www.midgard-project.org/midcom-serveattachmentguid-b459b3e443f711e0a6353dc3bca0241a241a/midgard2-core-10.05.4.tar.gz'
md5 '99dcf5d5e39901712a882598e3da17d2'
head 'https://github.com/midgardproject/midgard-core.git', :branch => 'ratatoskr'
depends_on 'pkg-config' => :build
depends_on 'glib'
depends_on 'dbus-glib'
depends_on 'libgda'
if ARGV.build_head?
depends_on :automake
depends_on :libtool
end
def install
if ARGV.build_head?
system "autoreconf", "-i", "--force"
system "automake"
end
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-libgda4",
"--with-dbus-support",
"--enable-introspection=no"
system "make install"
end
end