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 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | name py-omniORBpy |
---|
8 | version 3.6 |
---|
9 | revision 1 |
---|
10 | categories python devel |
---|
11 | maintainers stromnov openmaintainer |
---|
12 | description Python bindings for omniORB |
---|
13 | long_description omniORB is a robust high performance CORBA ORB for C++ and \ |
---|
14 | Python. omniORB is largely CORBA 2.6 compliant. |
---|
15 | homepage http://omniorb.sourceforge.net/ |
---|
16 | platforms darwin |
---|
17 | master_sites sourceforge:project/omniorb/omniORBpy/omniORBpy-${version} |
---|
18 | |
---|
19 | distname omniORBpy-${version} |
---|
20 | |
---|
21 | use_bzip2 yes |
---|
22 | checksums 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 | |
---|
32 | python.versions 24 25 26 27 |
---|
33 | python.default_version 24 |
---|
34 | |
---|
35 | if {$subport != $name} { |
---|
36 | notes \ |
---|
37 | "${name} must be compatible with the corresponding omniORB installation. |
---|
38 | Ensure 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 | } |
---|