# -*- 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 117406 2014-02-25 16:10:21Z rowue@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-sogl
version             0.2.1
categories-append   science
license             wxwidgets
maintainers         fmf.uni-freiburg.de:alexander.held rowue openmaintainer
description         slightly modified version of the object graphics library
long_description    The object graphics library is a canvas library inside the \
                    wxWidgets project. This version has been modified to \
                    better suit the needs of our own project, the pyphant.
homepage            http://www.fmf.uni-freiburg.de/service/servicegruppen/sg_wissinfo/projekte/Pyphant

platforms           darwin
supported_archs     noarch

master_sites        http://pypi.python.org/packages/source/s/sogl/
distname            sogl-${version}
# use_bzip2           yes

checksums           sha256  b9bee189a15c4ab0ed43e0e154d383973db746aaf73a32d29cf90b28118b07c5 \
                    rmd160  0311bc50552e3a0e2729a0f422b3b6ea0abfdedb

python.versions     26 27

if {${name} ne ${subport}} {
    depends_build       port:py${python.version}-setuptools
    # depends_lib         port:py${python.version}-
    if {${python.version} == 26} {
        depends_lib-append    port:py26-wxpython-2.8
    } else {
        depends_lib-append    port:py${python.version}-wxpython-3.0
    }
}
