# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup python 1.0 name py-pyglet version 1.1.4 license BSD 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. long_description ${description} homepage http://www.pyglet.org/ master_sites googlecode:pyglet distname pyglet-${version} checksums md5 b2363642dc3832e95dc4e63a6793467f \ sha1 1c1fa4130b5e5b7aa9da2456b75742ae447d0315 \ rmd160 64a70d8a87ff056f4fc912fb9f4b32b3ea4cd262 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} ${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 (\[0-9\](\\.\[0-9\]+)*)\\." }