homebrew-core/Formula/midgard2.rb

34 lines
907 B
Ruby
Raw Normal View History

require 'formula'
2011-03-21 19:58:04 +00:00
class Midgard2 < Formula
homepage 'http://www.midgard-project.org/'
url 'https://github.com/downloads/midgardproject/midgard-core/midgard2-core-10.05.7.1.tar.gz'
sha1 'c9e8930492056f7ca714a043296250fdd9ef4c66'
2012-07-07 18:08:22 +00:00
head 'https://github.com/midgardproject/midgard-core.git', :branch => 'ratatoskr'
2011-03-21 19:58:04 +00:00
depends_on 'pkg-config' => :build
depends_on 'glib'
depends_on 'dbus-glib'
depends_on 'libgda'
2012-07-07 18:08:22 +00:00
if ARGV.build_head?
depends_on :automake
depends_on :libtool
end
def install
if ARGV.build_head?
system "autoreconf", "-i", "--force"
system "automake"
end
2012-07-07 18:08:22 +00:00
2011-03-21 19:58:04 +00:00
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-libgda4",
"--with-dbus-support",
"--enable-introspection=no"
system "make install"
end
end