# $Id: Portfile 85525 2011-10-14 06:35:08Z jmr@macports.org $

PortSystem 1.0

name            py26-orbit
set my_name     pyorbit
version         2.24.0
set branch      [join [lrange [split $version .] 0 1] .]
categories      python gnome
license         LGPL-2.1+
platforms       darwin
maintainers     nomaintainer
description     Python binding for the ORBit2 CORBA ORB - Default branch.
long_description PyORBit is a Python binding for the ORBit2 CORBA ORB. It \
                was developped to suit the needs of the bonobo bindings \
                in GNOME-Python, but is usable for other purposes as well. \
                It aims to follow the standard Python language mapping for \
                CORBA. It can generate stubs at runtime from typelibs, IDL \
                files, or by introspecting remote objects using ORBit2's \
                IModule typelib capabilities.

homepage        http://www.pygtk.org/
master_sites    gnome:sources/$my_name/$branch/
use_bzip2       yes
distname        $my_name-$version

checksums       md5     574593815e75ee6e98062c75d6d1581f \
                sha1    f9877ce9672ed3c3d001b86924f1b6514a79efc9 \
                rmd160  55aa1c3ac0739d398d8e9bbda93ef36f7c659360

depends_build   port:pkgconfig
depends_lib     port:python26 \
                port:orbit2

set python.prefix   ${frameworks_dir}/Python.framework/Versions/2.6

patchfiles      patch-configure.diff
post-patch {
   reinplace "s|@@PYTHON_PREFIX@@|${python.prefix}|g" ${worksrcpath}/configure
}

configure.args  --includedir=${python.prefix}/include/python2.6
configure.python ${prefix}/bin/python2.6

use_parallel_build  yes

build.args      PYTHON_LDFLAGS= PYTHON_LIBS=

post-destroot {
   move ${destroot}${prefix}/lib/pkgconfig ${destroot}${python.prefix}/lib
}

livecheck.type  regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/$my_name/$branch/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}

