[109633] trunk/dports/devel/eric4

ryandesign at macports.org ryandesign at macports.org
Sun Aug 18 18:11:15 PDT 2013


Revision: 109633
          https://trac.macports.org/changeset/109633
Author:   ryandesign at macports.org
Date:     2013-08-18 18:11:15 -0700 (Sun, 18 Aug 2013)
Log Message:
-----------
eric4: add patchfile for #40164

Added Paths:
-----------
    trunk/dports/devel/eric4/files/
    trunk/dports/devel/eric4/files/patch-install.py.diff

Added: trunk/dports/devel/eric4/files/patch-install.py.diff
===================================================================
--- trunk/dports/devel/eric4/files/patch-install.py.diff	                        (rev 0)
+++ trunk/dports/devel/eric4/files/patch-install.py.diff	2013-08-19 01:11:15 UTC (rev 109633)
@@ -0,0 +1,28 @@
+--- install.py.orig	2013-07-07 04:16:53.000000000 -0500
++++ install.py	2013-08-18 20:03:07.000000000 -0500
+@@ -362,10 +362,8 @@
+         
+         if sys.platform == "darwin":
+             # delete the Mac app bundle
+-            if os.path.exists("/Developer/Applications/Eric4"):
+-                shutil.rmtree("/Developer/Applications/Eric4")
+-            if os.path.exists("/Applications/eric4.app"):
+-                shutil.rmtree("/Applications/eric4.app")
++            if os.path.exists("@APPLICATIONS_DIR@/eric4.app"):
++                shutil.rmtree("@APPLICATIONS_DIR@/eric4.app")
+         
+     except IOError, msg:
+         sys.stderr.write('IOError: %s\nTry install with admin rights.\n' % msg)
+@@ -539,9 +537,9 @@
+     """
+     global cfg, sourceDir
+     
+-    dirs = {"contents": "/Applications/eric4.app/Contents/",
+-            "exe": "/Applications/eric4.app/Contents/MacOS",
+-            "icns": "/Applications/eric4.app/Contents/Resources"}
++    dirs = {"contents": "@APPLICATIONS_DIR@/eric4.app/Contents/",
++            "exe": "@APPLICATIONS_DIR@/eric4.app/Contents/MacOS",
++            "icns": "@APPLICATIONS_DIR@/eric4.app/Contents/Resources"}
+     os.makedirs(dirs["contents"])
+     os.mkdir(dirs["exe"])
+     os.mkdir(dirs["icns"])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130818/a7bb48bc/attachment-0001.html>


More information about the macports-changes mailing list