[69496] trunk/dports/sysutils/qt4_select

michaelld at macports.org michaelld at macports.org
Wed Jul 7 18:52:33 PDT 2010


Revision: 69496
          http://trac.macports.org/changeset/69496
Author:   michaelld at macports.org
Date:     2010-07-07 18:52:32 -0700 (Wed, 07 Jul 2010)
Log Message:
-----------
Temporary fix for 'qt4_select' to handle creating target link
directories before the link is created.  Fixes ticket #25459.

Modified Paths:
--------------
    trunk/dports/sysutils/qt4_select/Portfile

Added Paths:
-----------
    trunk/dports/sysutils/qt4_select/files/patch-select.sh.diff

Modified: trunk/dports/sysutils/qt4_select/Portfile
===================================================================
--- trunk/dports/sysutils/qt4_select/Portfile	2010-07-08 01:51:14 UTC (rev 69495)
+++ trunk/dports/sysutils/qt4_select/Portfile	2010-07-08 01:52:32 UTC (rev 69496)
@@ -6,7 +6,7 @@
 
 name                    qt4_select
 version                 0.3
-revision                2
+revision                3
 categories              sysutils
 platforms               darwin
 license                 BSD
@@ -29,6 +29,8 @@
     universal_variant no
 }
 
+patchfiles              patch-select.sh.diff
+
 configure.args          --mandir=${prefix}/share/man --name=qt4
 
 destroot.keepdirs       ${destroot}${applications_dir}/Qt

Added: trunk/dports/sysutils/qt4_select/files/patch-select.sh.diff
===================================================================
--- trunk/dports/sysutils/qt4_select/files/patch-select.sh.diff	                        (rev 0)
+++ trunk/dports/sysutils/qt4_select/files/patch-select.sh.diff	2010-07-08 01:52:32 UTC (rev 69496)
@@ -0,0 +1,20 @@
+--- select.sh.orig	2010-07-07 09:49:45.000000000 -0600
++++ select.sh	2010-07-07 12:33:46.000000000 -0600
+@@ -101,6 +101,17 @@
+             rm -f ${2}
+         fi
+     elif [ "ln" == "${1}" ]; then
++        # make sure the target directory exists:
++        # retrieve the directory path from ${3}
++        dir_path=`dirname ${3}`
++        if [ ! -e ${dir_path} ]; then
++            if [ 1 == "${noexec}" ]; then
++                echo "mkdir -p ${dir_path}"
++            else
++                mkdir -p ${dir_path}
++            fi
++        fi
++        # now that the target directory exists, create the link
+         if [ 1 == "${noexec}" ]; then
+             echo "ln -snf ${2} ${3}"
+         else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100707/5eb00d47/attachment.html>


More information about the macports-changes mailing list