[116097] trunk/dports/gis/qgis

vince at macports.org vince at macports.org
Sat Jan 18 09:56:23 PST 2014


Revision: 116097
          https://trac.macports.org/changeset/116097
Author:   vince at macports.org
Date:     2014-01-18 09:56:23 -0800 (Sat, 18 Jan 2014)
Log Message:
-----------
Add a $PATH to the App environment so that the Sextant plugins work

Modified Paths:
--------------
    trunk/dports/gis/qgis/Portfile

Added Paths:
-----------
    trunk/dports/gis/qgis/files/patch-mac_app_info_plist_in.diff

Modified: trunk/dports/gis/qgis/Portfile
===================================================================
--- trunk/dports/gis/qgis/Portfile	2014-01-18 17:09:39 UTC (rev 116096)
+++ trunk/dports/gis/qgis/Portfile	2014-01-18 17:56:23 UTC (rev 116097)
@@ -33,7 +33,8 @@
                     patch-qgsmaplayerregistry_h.diff \
                     patch-qgsfieldvalidator_sip.diff \
                     patch-qgsattributedialog_h.diff \
-                    patch-qgsmessagelogviewer_h.diff
+                    patch-qgsmessagelogviewer_h.diff \
+                    patch-mac_app_info_plist_in.diff
 
 worksrcdir          ${name}-${version}
 
@@ -56,6 +57,16 @@
     system -W ${worksrcpath} "mkdir build"
 }
 
+
+post-patch {
+    if {![variant_isset grass]} {
+        reinplace -E "s|@@@|${prefix}/bin|" \
+            ${worksrcpath}/mac/app.info.plist.in
+    } else {
+        reinplace -E "s|@@@|${prefix}/bin:${prefix}/share/grass-6.4.3/bin|" \
+            ${worksrcpath}/mac/app.info.plist.in
+    }
+}
 # Overrides default
 
 if {![variant_isset postgis] && ![variant_isset postgis2]} {

Added: trunk/dports/gis/qgis/files/patch-mac_app_info_plist_in.diff
===================================================================
--- trunk/dports/gis/qgis/files/patch-mac_app_info_plist_in.diff	                        (rev 0)
+++ trunk/dports/gis/qgis/files/patch-mac_app_info_plist_in.diff	2014-01-18 17:56:23 UTC (rev 116097)
@@ -0,0 +1,14 @@
+--- mac/app.info.plist.in.orig	2014-01-18 14:15:15.000000000 +0100
++++ mac/app.info.plist.in	2014-01-18 14:16:10.000000000 +0100
+@@ -206,6 +206,11 @@
+ 			</array>
+ 		</dict>
+ 	</array>
++    <key>LSEnvironment</key>
++    <dict>
++        <key>PATH</key>
++        <string>@@@</string>
++    </dict>
+ 	<key>CFBundleLocalizations</key>
+ 	<array>
+ 		<string>en</string>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140118/057e01d0/attachment.html>


More information about the macports-changes mailing list