Revision: 89399 http://trac.macports.org/changeset/89399 Author: jmr@macports.org Date: 2012-01-28 00:23:06 -0800 (Sat, 28 Jan 2012) Log Message: ----------- py25-pyglet, py26-pyglet: set 32-bit supported_archs and add notes on how to run a universal python in 32-bit mode (#28357) Modified Paths: -------------- trunk/dports/python/py25-pyglet/Portfile trunk/dports/python/py26-pyglet/Portfile Modified: trunk/dports/python/py25-pyglet/Portfile =================================================================== --- trunk/dports/python/py25-pyglet/Portfile 2012-01-28 08:04:23 UTC (rev 89398) +++ trunk/dports/python/py25-pyglet/Portfile 2012-01-28 08:23:06 UTC (rev 89399) @@ -8,6 +8,8 @@ version 1.1.4 categories python platforms darwin +# uses carbon; apparently 1.2 will use cocoa +supported_archs i386 ppc maintainers nomaintainer description A cross-platform windowing and multimedia library for Python. @@ -22,6 +24,14 @@ sha1 1c1fa4130b5e5b7aa9da2456b75742ae447d0315 \ rmd160 64a70d8a87ff056f4fc912fb9f4b32b3ea4cd262 +set python_framework ${frameworks_dir}/Python.framework/Versions/${python.branch} +if {$build_arch == "x86_64" || $build_arch == "ppc64"} { + notes "Since MacPorts is configured to use the $build_arch architecture\ +where possible and the current version of pyglet only works when built for\ +32-bit archs, you will probably need to run python like this to use pyglet: +arch -${configure.build_arch} ${python_framework}/Resources/Python.app/Contents/MacOS/Python" +} + livecheck.type regex livecheck.url ${homepage}download.html livecheck.regex "The current stable version of pyglet is <strong>(\[0-9\](\\.\[0-9\]+)*)</strong>\\." Modified: trunk/dports/python/py26-pyglet/Portfile =================================================================== --- trunk/dports/python/py26-pyglet/Portfile 2012-01-28 08:04:23 UTC (rev 89398) +++ trunk/dports/python/py26-pyglet/Portfile 2012-01-28 08:23:06 UTC (rev 89399) @@ -8,6 +8,8 @@ version 1.1.4 categories python platforms darwin +# uses carbon; apparently 1.2 will use cocoa +supported_archs i386 ppc maintainers stromnov openmaintainer description A cross-platform windowing and multimedia library for Python. @@ -21,3 +23,10 @@ checksums md5 b2363642dc3832e95dc4e63a6793467f \ sha1 1c1fa4130b5e5b7aa9da2456b75742ae447d0315 \ rmd160 64a70d8a87ff056f4fc912fb9f4b32b3ea4cd262 + +if {$build_arch == "x86_64" || $build_arch == "ppc64"} { + notes "Since MacPorts is configured to use the $build_arch architecture\ +where possible and the current version of pyglet only works when built for\ +32-bit archs, you will probably need to run python like this to use pyglet: +arch -${configure.build_arch} ${python.prefix}/Resources/Python.app/Contents/MacOS/Python" +}