# -*- 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
PortGroup active_variants 1.1
python.default_version 36
supported_archs i386 x86_64
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/
master_sites sourceforge:project/omniorb/omniORBpy/omniORBpy-${version}
distname omniORBpy-${version}
checksums rmd160 7a162d5c1ceb130b5951b8981f215a454c326ab8 \
sha256 f3686e5f85b7c7fec83a1ec97dc6874d336e24830c0e68f1e1ecbd798fa1696a \
# Use the python subports feature but omniORBpy uses make
# rather than setup.py for building since there are compiled libraries.
# So the build procedure must unravel the python PortGroup settings
# and revert to values compatible with a make environment.
if {${name} ne ${subport}} {
depends_lib-append port:omniORB
# omniORB is not universal
# The omniORB @4.2.0_1 port (and earlier) used Python 2.7 unconditionally.
require_active_variants omniORB python${python.version}
# python libraries (PYTHON_PREFIX)
reinplace "s|get_python_lib(0,\[^)\]*)|get_python_lib()|g" \
# compiled libraries to support python (PYTHON_EXEC_PREFIX)
reinplace "s|get_python_lib(1,\[^)\]*)|get_python_lib()|g" \
configure.python ${python.bin}