2011-03-21 10:31:54 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-21 19:58:04 +00:00
|
|
|
class Midgard2 < Formula
|
2011-03-21 10:31:54 +00:00
|
|
|
url 'http://www.midgard-project.org/midcom-serveattachmentguid-b459b3e443f711e0a6353dc3bca0241a241a/midgard2-core-10.05.4.tar.gz'
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/midgardproject/midgard-core.git', :branch => 'ratatoskr'
|
2011-03-21 10:31:54 +00:00
|
|
|
homepage 'http://www.midgard-project.org/'
|
|
|
|
md5 '99dcf5d5e39901712a882598e3da17d2'
|
|
|
|
|
2011-03-21 19:58:04 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2011-03-21 10:31:54 +00:00
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'dbus-glib'
|
|
|
|
depends_on 'libgda'
|
|
|
|
|
2012-02-29 01:44:13 +00:00
|
|
|
if ARGV.build_head? and MacOS.xcode_version >= "4.3"
|
|
|
|
# remove the autoreconf if possible, no comment provided about why it is there
|
|
|
|
# so we have no basis to make a decision at this point.
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2011-03-21 10:31:54 +00:00
|
|
|
def install
|
|
|
|
if ARGV.build_head?
|
|
|
|
system "autoreconf", "-i", "--force"
|
|
|
|
system "automake"
|
|
|
|
end
|
2011-03-21 19:58:04 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-libgda4",
|
|
|
|
"--with-dbus-support",
|
|
|
|
"--enable-introspection=no"
|
2011-03-21 10:31:54 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|