summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2013-06-17 07:04:09 +0000
committerTim Harder <radhermit@gentoo.org>2013-06-17 07:04:09 +0000
commit5ca21145d85eebf45997665c3a22d2c2d9469916 (patch)
treea300ddff9b5135c9c9d01f7514e05ce2c4282cba /net-proxy/mitmproxy
parentFix netlib dep version. (diff)
downloadgentoo-2-5ca21145d85eebf45997665c3a22d2c2d9469916.tar.gz
gentoo-2-5ca21145d85eebf45997665c3a22d2c2d9469916.tar.bz2
gentoo-2-5ca21145d85eebf45997665c3a22d2c2d9469916.zip
Version bump.
(Portage version: 2.2.0_alpha180/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'net-proxy/mitmproxy')
-rw-r--r--net-proxy/mitmproxy/ChangeLog8
-rw-r--r--net-proxy/mitmproxy/files/mitmproxy-0.9.1-pil-import.patch10
-rw-r--r--net-proxy/mitmproxy/mitmproxy-0.9.1.ebuild44
3 files changed, 61 insertions, 1 deletions
diff --git a/net-proxy/mitmproxy/ChangeLog b/net-proxy/mitmproxy/ChangeLog
index 7d03c52c9225..0a0abb3ca208 100644
--- a/net-proxy/mitmproxy/ChangeLog
+++ b/net-proxy/mitmproxy/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-proxy/mitmproxy
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/mitmproxy/ChangeLog,v 1.7 2013/05/16 08:57:50 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/mitmproxy/ChangeLog,v 1.8 2013/06/17 07:04:08 radhermit Exp $
+
+*mitmproxy-0.9.1 (17 Jun 2013)
+
+ 17 Jun 2013; Tim Harder <radhermit@gentoo.org> +mitmproxy-0.9.1.ebuild,
+ +files/mitmproxy-0.9.1-pil-import.patch:
+ Version bump.
16 May 2013; Tim Harder <radhermit@gentoo.org> -mitmproxy-0.7.ebuild,
-mitmproxy-0.8.ebuild:
diff --git a/net-proxy/mitmproxy/files/mitmproxy-0.9.1-pil-import.patch b/net-proxy/mitmproxy/files/mitmproxy-0.9.1-pil-import.patch
new file mode 100644
index 000000000000..cf717435be07
--- /dev/null
+++ b/net-proxy/mitmproxy/files/mitmproxy-0.9.1-pil-import.patch
@@ -0,0 +1,10 @@
+--- mitmproxy-0.9.1/examples/upsidedownternet.py
++++ mitmproxy-0.9.1/examples/upsidedownternet.py
+@@ -1,4 +1,6 @@
+-import Image, cStringIO
++import cStringIO
++try: from PIL import Image
++except ImportError: import Image
+ def response(context, flow):
+ if flow.response.headers["content-type"] == ["image/png"]:
+ s = cStringIO.StringIO(flow.response.content)
diff --git a/net-proxy/mitmproxy/mitmproxy-0.9.1.ebuild b/net-proxy/mitmproxy/mitmproxy-0.9.1.ebuild
new file mode 100644
index 000000000000..0d644ac09b71
--- /dev/null
+++ b/net-proxy/mitmproxy/mitmproxy-0.9.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/mitmproxy/mitmproxy-0.9.1.ebuild,v 1.1 2013/06/17 07:04:08 radhermit Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_6,2_7} )
+
+inherit distutils-r1
+
+DESCRIPTION="An interactive, SSL-capable, man-in-the-middle HTTP proxy"
+HOMEPAGE="http://mitmproxy.org/"
+SRC_URI="http://mitmproxy.org/download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples test"
+
+RDEPEND="virtual/python-imaging[${PYTHON_USEDEP}]
+ dev-python/flask[${PYTHON_USEDEP}]
+ >=dev-python/lxml-2.3[${PYTHON_USEDEP}]
+ >=dev-python/netlib-${PV}[${PYTHON_USEDEP}]
+ >dev-python/pyasn1-0.1.2[${PYTHON_USEDEP}]
+ >=dev-python/pyopenssl-0.12[${PYTHON_USEDEP}]
+ >=dev-python/urwid-1.1[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? (
+ dev-python/nose[${PYTHON_USEDEP}]
+ www-servers/pathod[${PYTHON_USEDEP}]
+ )"
+
+RESTRICT="test"
+
+PATCHES=( "${FILESDIR}"/${P}-pil-import.patch )
+
+python_test() {
+ nosetests -v || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+ dodoc CHANGELOG CONTRIBUTORS
+ use doc && dohtml -r doc/*
+ use examples && dodoc -r examples
+}