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

michaelld at macports.org michaelld at macports.org
Fri Dec 5 18:40:12 PST 2014


Revision: 129116
          https://trac.macports.org/changeset/129116
Author:   michaelld at macports.org
Date:     2014-12-05 18:40:12 -0800 (Fri, 05 Dec 2014)
Log Message:
-----------
gqrx: rearrange parts, such that the devel port has no dependencies or patches (i.e., does nothing).

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

Modified: trunk/dports/science/gqrx/Portfile
===================================================================
--- trunk/dports/science/gqrx/Portfile	2014-12-06 01:39:21 UTC (rev 129115)
+++ trunk/dports/science/gqrx/Portfile	2014-12-06 02:40:12 UTC (rev 129116)
@@ -17,33 +17,6 @@
 
 set description_common {Gqrx is a software defined radio receiver for Funcube Dongle (FCD), RTL2832U-based DVB-T devices (RTL-SDR), Universal Software Radio Peripherals (USRP) and Osmo SDR devices.  Gqrx is powered by GNU Radio and the Qt GUI toolkit.  Gqrx is free and open source software and anyone is invited to hack the source code to suit their needs.}
 
-if {${subport} eq "gqrx-legacy"} {
-
-    # patch to fix usage of real and imag to be compatible with both
-    # libstdc++ and libc++ runtimes; this patch is included with the
-    # release and devel from upstream.
-
-    patchfiles-append patch-fix-real-imag.diff
-}
-
-post-patch {
-
-    # set install location
-
-    reinplace "s|@APPSDIR@|${qt_apps_dir}|g" ${worksrcpath}/gqrx.pro
-
-    # set version
-
-    reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/gqrx.pro
-
-    # set arch type(s)
-
-    reinplace "s|@ARCHES@|${qt_arch_types}|g" ${worksrcpath}/gqrx.pro
-
-}
-
-configure.post_args gqrx.pro
-
 if {${subport} eq ${name}} {
 
     long_description    ${description}  \
@@ -101,10 +74,8 @@
     depends_build
     depends_run
 
-    # fix port name set by github PortGroup
+    patchfiles
 
-    name                gqrx-devel
-
     conflicts           gqrx-legacy
 
 }
@@ -135,6 +106,12 @@
 
     patchfiles-append   patch-gqrx.pro-legacy.diff
 
+    # patch to fix usage of real and imag to be compatible with both
+    # libstdc++ and libc++ runtimes; this patch is included with the
+    # release and devel from upstream.
+
+    patchfiles-append patch-fix-real-imag.diff
+
     # no version checking for now
 
     livecheck.type      none
@@ -145,11 +122,32 @@
 
 homepage            http://gqrx.dk/
 
-post-destroot {
+if {${subport} ne "gqrx-devel"} {
 
-    # link the executable back to $qt_bins_dir
+    post-patch {
 
-    ln -s ${qt_apps_dir}/Gqrx.app/Contents/MacOS/Gqrx \
-        ${destroot}${qt_bins_dir}
+        # set install location
 
+        reinplace "s|@APPSDIR@|${qt_apps_dir}|g" ${worksrcpath}/gqrx.pro
+
+        # set version
+
+        reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/gqrx.pro
+
+        # set arch type(s)
+
+        reinplace "s|@ARCHES@|${qt_arch_types}|g" ${worksrcpath}/gqrx.pro
+
+    }
+
+    configure.post_args gqrx.pro
+
+    post-destroot {
+
+        # link the executable back to $qt_bins_dir
+
+        ln -s ${qt_apps_dir}/Gqrx.app/Contents/MacOS/Gqrx \
+            ${destroot}${qt_bins_dir}
+
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141205/3d5a9520/attachment-0001.html>


More information about the macports-changes mailing list