# -*- 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

PortSystem          1.0
PortGroup           python 1.0
PortGroup           deprecated 1.0

name                py-pymtp
license             GPL-3
version             0.0.4
categories-append   multimedia
platforms           darwin
maintainers         nomaintainer
description         Python wrapper for libmtp
long_description \
    PyMTP is a Pythonic wrapper around libmtp, allowing python \
    applications to communicate with MTP devices, such as the \
    Microsoft(R) Zune(TM), Creative(R) Zen(TM) devices (except the \
    Creative Zen Stone), and many others

homepage            http://downloads.nick125.com/projects/pymtp/
# seems to be broken
#master_sites        ${homepage}
master_sites        http://distfiles.macports.org/python/
distname            pymtp-${version}
use_bzip2           yes

checksums           md5     5eff39cbcc2e073228df04fe1ab1fce8 \
                    sha1    bfdeae5a949e8f1fb841284ac3b29ccfcf7aa197 \
                    rmd160  d68de908319baaea022a97565a76af311d8aac19

deprecated.upstream_support no
livecheck.type      none
python.versions     27

if {${name} ne ${subport}} {
    depends_lib-append  port:libmtp
}