Ticket #44345: FScript.diff
File FScript.diff, 4.4 KB (added by ryandesign (Ryan Carsten Schmidt), 10 years ago) |
---|
-
Portfile
2 2 # $Id$ 3 3 4 4 PortSystem 1.0 5 PortGroup github 1.0 5 6 PortGroup xcode 1.0 6 PortGroup compiler_blacklist_versions 1.07 7 8 github.setup Kentzo F-Script 2.2.1 v 8 9 name FScript 9 version 2.110 revision 111 10 categories aqua lang 12 11 platforms darwin 13 12 license BSD … … 24 23 25 24 homepage http://www.fscript.org/ 26 25 27 master_sites https://github.com/pmougin/F-Script/zipball/v${version}:fscript 26 checksums ${distfiles} \ 27 rmd160 44bf2ec2669fcd20583cd5b824512d55e2018b3f \ 28 sha256 f8b68e3f725a8f7cdc9a6939880a2d5e5f6c886105f9f07b84e029f43bd171df 28 29 29 distfiles pmougin-F-Script-v2.1-0-g25c850c.zip:fscript30 31 checksums pmougin-F-Script-v2.1-0-g25c850c.zip \32 sha1 5f1afa244f41ab372953a616d27a72a1573f4a15 \33 rmd160 aa38b5e587bd3c0a8aeb1a8df8a38445d003695234 35 use_zip yes36 37 post-extract {38 file rename [glob ${workpath}/pmougin-F-Script-*] ${worksrcpath}39 }40 41 30 patchfiles patch-FScript.xcodeproj-project.pbxproj.diff 42 31 43 32 xcode.target FScriptFramework F-Script … … 44 33 xcode.destroot.settings SKIP_INSTALL=NO 45 34 xcode.destroot.type "" 46 35 47 set is_xcode_4_x [expr [vercmp $xcodeversion 4] >= 0]48 49 if !$is_xcode_4_x {50 default_variants +ib_plugin51 }52 53 # It is wrong that MacPorts chooses an SDK based on deployment target.54 macosx_deployment_target 10.655 compiler.blacklist {clang < 300}56 57 platform darwin 11 {58 if {! [file exists ${configure.sdkroot}]} {59 depends_lib60 depends_run61 pre-fetch {62 ui_error "$name requires the 10.6 SDK to install on Lion."63 error "unsupported platform"64 }65 }66 }67 68 36 platform darwin { 69 if {${os.major} >= 12} {37 if {${os.major} <= 10} { 70 38 depends_lib 71 39 depends_run 72 40 pre-fetch { 73 ui_error "$ name does not build on Mountain Lion or later."41 ui_error "${name} does not build on Snow Leopard or earlier." 74 42 error "unsupported platform" 75 43 } 76 44 } 77 45 } 78 46 79 variant ib_plugin description "Install the Interface Builder Plug-in" {80 xcode.target-append FScriptIBPlugin81 destroot.violate_mtree yes82 }83 84 47 variant injection_service description "Enable F-Script injection service" { 85 48 master_sites-append http://www.fscript.org/download:injection_service 86 49 distfiles-append F-ScriptInjectionService.zip:injection_service … … 92 55 destroot.violate_mtree yes 93 56 } 94 57 95 pre-configure {96 if {[variant_isset ib_plugin] && $is_xcode_4_x} {97 ui_error "Xcode 4.x does not support Interface Builder plug-ins.\n \98 Please install ${name} without the Interface Builder plug-in:\n \99 sudo port install ${name} -ib_plugin"100 return -code error "incompatible xcode version"101 }102 }103 104 58 pre-build { 105 59 reinplace "s|MACPORTS_APP_DIR|${applications_dir}|g" ${worksrcpath}/FScript.xcodeproj/project.pbxproj 106 60 reinplace "s|MACPORTS_FRAMEWORK_DIR|${frameworks_dir}|g" ${worksrcpath}/FScript.xcodeproj/project.pbxproj … … 107 61 } 108 62 109 63 post-destroot { 110 if [variant_isset ib_plugin] {111 set ibplugin_dir "${developer_dir}/Platforms/MacOSX.platform/Developer/Library/Interface Builder/Plug-ins"112 xinstall -d -m 755 ${destroot}${ibplugin_dir}113 file rename ${destroot}${applications_dir}/FScriptIBPlugin.ibplugin ${destroot}${ibplugin_dir}114 }115 116 64 if [variant_isset injection_service] { 117 65 xinstall -d ${destroot}/Library/Services 118 66 file rename "${workpath}/F-ScriptInjectionService/Inject F-Script into application.workflow" ${destroot}/Library/Services/ … … 119 67 reinplace "s|/Library/Frameworks|${frameworks_dir}|g" "${destroot}/Library/Services/Inject F-Script into application.workflow/Contents/document.wflow" 120 68 } 121 69 } 122 123 livecheck.type regex124 livecheck.url https://github.com/pmougin/F-Script/tags125 livecheck.regex archive/v(\[^"\]+)${extract.suffix}