Ticket #55791: Portfile.diff
File Portfile.diff, 2.0 KB (added by lockhart (Thomas Lockhart), 7 years ago) |
---|
-
Portfile
old new 1 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 2 3 3 PortSystem 1.0 4 #PortGroup active_variants 1.14 PortGroup active_variants 1.1 5 5 PortGroup python 1.0 6 6 7 7 name py-omniORBpy 8 8 version 4.2.2 9 python.versions 27 36 10 python.default_version 36 9 11 categories-append devel 10 12 license LGPL-2.1 11 13 platforms darwin … … 34 36 # and revert to values compatible with a make environment. 35 37 # Ugly but it works. 36 38 37 python.versions 2738 39 39 if {${name} ne ${subport}} { 40 40 depends_lib-append port:omniORB 41 41 42 42 # omniORB is not universal 43 43 universal_variant no 44 44 45 # omniORB @4.2.0_1 usesPython 2.7 unconditionally.46 #require_active_variants omniORB python${python.version}45 # The omniORB @4.2.0_1 port (and earlier) used Python 2.7 unconditionally. 46 require_active_variants omniORB python${python.version} 47 47 48 48 patchfiles patch-dir.mk 49 49 … … 75 75 depends_lib-append path:lib/libssl.dylib:openssl 76 76 } 77 77 78 post-destroot { 79 if {${python.version} != 27} { 80 # create a directory under /opt/local/Library/Frameworks/Python.framework/ 81 file mkdir ${destroot}${python.pkgd} 82 # remove only the lowest-level directory to allow a directory copy... 83 file delete ${destroot}${python.pkgd} 84 file rename [glob ${destroot}${prefix}/lib/python*/site-packages] ${destroot}${python.pkgd} 85 # omniORB already installs an empty __init__.py 86 file delete [glob ${destroot}${python.pkgd}/omniidl_be/__init__.py] 87 file delete [glob ${destroot}${python.pkgd}/omniidl_be/__pycache__/__init__*.pyc] 88 } 89 } 90 78 91 livecheck.type none 79 92 } else { 80 93 livecheck.type regex