[75454] trunk/dports/python/py27-pyqt4/Portfile

michaelld at macports.org michaelld at macports.org
Tue Jan 25 08:06:32 PST 2011


Revision: 75454
          http://trac.macports.org/changeset/75454
Author:   michaelld at macports.org
Date:     2011-01-25 08:06:29 -0800 (Tue, 25 Jan 2011)
Log Message:
-----------
py27-pyqt4: Move the Qsci API file only if it exists (if Qsci is installed at build time).  Ticket #28123.

Modified Paths:
--------------
    trunk/dports/python/py27-pyqt4/Portfile

Modified: trunk/dports/python/py27-pyqt4/Portfile
===================================================================
--- trunk/dports/python/py27-pyqt4/Portfile	2011-01-25 15:41:29 UTC (rev 75453)
+++ trunk/dports/python/py27-pyqt4/Portfile	2011-01-25 16:06:29 UTC (rev 75454)
@@ -118,9 +118,11 @@
     system "install_name_tool -id ${new_name} \
         ${destroot}${qt_plugins_dir}/designer/${new_name}"
 
-    # (b) Qsci API file
-    move ${destroot}${qt_data_dir}/qsci/api/python/PyQt4.api \
-        ${destroot}${qt_data_dir}/qsci/api/python/PyQt4-Python${pyversion}.api
+    # (b) Qsci API file, if it exists (if Qsci is installed at build time)
+    if {[file exists ${destroot}${qt_data_dir}/qsci/api/python/PyQt4.api]} {
+        move ${destroot}${qt_data_dir}/qsci/api/python/PyQt4.api \
+            ${destroot}${qt_data_dir}/qsci/api/python/PyQt4-Python${pyversion}.api
+    }
 }
 
 variant debug description "Build debug libraries" {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110125/ef141a09/attachment.html>


More information about the macports-changes mailing list