[82544] trunk/dports/python/py-spyder
eborisch at macports.org
eborisch at macports.org
Mon Aug 15 07:11:05 PDT 2011
Revision: 82544
http://trac.macports.org/changeset/82544
Author: eborisch at macports.org
Date: 2011-08-15 07:11:03 -0700 (Mon, 15 Aug 2011)
Log Message:
-----------
py-spyder: Use applications_dir variable rather than hard-code /Applications/MacPorts
Modified Paths:
--------------
trunk/dports/python/py-spyder/Files/spyderlib_utils_programs.py.patch
trunk/dports/python/py-spyder/Portfile
Modified: trunk/dports/python/py-spyder/Files/spyderlib_utils_programs.py.patch
===================================================================
--- trunk/dports/python/py-spyder/Files/spyderlib_utils_programs.py.patch 2011-08-15 13:48:37 UTC (rev 82543)
+++ trunk/dports/python/py-spyder/Files/spyderlib_utils_programs.py.patch 2011-08-15 14:11:03 UTC (rev 82544)
@@ -4,7 +4,7 @@
else:
return True
else:
-+ abspath = "/Applications/MacPorts/Qt4/" + basename + ".app/Contents/MacOS/" + basename
++ abspath = "@@APPS_DIR@@/Qt4/" + basename + ".app/Contents/MacOS/" + basename
+ if osp.isfile(abspath):
+ if get_path:
+ return abspath
Modified: trunk/dports/python/py-spyder/Portfile
===================================================================
--- trunk/dports/python/py-spyder/Portfile 2011-08-15 13:48:37 UTC (rev 82543)
+++ trunk/dports/python/py-spyder/Portfile 2011-08-15 14:11:03 UTC (rev 82544)
@@ -53,6 +53,8 @@
${worksrcpath}/spyderlib/spyder.py
reinplace "s|@@PREFIX@@|${prefix}|g" \
${worksrcpath}/spyderlib/spyder.py
+ reinplace "s|@@APPS_DIR@@|${applications_dir}|g" \
+ ${worksrcpath}/spyderlib/utils/programs.py
}
depends_lib-append port:py${python.version}-pyqt4 \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110815/c3f44c48/attachment.html>
More information about the macports-changes
mailing list