# $Id: Portfile 76641 2011-03-03 18:54:44Z jwa@macports.org $

PortSystem 1.0

name		midgard2-core
conflicts	midgard-core

version		10.05.4

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-b459b3e443f711e0a6353dc3bca0241a241a/

#use_bzip2	yes
checksums           md5     99dcf5d5e39901712a882598e3da17d2 \
                    sha1    bffec5e07bb6235e9678c1dbfea2ca0914c63b57 \
                    rmd160  efd8b6ff8c0e4cda2e656d6a03ecca6c3af93e64

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