[113299] trunk/dports/_resources/port1.0/group/app-1.0.tcl

ryandesign at macports.org ryandesign at macports.org
Wed Nov 13 04:47:28 PST 2013


Revision: 113299
          https://trac.macports.org/changeset/113299
Author:   ryandesign at macports.org
Date:     2013-11-13 04:47:28 -0800 (Wed, 13 Nov 2013)
Log 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

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/app-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/app-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/app-1.0.tcl	2013-11-13 12:33:56 UTC (rev 113298)
+++ trunk/dports/_resources/port1.0/group/app-1.0.tcl	2013-11-13 12:47:28 UTC (rev 113299)
@@ -1,7 +1,7 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 #
-# Copyright (c) 2011 The MacPorts Project
+# Copyright (c) 2011-2013 The MacPorts Project
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -218,8 +218,11 @@
                 # If app.executable starts with ${workpath} or ${filespath}, copy it.
                 if {[string first ${workpath} ${executable}] == 0 || [string first ${filespath} ${executable}] == 0} {
                     xinstall ${executable} ${destroot}${applications_dir}/${app.name}.app/Contents/MacOS/${app.name}
+                
+                # app.executable refers to a file that exists but does not belong to this port.
+                # Assume it belongs to a dependency and symlink it.
                 } else {
-                    return -code error "app.executable ${app.executable} does not belong to this port"
+                    ln -s ${executable} ${destroot}${applications_dir}/${app.name}.app/Contents/MacOS/${app.name}
                 }
             } else {
                 return -code error "app.executable ${app.executable} does not exist"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131113/5c2df9ef/attachment.html>


More information about the macports-changes mailing list