# -*- 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 117568 2014-03-03 23:04:49Z macsforever2000@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-mitmproxy
set real_name       mitmproxy
version             0.10.1
python.versions     26 27
categories-append   www
license             {GPL-3+ OpenSSLException}
maintainers         nomaintainer
description         SSL-capable man-in-the-middle proxy for HTTP
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
supported_archs     noarch

homepage            http://mitmproxy.org/
master_sites        http://pypi.python.org/packages/source/m/${real_name}/
distname            ${real_name}-${version}

checksums           rmd160  0fb144d4907f9402c475f84d2f8706cfdb81365e \
                    sha256  527cbff76e0d49d7db62561252d399e1c747730676515c4ed89250c223e2fe56

if {${name} ne ${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
}
