blob: 45395761f2a824f86477e81d9284e51e124a9e3c (
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
|
# 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.7.ebuild,v 1.2 2012/03/24 23:45:23 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-libs/openssl
>=dev-python/urwid-0.9.8"
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
}
|