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
|
|
|
homepage 'http://www.midgard-project.org/'
|
2012-08-01 20:43:24 +00:00
|
|
|
url 'https://github.com/downloads/midgardproject/midgard-core/midgard2-core-10.05.7.1.tar.gz'
|
|
|
|
sha1 'c9e8930492056f7ca714a043296250fdd9ef4c66'
|
2011-03-21 10:31:54 +00:00
|
|
|
|
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
|
2011-03-21 10:31:54 +00:00
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'dbus-glib'
|
|
|
|
depends_on 'libgda'
|
|
|
|
|
2012-08-27 05:50:22 +00:00
|
|
|
if build.head?
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
2012-02-29 01:44:13 +00:00
|
|
|
end
|
|
|
|
|
2011-03-21 10:31:54 +00:00
|
|
|
def install
|
2012-08-27 05:50:22 +00:00
|
|
|
if build.head?
|
2011-03-21 10:31:54 +00:00
|
|
|
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"
|
2011-03-21 10:31:54 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|