# -*- 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 99324 2012-11-01 09:45:09Z jwa@macports.org $

PortSystem 1.0

name		midgard2-core
conflicts	midgard-core
license		GPL-2

version		12.09

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	https://github.com/midgardproject/midgard-core/downloads

#use_bzip2	yes
checksums           rmd160  615a6fec3d070ab7c12bcf4640e6026eb354089c \
                    sha256  7c1d17e061df8f3b39fd8944ab97ab7220219b470f7874e74471702d2caca2cb

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 \
    --disable-introspection

notes "The other part of the package is: \
     php-midgard2, as bindings to Python, JavaScript and Java are \
     provided through gobject introspection"

variant introspection description {add introspection support} {
    configure.args-delete   --disable-introspection
    configure.args-append   --enable-introspection
}

livecheck.type	regex
livecheck.url	${master_sites}
livecheck.regex	${name}-(\[0-9.\]+)\\.tar\\.\[bg\]z
