source: trunk/dports/python/py-omniORBpy/Portfile

Last change on this file was 139229, checked in by jeremyhu@…, 2 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
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 139229 2015-08-08 03:10:35Z ryandesign@macports.org $
3
4PortSystem          1.0
5#PortGroup           active_variants 1.1
6PortGroup           python 1.0
7
8name                py-omniORBpy
9version             4.2.0
10categories-append   devel
11license             LGPL-2.1
12platforms           darwin
13supported_archs     i386 x86_64
14
15maintainers         nomaintainer
16
17description         Python bindings for omniORB
18
19long_description    omniORB is a robust high performance CORBA ORB for C++ and \
20                    Python. omniORB is largely CORBA 2.6 compliant.
21
22homepage            http://omniorb.sourceforge.net/
23master_sites        sourceforge:project/omniorb/omniORBpy/omniORBpy-${version}
24
25distname            omniORBpy-${version}
26
27checksums           rmd160  4359c1723126e74f06fadf9f24bc884819de7f85 \
28                    sha256  c82b3bafacbb93cfaace41765219155f2b24eb3781369bba0581feb1dc50fe5e
29
30use_bzip2           yes
31
32# Use the python subports feature but omniORBpy uses make
33# rather than setup.py for building since there are compiled libraries.
34# So the build procedure must unravel the python PortGroup settings
35# and revert to values compatible with a make environment.
36# Ugly but it works.
37
38python.versions     27
39
40if {${name} ne ${subport}} {
41    depends_lib-append  port:omniORB
42
43    # omniORB is not universal
44    universal_variant   no
45
46    # omniORB @4.2.0_1 uses Python 2.7 unconditionally.
47    #require_active_variants omniORB python${python.version}
48
49    patchfiles          patch-dir.mk
50
51    post-patch {
52        # python libraries (PYTHON_PREFIX)
53        reinplace "s|get_python_lib(0,\[^)\]*)|get_python_lib()|g" \
54            ${worksrcpath}/configure
55        # compiled libraries to support python (PYTHON_EXEC_PREFIX)
56        reinplace "s|get_python_lib(1,\[^)\]*)|get_python_lib()|g" \
57            ${worksrcpath}/configure
58    }
59
60    use_configure       yes
61
62    configure.python    ${python.bin}
63
64    build.type          gnu
65    build.cmd           make
66    build.target        all
67    build.args          {}
68
69    destroot.cmd        ${build.cmd}
70    destroot.target     install
71    destroot.args       {}
72    destroot.destdir    DESTDIR=${destroot}
73
74    variant ssl description {Enable SSL support} {
75        configure.args-append   --with-openssl
76        depends_lib-append      path:lib/libssl.dylib:openssl
77    }
78
79    livecheck.type      none
80} else {
81    livecheck.type      regex
82    livecheck.url       http://sourceforge.net/projects/omniorb/files/omniORBpy/
83    livecheck.regex     "/omniorb/files/omniORBpy/omniORBpy-(\\d+\\.\\d+(?:\\.\\d+)*)/"
84}
Note: See TracBrowser for help on using the repository browser.