Ticket #29566: FScript.diff
File FScript.diff, 3.6 KB (added by ci42, 13 years ago) |
---|
-
Portfile
old new 6 6 7 7 name FScript 8 8 version 2.1 9 revision 1 9 10 categories aqua lang 10 11 platforms darwin 11 12 license BSD … … 22 23 23 24 homepage http://www.fscript.org/ 24 25 25 fetch.type git 26 git.url git://github.com/pmougin/F-Script 27 git.branch 25c850c66760bcc5e69af273607e5fae7920fbe5 26 master_sites https://github.com/pmougin/F-Script/zipball/v${version}:fscript 27 28 distfiles pmougin-F-Script-v2.1-0-g25c850c.zip:fscript 29 30 checksums pmougin-F-Script-v2.1-0-g25c850c.zip \ 31 sha1 5f1afa244f41ab372953a616d27a72a1573f4a15 \ 32 rmd160 aa38b5e587bd3c0a8aeb1a8df8a38445d0036952 33 34 use_zip yes 35 36 post-extract { 37 file rename [glob ${workpath}/pmougin-F-Script-*] ${worksrcpath} 38 } 28 39 29 40 patchfiles patch-FScript.xcodeproj-project.pbxproj.diff 30 41 31 xcode.target FScriptFramework F-Script FScriptIBPlugin42 xcode.target FScriptFramework F-Script 32 43 xcode.destroot.settings SKIP_INSTALL=NO 33 44 xcode.destroot.type "" 34 45 35 if {[variant_isset injection_service] || ![variant_isset without_ibplugin]} { 36 destroot.violate_mtree yes 37 } 46 set is_xcode_4_x [expr [rpm-vercomp $xcodeversion 4] >= 0] 38 47 39 variant without_ibplugin description "Disable Interface Builder Plug-in"{40 xcode.target-delete FScriptIBPlugin48 if !$is_xcode_4_x { 49 default_variants +ib_plugin 41 50 } 42 51 43 set ibplugin_dir "${developer_dir}/Platforms/MacOSX.platform/Developer/Library/Interface Builder/Plug-ins" 52 variant ib_plugin description "Install the Interface Builder Plug-in" { 53 xcode.target-append FScriptIBPlugin 54 destroot.violate_mtree yes 55 } 44 56 45 57 variant injection_service description "Enable F-Script injection service" { 46 master_sites http://www.fscript.org/download47 distfiles F-ScriptInjectionService.zip58 master_sites-append http://www.fscript.org/download:injection_service 59 distfiles-append F-ScriptInjectionService.zip:injection_service 48 60 49 checksums F-ScriptInjectionService.zip \ 50 1a628553308b4e607854e5e6393790d5 51 use_zip yes 61 checksums-append F-ScriptInjectionService.zip \ 62 sha1 58436fe48375abdfed6251a2fc2ee2b2a39d6bf1 \ 63 rmd160 dd7dbf0580584f14742c5e38a5f59df4bbb5c951 64 65 destroot.violate_mtree yes 66 } 52 67 68 pre-configure { 69 if {[variant_isset ib_plugin] && $is_xcode_4_x} { 70 ui_error "Xcode 4.x does not support Interface Builder plug-ins.\n \ 71 Please install ${name} without the Interface Builder plug-in:\n \ 72 sudo port install ${name} -ib_plugin" 73 return -code error "incompatible xcode version" 74 } 53 75 } 54 76 55 77 pre-build { … … 58 80 } 59 81 60 82 post-destroot { 61 if { ![variant_isset without_ibplugin] } { 62 xinstall -d -m 755 ${destroot}${ibplugin_dir} 63 file rename ${destroot}${applications_dir}/FScriptIBPlugin.ibplugin ${destroot}${ibplugin_dir} 83 if [variant_isset ib_plugin] { 84 set ibplugin_dir "${developer_dir}/Platforms/MacOSX.platform/Developer/Library/Interface Builder/Plug-ins" 85 xinstall -d -m 755 ${destroot}${ibplugin_dir} 86 file rename ${destroot}${applications_dir}/FScriptIBPlugin.ibplugin ${destroot}${ibplugin_dir} 64 87 } 65 88 66 89 if [variant_isset injection_service] {