Ticket #33241: Portfile

File Portfile, 2.6 KB (added by lockhart (Thomas Lockhart), 13 years ago)

Updated complete Portfile putting python libraries into /opt/local/Library/Frameworks/... rather than in /opt/local/lib/... since the latter is not on the MacPorts python search path. Also bump the revision number. Both omniORB and omniORBpy now run without needing paths set.

Line 
1# -*- 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
2# $Id: Portfile 63453 2010-02-05 13:13:48Z stromnov@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-omniORBpy
8version             3.6
9revision            1
10categories          python devel
11maintainers         stromnov openmaintainer
12description         Python bindings for omniORB
13long_description    omniORB is a robust high performance CORBA ORB for C++ and \
14                    Python. omniORB is largely CORBA 2.6 compliant.
15homepage            http://omniorb.sourceforge.net/
16platforms           darwin
17master_sites        sourceforge:project/omniorb/omniORBpy/omniORBpy-${version}
18
19distname            omniORBpy-${version}
20
21use_bzip2           yes
22checksums           md5     a7ab4789b913313f18a1171ff7a140b7 \
23                    sha1    2def5ded7cd30e8d298113ed450b7bd09eaaf26f \
24                    rmd160  96b73cfcac7f2b8df2894c93b3e422bd85412251
25
26# Use the python subports feature but omniORBpy uses make
27# rather than setup.py for building since there are compiled libraries.
28# So the build procedure must unravel the python PortGroup settings
29# and revert to values compatible with a make environment.
30# Ugly but it works.
31
32python.versions     24 25 26 27
33python.default_version 24
34
35if {$subport != $name} {
36    notes \
37"${name} must be compatible with the corresponding omniORB installation.
38Ensure that the same python version has been specified for the omniORB variant."
39
40    depends_lib         port:omniORB \
41                        port:python${python.version}
42
43    patchfiles          patch-dir.mk
44
45    post-patch {
46        # python libraries (PYTHON_PREFIX)
47        reinplace "s|get_python_lib(0,\[^)\]*)|get_python_lib()|g" \
48            ${worksrcpath}/configure
49        # compiled libraries to support python (PYTHON_EXEC_PREFIX)
50        reinplace "s|get_python_lib(1,\[^)\]*)|get_python_lib()|g" \
51            ${worksrcpath}/configure
52    }
53
54    use_configure       yes
55
56    build.type          gnu
57    build.cmd           make
58    build.target        all
59    build.args          {}
60
61    destroot.cmd        ${build.cmd}
62    destroot.target     install
63    destroot.args       {}
64    destroot.destdir    DESTDIR=${destroot}
65
66    variant ssl description {Enable SSL support} {
67        configure.args-append   --with-openssl
68        depends_lib-append      port:openssl
69    }
70    livecheck.type      none
71} else {
72    livecheck.type      regex
73    livecheck.url       http://omniorb.sourceforge.net/releases/
74    livecheck.regex     "omniORBpy-(\\d+(?:\\.\\d+)*)${extract.suffix}"
75}