[99947] trunk/dports/science/gnuradio/Portfile

michaelld at macports.org michaelld at macports.org
Wed Nov 21 17:45:28 PST 2012


Revision: 99947
          https://trac.macports.org/changeset/99947
Author:   michaelld at macports.org
Date:     2012-11-21 17:45:28 -0800 (Wed, 21 Nov 2012)
Log Message:
-----------
gnuradio : move Python scripts only if they were created (via the swig variant).

Modified Paths:
--------------
    trunk/dports/science/gnuradio/Portfile

Modified: trunk/dports/science/gnuradio/Portfile
===================================================================
--- trunk/dports/science/gnuradio/Portfile	2012-11-22 01:36:21 UTC (rev 99946)
+++ trunk/dports/science/gnuradio/Portfile	2012-11-22 01:45:28 UTC (rev 99947)
@@ -220,17 +220,20 @@
 
             }
 
-            # move python scripts from
-            # ${prefix}/lib/python${v}/site-packages/* to
-            # ${frameworks_dir}/Python.framework/Versions/${v}/
-            #   lib/python${v}/site-packages/*
-
             post-destroot {
 
-                xinstall -m 755 -d ${destroot}${frameworks_dir}/Python.framework/Versions/${v}/lib/python${v}
-                move ${destroot}${prefix}/lib/python${v}/site-packages \
-                    ${destroot}${frameworks_dir}/Python.framework/Versions/${v}/lib/python${v}
+                if {[variant_isset swig]} {
 
+                    # move python scripts from
+                    # ${prefix}/lib/python${v}/site-packages/* to
+                    # ${frameworks_dir}/Python.framework/Versions/${v}/
+                    #   lib/python${v}/site-packages/*
+
+                    xinstall -m 755 -d ${destroot}${frameworks_dir}/Python.framework/Versions/${v}/lib/python${v}
+                    move ${destroot}${prefix}/lib/python${v}/site-packages \
+                        ${destroot}${frameworks_dir}/Python.framework/Versions/${v}/lib/python${v}
+
+                }
             }
         }
     }]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121121/33129066/attachment.html>


More information about the macports-changes mailing list