# $Id: Portfile 68261 2010-05-30 12:54:02Z jwa@macports.org $

PortSystem 1.0

name		midgard2-core
conflicts	midgard-core

version		10.05.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-eaf257c0594811df946fe54c7cecf0c8f0c8/

#use_bzip2	yes
checksums           md5     aed45d0d9fd7fc941557ce023bc76388 \
                    sha1    4d4fdb62e5d2f13eec7e18280a45431b27ee117c \
                    rmd160  d77733b6bdc405f7964b5348b52323fdbcc347b2

depends_build  port:pkgconfig

depends_lib    port:gettext \
    path:lib/pkgconfig/glib-2.0.pc:glib2 \
    port:dbus-glib \
    port:libxml2 \
    port:libgda4

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.type	regex
livecheck.url	${homepage}download/9-9
livecheck.regex	${name}-(\[1-9\]+\\.\[0-9\]+\\.\[0-9\]*)\\.tar\\.\[bg\]z
#livecheck.regex	${name}-(\[1-9\]+\\.\[0-9\]+\\.\[0-9\]+)\\.tar\\.\[bg\]z
