New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79814


Ignore:
Timestamp:
06/26/11 14:17:36 (4 years ago)
Author:
ciserlohn@…
Message:

FScript: fetch zipped sources, ib_plugin variant rewrite, xcode 4 check - see #29566

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/aqua/FScript/Portfile

    r79775 r79814  
    77name                    FScript 
    88version                 2.1 
     9revision                1 
    910categories              aqua lang 
    1011platforms               darwin 
     
    2324homepage                http://www.fscript.org/ 
    2425 
    25 fetch.type              git 
    26 git.url                 git://github.com/pmougin/F-Script 
    27 git.branch              25c850c66760bcc5e69af273607e5fae7920fbe5 
     26master_sites            https://github.com/pmougin/F-Script/zipball/v${version}:fscript 
     27 
     28distfiles               pmougin-F-Script-v2.1-0-g25c850c.zip:fscript 
     29 
     30checksums               pmougin-F-Script-v2.1-0-g25c850c.zip \ 
     31                        sha1    5f1afa244f41ab372953a616d27a72a1573f4a15 \ 
     32                        rmd160  aa38b5e587bd3c0a8aeb1a8df8a38445d0036952 
     33 
     34use_zip                 yes 
     35 
     36post-extract { 
     37    file rename [glob ${workpath}/pmougin-F-Script-*] ${worksrcpath} 
     38} 
    2839 
    2940patchfiles              patch-FScript.xcodeproj-project.pbxproj.diff 
    3041 
    31 xcode.target            FScriptFramework F-Script FScriptIBPlugin 
     42xcode.target            FScriptFramework F-Script 
    3243xcode.destroot.settings SKIP_INSTALL=NO 
    3344xcode.destroot.type     "" 
    3445 
    35 if {[variant_isset injection_service] || ![variant_isset without_ibplugin]} { 
    36     destroot.violate_mtree yes 
     46set is_xcode_4_x [expr [rpm-vercomp $xcodeversion 4] >= 0] 
     47 
     48if !$is_xcode_4_x { 
     49    default_variants        +ib_plugin 
    3750} 
    3851 
    39 variant without_ibplugin description "Disable Interface Builder Plug-in" { 
    40         xcode.target-delete FScriptIBPlugin 
     52variant ib_plugin description "Install the Interface Builder Plug-in" { 
     53        xcode.target-append FScriptIBPlugin 
     54        destroot.violate_mtree yes 
    4155} 
    4256 
    43 set ibplugin_dir "${developer_dir}/Platforms/MacOSX.platform/Developer/Library/Interface Builder/Plug-ins" 
     57variant injection_service description "Enable F-Script injection service" { 
     58    master_sites-append     http://www.fscript.org/download:injection_service 
     59    distfiles-append        F-ScriptInjectionService.zip:injection_service 
    4460 
    45 variant injection_service description "Enable F-Script injection service" { 
    46     master_sites            http://www.fscript.org/download 
    47     distfiles               F-ScriptInjectionService.zip 
     61    checksums-append        F-ScriptInjectionService.zip \ 
     62                            sha1   58436fe48375abdfed6251a2fc2ee2b2a39d6bf1 \ 
     63                            rmd160 dd7dbf0580584f14742c5e38a5f59df4bbb5c951 
    4864 
    49     checksums               F-ScriptInjectionService.zip \ 
    50                             1a628553308b4e607854e5e6393790d5 
    51     use_zip                 yes 
     65    destroot.violate_mtree  yes 
     66} 
    5267 
     68pre-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    } 
    5375} 
    5476 
     
    5981 
    6082post-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} 
    6487        } 
    6588 
Note: See TracChangeset for help on using the changeset viewer.