# $Id: Portfile 55772 2009-08-18 16:59:45Z jwa@macports.org $

PortSystem 1.0

name		midgard2-core
version		9.03.0
categories	devel
maintainers	jwa
description	A content repository system
long_description Midgard is a content repository system platform \
    with bindings in PHP, Python etc.
platforms	darwin
homepage	http://www.midgard-project.org/

master_sites	http://www.midgard-project.org/midcom-serveattachmentguid-04bfc79a349d11de8fce75943884a55aa55a/

#use_bzip2	yes
checksums           md5     66e342bfc448b9e71ad3ed8013a2239f \
                    sha1    cd4cfb375cfe6e3722fce7509a3d8733f94f4fa6 \
                    rmd160  d806dc6c3aa55e5fce5baae2ee19f86ca33b3e1f

depends_build  port:pkgconfig

depends_lib    port:gettext \
    port:glib2 \
    port:dbus \
    port:libxml2 \
    port:libgda3

configure.args	--sysconfdir=${prefix}/etc/midgard/ \
    --with-dbus-support

post-install	{
    ui_msg "NB! The other parts of the package are:"
    ui_msg "php5-midgard2, and python bindings for 2.5/2.6"
}

livecheck.check	regex
livecheck.url	${homepage}download/9-3
livecheck.regex	${name}-(\[1-9\]+\\.\[0-9\]+\\.\[0-9\]+)\\.tar\\.\[bg\]z
