# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 92463 2012-04-29 09:19:01Z jwa@macports.org $

PortSystem 1.0

name		midgard2-core
conflicts	midgard-core

version		10.05.6
revision	1

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-29572db0679d11e1991ffb7bcc71b739b739/

#use_bzip2	yes
checksums           rmd160  8cb2f32c940283e1dc0cf7fdebacb0158f1f5f8b \
                    sha256  f49c21a0340c803d558d53d186ed33edd524415d39554a1bed8290319468d68d

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

platform darwin 11 {
    configure.compiler	llvm-gcc-4.2
}

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

notes "libgda4 needs introspection installed with variant +introspection"

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
