# -*- 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: Portfile 89399 2012-01-28 08:23:06Z jmr@macports.org $

PortSystem              1.0
PortGroup               python25 1.0

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.
long_description        A cross-platform windowing and multimedia library for Python.

homepage                http://www.pyglet.org/
master_sites            http://pyglet.googlecode.com/files/

distname                pyglet-${version}

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>\\."
