# -*- 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 92833 2012-05-08 23:46:29Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-mitmproxy
set real_name       mitmproxy
version             0.8
python.versions     26 27
python.default_version  27
categories-append   www
maintainers         singingwolfboy openmaintainer
description         Document-Object Mapper/Toolkit for Mongo Databases
long_description    \
    mitmproxy is an SSL-capable man-in-the-middle proxy for HTTP. It provides a \
    console interface that allows traffic flows to be inspected and edited on the \
    fly. mitmdump is the command-line version of mitmproxy, with the same \
    functionality but without the user interface. Think tcpdump for HTTP.

platforms           darwin

homepage            http://mitmproxy.org/
master_sites        http://pypi.python.org/packages/source/m/${real_name}/
distname            ${real_name}-${version}
checksums           rmd160  a5edfb86386f83b0be2a1f96795e2fba56b03457 \
                    sha256  b176b1036e28715c92e8159fab2a10565a7276afa7ebc83b5976bc7217c3f8db

if {$name != $subport} {
    depends_lib         port:py${python.version}-openssl \
                        port:py${python.version}-asn1 \
                        port:py${python.version}-urwid \
                        port:py${python.version}-pil \
                        port:py${python.version}-lxml
}
