Ticket #55466: Portfile.diff
File Portfile.diff, 2.6 KB (added by lockhart (Thomas Lockhart), 7 years ago) |
---|
-
Portfile
old new 12 12 name tao 13 13 set name_package ACE+TAO 14 14 version 6.4.5 15 revision 1 15 16 distname ${name_package}-${version} 16 17 categories devel 17 18 platforms darwin … … 41 42 42 43 patch.pre_args -p1 43 44 patchfiles patch-ace-config.h.diff \ 45 patch-ace-config-macosx-sierra.h.diff \ 44 46 patch-include-makeinclude-platform_macros.GNU.diff 45 # patch-include-makeinclude-platform_macosx_elcapitan.GNU.diff46 47 47 48 checksums rmd160 2f1c9feee9744c64c0f8e1f866c841c40fedc986 \ 48 49 sha256 7b71f06a2d92c45989886877ca301cf5ac263d23d40f82d5b19af4a5d6775fe9 … … 79 80 80 81 add_users ${taouser} group=${taouser} realname=TAO\ Server 81 82 82 post-extract {83 copy ${filespath}/org.macports.${taodaemon}.plist ${worksrcpath}/84 }85 86 83 post-patch { 87 84 reinplace "s|@MACOSX@|${os.name}|g" \ 88 85 ${worksrcpath}/ace/config.h \ … … 123 120 } 124 121 125 122 variant server description {Enable CosNaming server} { 126 post-patch {127 ui_info "patching org.macports.${taodaemon}.plist"128 reinplace "s|@PREFIX@|${prefix}|g" \129 ${worksrcpath}/org.macports.${taodaemon}.plist130 reinplace "s|@USER@|${taouser}|g" \131 ${worksrcpath}/org.macports.${taodaemon}.plist132 reinplace "s|@DAEMON@|${taodaemon}|g" \133 ${worksrcpath}/org.macports.${taodaemon}.plist134 }135 136 123 startupitem.create yes 137 124 startupitem.name ${taodaemon} 125 startupitem.executable ${prefix}/bin/${taodaemon} -ORBListenEndpoints iiop://:2809 138 126 } 139 127 140 128 use_configure no … … 162 150 destroot.dir ${worksrcpath}/${subdir} 163 151 command_exec destroot 164 152 } 165 xinstall -d -m 0755 ${destroot}${daemondir}166 copy ${worksrcpath}/org.macports.${taodaemon}.plist \167 ${destroot}${daemondir}/org.macports.${taodaemon}.plist168 153 # Files required to build CosEvent classes but not installed 169 154 copy ${worksrcpath}/TAO/orbsvcs/orbsvcs/ESF ${destroot}/${prefix}/include/orbsvcs/ESF 170 155 } 171 156 172 pre-activate {173 if { [file exists ${daemondir}/org.macports.${taodaemon}.plist] } {174 catch {[file delete -force ${daemondir}/org.macports.${taodaemon}.plist]}175 }176 }177 178 pre-deactivate {179 if { [file exists ${daemondir}/org.macports.${taodaemon}.plist] } {180 catch {system "launchctl unload ${daemondir}/org.macports.${taodaemon}.plist"}181 }182 }183 184 157 livecheck.type regex 185 158 livecheck.url ${master_sites} 186 159 livecheck.regex "ACE\\+TAO-(\[0-9.\]+\[0-9\]+)${extract.suffix}"