# -*- 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 63074 2010-01-25 16:24:26Z stromnov@macports.org $

PortSystem          1.0

name                py26-omniORBpy
version             3.4
categories          python devel
maintainers         stromnov openmaintainer
description         Python bindings for omniORB
long_description    omniORB is a robust high performance CORBA ORB for C++ and \
                    Python. omniORB is largely CORBA 2.6 compliant.
homepage            http://omniorb.sourceforge.net/
platforms           darwin
master_sites        sourceforge:omniorb

distname            omniORBpy-${version}

checksums           md5     d054e99c89c20f86927c52010e9e7449 \
                    sha1    e598bd25289d0a2a09da4c7241513202c8b9adb4 \
                    rmd160  5b389a31907510800ef0913e2e3855038e6a4cf9

configure.python    ${prefix}/bin/python2.6

depends_lib         port:omniORB \
                    port:python26

patchfiles          patch-dir.mk

post-patch {
    reinplace "s|,prefix=\'\$PYTHON_PREFIX\'||g" ${worksrcpath}/configure
    reinplace "s|,prefix=\'\$PYTHON_EXEC_PREFIX\'||g" ${worksrcpath}/configure
}

variant ssl description {Enable SSL support} {
    configure.args-append   --with-openssl
    depends_lib-append      port:openssl
}

livecheck.type      regex
livecheck.url       http://omniorb.sourceforge.net/releases/
livecheck.regex     "omniORBpy-(\\d+(?:\\.\\d+)*)${extract.suffix}"
