[100444] trunk/dports/python
jmr at macports.org
jmr at macports.org
Wed Dec 12 06:47:22 PST 2012
Revision: 100444
https://trac.macports.org/changeset/100444
Author: jmr at macports.org
Date: 2012-12-12 06:47:22 -0800 (Wed, 12 Dec 2012)
Log Message:
-----------
py*-pyglet: unify
Modified Paths:
--------------
trunk/dports/python/py-pyglet/Portfile
Added Paths:
-----------
trunk/dports/python/py-pyglet/
Removed Paths:
-------------
trunk/dports/python/py25-pyglet/
trunk/dports/python/py26-pyglet/
Modified: trunk/dports/python/py-pyglet/Portfile
===================================================================
--- trunk/dports/python/py26-pyglet/Portfile 2012-12-12 11:39:09 UTC (rev 100437)
+++ trunk/dports/python/py-pyglet/Portfile 2012-12-12 14:47:22 UTC (rev 100444)
@@ -2,11 +2,11 @@
# $Id$
PortSystem 1.0
-PortGroup python26 1.0
+PortGroup python 1.0
-name py26-pyglet
+name py-pyglet
version 1.1.4
-categories python
+license BSD
platforms darwin
# uses carbon; apparently 1.2 will use cocoa
supported_archs i386 ppc
@@ -24,9 +24,22 @@
sha1 1c1fa4130b5e5b7aa9da2456b75742ae447d0315 \
rmd160 64a70d8a87ff056f4fc912fb9f4b32b3ea4cd262
-if {$build_arch == "x86_64" || $build_arch == "ppc64"} {
- notes "Since MacPorts is configured to use the $build_arch architecture\
+python.versions 25 26
+
+if {$subport != $name} {
+ set Resources_dir ${python.prefix}/Resources
+ if {${python.version} == 25} {
+ set Resources_dir ${frameworks_dir}/Python.framework/Versions/${python.branch}/Resources
+ }
+ 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"
+ arch -${configure.build_arch} ${Resources_dir}/Python.app/Contents/MacOS/Python"
+ }
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url ${homepage}download.html
+ livecheck.regex "The current stable version of pyglet is <strong>(\[0-9\](\\.\[0-9\]+)*)</strong>\\."
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121212/b3f74113/attachment-0001.html>
More information about the macports-changes
mailing list