Ignore:
Timestamp:
Nov 13, 2013, 12:47:28 PM (6 years ago)
Author:
ryandesign@…
Message:

app-1.0.tcl: when app.executable refers to a file that exists but does not belong to this port, assume it belongs to a dependency and symlink it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/app-1.0.tcl

    r96776 r113299  
    22# $Id$
    33#
    4 # Copyright (c) 2011 The MacPorts Project
     4# Copyright (c) 2011-2013 The MacPorts Project
    55# All rights reserved.
    66#
     
    219219                if {[string first ${workpath} ${executable}] == 0 || [string first ${filespath} ${executable}] == 0} {
    220220                    xinstall ${executable} ${destroot}${applications_dir}/${app.name}.app/Contents/MacOS/${app.name}
     221               
     222                # app.executable refers to a file that exists but does not belong to this port.
     223                # Assume it belongs to a dependency and symlink it.
    221224                } else {
    222                     return -code error "app.executable ${app.executable} does not belong to this port"
     225                    ln -s ${executable} ${destroot}${applications_dir}/${app.name}.app/Contents/MacOS/${app.name}
    223226                }
    224227            } else {
Note: See TracChangeset for help on using the changeset viewer.