Ticket #44345: FScript.diff

File FScript.diff, 4.4 KB (added by ryandesign (Ryan Carsten Schmidt), 10 years ago)
  • Portfile

     
    22# $Id$
    33
    44PortSystem              1.0
     5PortGroup               github 1.0
    56PortGroup               xcode 1.0
    6 PortGroup               compiler_blacklist_versions 1.0
    77
     8github.setup            Kentzo F-Script 2.2.1 v
    89name                    FScript
    9 version                 2.1
    10 revision                1
    1110categories              aqua lang
    1211platforms               darwin
    1312license                 BSD
     
    2423
    2524homepage                http://www.fscript.org/
    2625
    27 master_sites            https://github.com/pmougin/F-Script/zipball/v${version}:fscript
     26checksums               ${distfiles} \
     27                        rmd160  44bf2ec2669fcd20583cd5b824512d55e2018b3f \
     28                        sha256  f8b68e3f725a8f7cdc9a6939880a2d5e5f6c886105f9f07b84e029f43bd171df
    2829
    29 distfiles               pmougin-F-Script-v2.1-0-g25c850c.zip:fscript
    30 
    31 checksums               pmougin-F-Script-v2.1-0-g25c850c.zip \
    32                         sha1    5f1afa244f41ab372953a616d27a72a1573f4a15 \
    33                         rmd160  aa38b5e587bd3c0a8aeb1a8df8a38445d0036952
    34 
    35 use_zip                 yes
    36 
    37 post-extract {
    38     file rename [glob ${workpath}/pmougin-F-Script-*] ${worksrcpath}
    39 }
    40 
    4130patchfiles              patch-FScript.xcodeproj-project.pbxproj.diff
    4231
    4332xcode.target            FScriptFramework F-Script
     
    4433xcode.destroot.settings SKIP_INSTALL=NO
    4534xcode.destroot.type     ""
    4635
    47 set is_xcode_4_x [expr [vercmp $xcodeversion 4] >= 0]
    48 
    49 if !$is_xcode_4_x {
    50     default_variants        +ib_plugin
    51 }
    52 
    53 # It is wrong that MacPorts chooses an SDK based on deployment target.
    54 macosx_deployment_target 10.6
    55 compiler.blacklist {clang < 300}
    56 
    57 platform darwin 11 {
    58     if {! [file exists ${configure.sdkroot}]} {
    59         depends_lib
    60         depends_run
    61         pre-fetch {
    62             ui_error "$name requires the 10.6 SDK to install on Lion."
    63             error "unsupported platform"
    64         }
    65     }
    66 }
    67 
    6836platform darwin {
    69     if {${os.major} >= 12} {
     37    if {${os.major} <= 10} {
    7038        depends_lib
    7139        depends_run
    7240        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."
    7442            error "unsupported platform"
    7543        }
    7644    }
    7745}
    7846
    79 variant ib_plugin description "Install the Interface Builder Plug-in" {
    80         xcode.target-append FScriptIBPlugin
    81         destroot.violate_mtree yes
    82 }
    83 
    8447variant injection_service description "Enable F-Script injection service" {
    8548    master_sites-append     http://www.fscript.org/download:injection_service
    8649    distfiles-append        F-ScriptInjectionService.zip:injection_service
     
    9255    destroot.violate_mtree  yes
    9356}
    9457
    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 
    10458pre-build {
    10559            reinplace "s|MACPORTS_APP_DIR|${applications_dir}|g" ${worksrcpath}/FScript.xcodeproj/project.pbxproj
    10660            reinplace "s|MACPORTS_FRAMEWORK_DIR|${frameworks_dir}|g" ${worksrcpath}/FScript.xcodeproj/project.pbxproj
     
    10761}
    10862
    10963post-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 
    11664        if [variant_isset injection_service] {
    11765            xinstall -d ${destroot}/Library/Services
    11866            file rename "${workpath}/F-ScriptInjectionService/Inject F-Script into application.workflow" ${destroot}/Library/Services/
     
    11967            reinplace "s|/Library/Frameworks|${frameworks_dir}|g" "${destroot}/Library/Services/Inject F-Script into application.workflow/Contents/document.wflow"
    12068        }
    12169}
    122 
    123 livecheck.type      regex
    124 livecheck.url       https://github.com/pmougin/F-Script/tags
    125 livecheck.regex     archive/v(\[^"\]+)${extract.suffix}