# -*- 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 88891 2012-01-14 19:56:23Z phw@macports.org $

PortSystem 1.0
PortGroup python 1.0

name            py-libgmail
version         0.1.11
python.versions 24 25 26
categories      python mail
platforms       darwin
maintainers     phw openmaintainer
description     Python binding for accessing Gmail
long_description    The libgmail project is a pure Python binding to provide \
                    access to Google's Gmail web-mail service.

homepage        http://libgmail.sourceforge.net/
master_sites    sourceforge:libgmail
distname        libgmail-${version}
checksums           md5     247477ac98b39658fdcdee8d65639e51 \
                    sha1    485a06227043104e192839e895325f2c9df09d15
if { ${name} != ${subport} } {
    post-destroot   {
        xinstall -m 644 -W ${worksrcpath} CHANGELOG COPYING PKG-INFO README \
            ${destroot}${prefix}/share/doc/${subport}
    }

    if { ${python.version} == 24 } {
    # Workaround until py-mechanize is generalized
    depends_lib     port:py-mechanize
    } else {
    depends_lib     port:py${python.version}-mechanize
    }
}
