# -*- 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 85352 2011-10-13 00:35:41Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-dice3ds
version             0.13
categories-append   graphics
platforms           darwin
supported_archs     noarch
license             BSD
maintainers         jmr openmaintainer
description         Read, write, and manipulate 3DS files
long_description    Dice3DS is a package to to read, write, and manipulate 3D Studio format files \
                    in Python. Also includes code to convert 3DS files into an OpenGL display list.
homepage            http://www.aerojockey.com/software/dice3ds/

master_sites        ${homepage}
distname            Dice3DS-${version}
checksums           md5 b4e5a26a2f8fd9c0ee539ea37d1ffb8e \
                    sha1 a890588b6e041c9888aa33664a5302adbc9a8dbc \
                    rmd160 9b22c55045044027b02f13b946d024bf68113f63

python.versions     25 26 27
python.default_version 27

if {$subport != $name} {
    depends_lib     port:py${python.version}-numpy

    post-destroot	{
        xinstall -m 644 -W ${worksrcpath} COPYING NEWS README THANKS TODO doc/doc.html \
            ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   http://pypi.python.org/pypi/Dice3DS/
    livecheck.regex {Dice3DS ([0-9]\.[0-9]+(\.[0-9]+)?)}
}
