Skip to content

Commit

Permalink
py25-pyglet, py26-pyglet: set 32-bit supported_archs and add notes on…
Browse files Browse the repository at this point in the history
… how to run a universal python in 32-bit mode (https://trac.macports.org/ticket/28357)

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@89399 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jmroot committed Jan 28, 2012
1 parent 3015c49 commit 6d8cd52
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/py25-pyglet/Portfile
Expand Up @@ -8,6 +8,8 @@ name py25-pyglet
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.
Expand All @@ -22,6 +24,14 @@ checksums md5 b2363642dc3832e95dc4e63a6793467f \
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>\\."
9 changes: 9 additions & 0 deletions python/py26-pyglet/Portfile
Expand Up @@ -8,6 +8,8 @@ name py26-pyglet
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.
Expand All @@ -21,3 +23,10 @@ distname pyglet-${version}
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"
}

0 comments on commit 6d8cd52

Please sign in to comment.