Ticket #55790: Portfile.diff
File Portfile.diff, 2.5 KB (added by lockhart (Thomas Lockhart), 7 years ago) |
---|
-
Portfile
old new 2 2 3 3 PortSystem 1.0 4 4 PortGroup conflicts_build 1.0 5 PortGroup active_variants 1.1 5 6 6 7 name omniORB 7 8 version 4.2.2 … … 18 19 homepage http://omniorb.sourceforge.net/ 19 20 20 21 conflicts_build ${name} 21 depends_lib port:python2722 22 23 23 master_sites sourceforge:project/omniorb/omniORB/omniORB-${version}/ 24 24 use_bzip2 yes … … 32 32 ${worksrcpath}/mk/beforeauto.mk.in 33 33 } 34 34 35 configure.python ${prefix}/bin/python2.736 35 configure.args CC="${configure.cc}" \ 37 36 CXX="${configure.cxx}" \ 38 37 CCFLAGS="[get_canonical_archflags cc]" \ … … 44 43 configure.args-append --build=${build_arch}-apple-${os.platform}${os.version} 45 44 } 46 45 46 # force a global variable 47 set python_framework [] 48 49 variant python27 conflicts python36 description {Build Python 2.7 IDL support} { 50 configure.python ${prefix}/bin/python2.7 51 set python_framework ${frameworks_dir}/Python.framework/Versions/2.7/lib 52 depends_lib-append port:python27 53 configure.pkg_config_path ${python_framework}/lib/pkgconfig 54 55 notes "Install py27-omniORBpy for omniORBpy." 56 } 57 58 variant python36 conflicts python27 description {Build Python 3.6 IDL support} { 59 configure.python ${prefix}/bin/python3.6 60 set python_framework ${frameworks_dir}/Python.framework/Versions/3.6/lib 61 depends_lib-append port:python36 62 configure.pkg_config_path ${python_framework}/lib/pkgconfig 63 64 notes "Install py36-omniORBpy for omniORBpy." 65 } 66 67 if {![variant_isset python27]} { 68 default_variants +python36 69 } 70 47 71 variant ssl description {Enable SSL support} { 48 72 configure.args-append --with-openssl 49 73 depends_lib-append path:lib/libssl.dylib:openssl 50 74 } 51 75 52 notes " 53 Install py27-omniORBpy for omniORBpy. 54 " 76 post-destroot { 77 if {[variant_isset python36]} { 78 # omniORB installs into /opt/local/lib/python3.6/site-packages/ 79 # but omniORBpy installs into /opt/local/Library/Frameworks/Python.framework/Versions/X.Y/ 80 # so adjust locations for this package 81 file mkdir [file normalize ${destroot}${python_framework}] 82 file rename [glob ${destroot}${prefix}/lib/python*] ${destroot}${python_framework} 83 } 84 } 55 85 56 86 livecheck.type regex 57 87 livecheck.url http://omniorb.sourceforge.net/