Revision
75456
Author
michaelld@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

Diff

Modified: trunk/dports/python/py26-pyqt4/Portfile (75455 => 75456)


--- 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" {