# -*- 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 53088 2009-06-29 05:16:32Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-midgard2
set internal_name	python-midgard2

version             9.03.0
categories-append   www
maintainers         jwa
description         Python interface to the Midgard content repository
long_description    Python interface to the Midgard content repository

homepage	http://www.midgard-project.org/

platforms           darwin
depends_lib         port:midgard2-core \
    port:py26-gobject

master_sites        http://www.midgard-project.org/midcom-serveattachmentguid-eb479be4349c11de8b49dbd1de0b93f793f7/
distname            ${internal_name}-${version}
#use_bzip2           yes

checksums           md5     9b9bf10778a325cd4156388bdb3f9f72 \
                    sha1    1e729e07d3c43324224c048122e81d658025ed42 \
                    rmd160  34882b46d75b83ce62607bbce18847293def0fd7

patchfiles			setup.py.diff
use_configure		no

build.cmd           ${prefix}/bin/python2.6 setup.py

destroot.cmd        ${build.cmd}
destroot.destdir    --prefix=${prefix} --root=${destroot}

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