Ticket #44897: Portfile.diff
File Portfile.diff, 2.0 KB (added by lockhart (Thomas Lockhart), 10 years ago) |
---|
-
Portfile
old new 13 13 name tao 14 14 set name_package ACE+TAO 15 15 version 6.2.6 16 revision 1 16 17 distname ${name_package}-${version} 17 18 categories devel 18 19 platforms darwin … … 77 78 add_users ${taouser} group=${taouser} realname=TAO\ Server 78 79 79 80 post-extract { 80 copy ${filespath}/org.macports.${taodaemon}.plist \ 81 ${worksrcpath}/ 81 copy ${filespath}/org.macports.${taodaemon}.plist ${worksrcpath}/ 82 82 } 83 83 84 84 post-patch { … … 131 131 ${worksrcpath}/org.macports.${taodaemon}.plist 132 132 } 133 133 134 pre-install {135 file delete ${destroot}${daemondir}/org.macports.${taodaemon}.plist136 file delete ${destroot}${daemondir}/${taodaemon}.wrapper137 copy ${worksrcpath}/org.macports.${taodaemon}.plist \138 ${destroot}${daemondir}/org.macports.${taodaemon}.plist139 }140 141 134 startupitem.create yes 142 135 startupitem.name ${taodaemon} 143 136 } … … 167 160 destroot.dir ${worksrcpath}/${subdir} 168 161 command_exec destroot 169 162 } 163 xinstall -d -m 0755 ${destroot}${daemondir} 164 copy ${worksrcpath}/org.macports.${taodaemon}.plist \ 165 ${destroot}${daemondir}/org.macports.${taodaemon}.plist 170 166 # Files required to build CosEvent classes but not installed 171 167 copy ${worksrcpath}/TAO/orbsvcs/orbsvcs/ESF ${destroot}/${prefix}/include/orbsvcs/ESF 172 168 } 173 169 170 pre-activate { 171 if { [file exists ${daemondir}/org.macports.${taodaemon}.plist] } { 172 catch {[file delete -force ${daemondir}/org.macports.${taodaemon}.plist]} 173 } 174 } 175 176 pre-deactivate { 177 if { [file exists ${daemondir}/org.macports.${taodaemon}.plist] } { 178 catch {system "launchctl unload ${daemondir}/org.macports.${taodaemon}.plist"} 179 } 180 } 181 174 182 livecheck.type regex 175 183 livecheck.url ${master_sites} 176 184 livecheck.regex "ACE\\+TAO-(\[0-9.\]+\[0-9\]+)${extract.suffix}"