[75456] trunk/dports/python/py26-pyqt4/Portfile

michaelld at macports.org michaelld at macports.org
Tue Jan 25 08:13:07 PST 2011


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

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

Modified: trunk/dports/python/py26-pyqt4/Portfile
===================================================================
--- trunk/dports/python/py26-pyqt4/Portfile	2011-01-25 16:06:56 UTC (rev 75455)
+++ trunk/dports/python/py26-pyqt4/Portfile	2011-01-25 16:13:06 UTC (rev 75456)
@@ -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/fbccab01/attachment.html>


More information about the macports-changes mailing list