[62407] trunk/dports/games/fife/Portfile
tommyd at macports.org
tommyd at macports.org
Wed Jan 6 14:50:02 PST 2010
Revision: 62407
http://trac.macports.org/changeset/62407
Author: tommyd at macports.org
Date: 2010-01-06 14:49:59 -0800 (Wed, 06 Jan 2010)
Log Message:
-----------
* ensure that the correct Python version is active in whose site-packages directory we later install the binary. If this is not the right version, the binary may be incompatible with the particular Python version and crash the interpreter.
Modified Paths:
--------------
trunk/dports/games/fife/Portfile
Modified: trunk/dports/games/fife/Portfile
===================================================================
--- trunk/dports/games/fife/Portfile 2010-01-06 21:56:01 UTC (rev 62406)
+++ trunk/dports/games/fife/Portfile 2010-01-06 22:49:59 UTC (rev 62407)
@@ -4,7 +4,7 @@
name fife
version 0.2.999
-revision 1
+revision 2
maintainers tommyd
categories games python
platforms darwin
@@ -36,6 +36,20 @@
use_configure no
use_parallel_build no
+pre-build {
+ if { ![string equal [string trim [ exec ${prefix}/bin/python_select -s] ] "python26" ] } {
+ ui_error "#################################################"
+ ui_error "Python 2.6 is currently not selected as default, "
+ ui_error "so fife's binary module will probably not load "
+ ui_error "correctly into this version of Python. "
+ ui_error "Please execute "
+ ui_error " sudo ${prefix}/python_select python26 "
+ ui_error "and try again. "
+ ui_error "#################################################"
+ return -code error "wrong python version selected"
+ }
+}
+
build.cmd scons
build.target fife
build.args --prefix=${prefix} \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100106/dd89f61c/attachment.html>
More information about the macports-changes
mailing list