blob: a84307d37827f0d7871f00c7d838c40dbb3bf8c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-proxy/mitmproxy/mitmproxy-0.8.ebuild,v 1.1 2012/04/09 21:55:08 radhermit Exp $
EAPI="4"
PYTHON_DEPEND="2:2.6"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
PYTHON_MODNAME="libmproxy"
inherit distutils
DESCRIPTION="An interactive, SSL-capable, man-in-the-middle HTTP proxy"
HOMEPAGE="http://mitmproxy.org/ http://pypi.python.org/pypi/mitmproxy/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples test"
RDEPEND=">=dev-python/imaging-1.1
>=dev-python/lxml-2.3
>=dev-python/pyasn1-0.1.2
>=dev-python/pyopenssl-0.12
>=dev-python/urwid-1.0.0"
DEPEND="${RDEPEND}
test? ( dev-python/pry )"
src_test() {
cd test
testing() {
PYTHONPATH="../build-${PYTHON_ABI}/lib" "$(PYTHON)" "${EROOT}"/usr/bin/pry
}
python_execute_function testing
}
src_install() {
distutils_src_install
use doc && dohtml -r doc/*
use examples && dodoc -r examples
}
|