Changeset 76837


Ignore:
Timestamp:
Mar 10, 2011, 5:56:51 AM (9 years ago)
Author:
jmr@…
Message:

FScript: update to 2.1, add maintainer (#28710), fix framework install_name (#28095)

Location:
trunk/dports/aqua/FScript
Files:
2 added
1 edited

Legend:

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

    r76291 r76837  
    66
    77name                    FScript
    8 version                 2.0.1
     8version                 2.1
    99categories              aqua lang
    1010platforms               darwin
    1111license                 BSD
    12 maintainers             nomaintainer
     12maintainers             googlemail.com:ciserlohn
    1313
    1414description             Open-source interactive Cocoa scripting environment
     
    2525fetch.type              git
    2626git.url                 git://github.com/pmougin/F-Script
    27 git.branch              9f46645527bd47cdaae9f1211e282571b4667603
     27git.branch              25c850c66760bcc5e69af273607e5fae7920fbe5
     28
     29patchfiles              patch-FScript.xcodeproj-project.pbxproj.diff
    2830
    2931xcode.target            FScriptFramework F-Script FScriptIBPlugin
    3032xcode.destroot.settings SKIP_INSTALL=NO
     33xcode.destroot.type     ""
    3134
    32 destroot.violate_mtree  yes
     35if {[variant_isset injection_service] || ![variant_isset without_ibplugin]} {
     36    destroot.violate_mtree yes
     37}
    3338
    3439variant without_ibplugin description "Disable Interface Builder Plug-in" {
    3540        xcode.target-delete FScriptIBPlugin
    36         destroot.violate_mtree no
    3741}
    3842
    3943set ibplugin_dir "${developer_dir}/Platforms/MacOSX.platform/Developer/Library/Interface Builder/Plug-ins"
    4044
     45variant injection_service description "Enable F-Script injection service" {
     46    master_sites            http://www.fscript.org/download
     47    distfiles               F-ScriptInjectionService.zip
     48
     49    checksums               F-ScriptInjectionService.zip \
     50                            1a628553308b4e607854e5e6393790d5
     51    use_zip                 yes
     52
     53}
     54
     55pre-build {
     56            reinplace "s|MACPORTS_APP_DIR|${applications_dir}|g" ${worksrcpath}/FScript.xcodeproj/project.pbxproj
     57            reinplace "s|MACPORTS_FRAMEWORK_DIR|${frameworks_dir}|g" ${worksrcpath}/FScript.xcodeproj/project.pbxproj
     58}
     59
    4160post-destroot {
    42         delete ${destroot}${applications_dir}/FSTest1.app
    43         delete ${destroot}${applications_dir}/FSTest2.app
    44         file rename ${destroot}${applications_dir}/FScript.framework ${destroot}${frameworks_dir}/
    4561        if { ![variant_isset without_ibplugin] } {
    4662                xinstall -d -m 755 ${destroot}${ibplugin_dir}
    4763                file rename ${destroot}${applications_dir}/FScriptIBPlugin.ibplugin ${destroot}${ibplugin_dir}
    4864        }
     65
     66        if [variant_isset injection_service] {
     67            xinstall -d ${destroot}/Library/Services
     68            file rename "${workpath}/F-ScriptInjectionService/Inject F-Script into application.workflow" ${destroot}/Library/Services/
     69            reinplace "s|/Library/Frameworks|${frameworks_dir}|g" "${destroot}/Library/Services/Inject F-Script into application.workflow/Contents/document.wflow"
     70        }
    4971}
Note: See TracChangeset for help on using the changeset viewer.