[138378] trunk/dports/science/gqrx/Portfile

michaelld at macports.org michaelld at macports.org
Mon Jul 6 12:47:51 PDT 2015


Revision: 138378
          https://trac.macports.org/changeset/138378
Author:   michaelld at macports.org
Date:     2015-07-06 12:47:51 -0700 (Mon, 06 Jul 2015)
Log Message:
-----------
gqrx:
+ fix comment about legacy using Qt4 only;
+ make sure to create post-destroot directories before using them.

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

Modified: trunk/dports/science/gqrx/Portfile
===================================================================
--- trunk/dports/science/gqrx/Portfile	2015-07-06 19:39:00 UTC (rev 138377)
+++ trunk/dports/science/gqrx/Portfile	2015-07-06 19:47:51 UTC (rev 138378)
@@ -154,7 +154,7 @@
         }
     } else {
 
-        # gqrx-legacy uses Qt4
+        # gqrx-legacy uses Qt4 only
         PortGroup qmake 1.0
 
     }
@@ -179,10 +179,17 @@
 
     post-destroot {
 
-        # link the executable back to $qt_bins_dir
+        # link the executable back to $qt_bins_dir, and, if $qt_dir is
+        # not $prefix, back to $prefix/bin too.
 
+        xinstall -m 755 -d ${destroot}${qt_bins_dir}
         ln -s ${qt_apps_dir}/Gqrx.app/Contents/MacOS/Gqrx \
             ${destroot}${qt_bins_dir}
 
+        if {${qt_dir} ne ${prefix}} {
+            xinstall -m 755 -d ${destroot}${prefix}/bin
+            ln -s ${qt_apps_dir}/Gqrx.app/Contents/MacOS/Gqrx \
+                ${destroot}${prefix}/bin
+        }
     }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150706/b97bde62/attachment.html>


More information about the macports-changes mailing list