/[gentoo-x86]/net-proxy/mitmproxy/mitmproxy-0.11.3.ebuild
Gentoo

Contents of /net-proxy/mitmproxy/mitmproxy-0.11.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Jan 4 04:51:26 2015 UTC (2 years, 8 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Version bump.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6 PYTHON_COMPAT=( python2_7 )
7
8 inherit distutils-r1 versionator
9
10 DESCRIPTION="An interactive, SSL-capable, man-in-the-middle HTTP proxy"
11 HOMEPAGE="http://mitmproxy.org/"
12 SRC_URI="http://mitmproxy.org/download/${P}.tar.gz"
13
14 LICENSE="GPL-3"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="doc examples test"
18
19 RDEPEND="
20 >=dev-python/pillow-2.3.0[${PYTHON_USEDEP}]
21 >=dev-python/flask-0.10.1[${PYTHON_USEDEP}]
22 >=dev-python/configargparse-0.9.3[${PYTHON_USEDEP}]
23 >=dev-python/lxml-3.3.6[${PYTHON_USEDEP}]
24 =dev-python/netlib-$(get_version_component_range 1-2)*[${PYTHON_USEDEP}]
25 >dev-python/pyasn1-0.1.2[${PYTHON_USEDEP}]
26 >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}]
27 >=www-servers/tornado-4.0.2[${PYTHON_USEDEP}]
28 >=dev-python/urwid-1.1[${PYTHON_USEDEP}]
29 "
30 DEPEND="${RDEPEND}
31 test? (
32 >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
33 >=dev-python/nose-1.3.0[${PYTHON_USEDEP}]
34 =www-servers/pathod-$(get_version_component_range 1-2)*[${PYTHON_USEDEP}]
35 )"
36
37 python_prepare_all() {
38 distutils-r1_python_prepare_all
39
40 # don't run example scripts tests
41 rm test/test_examples.py || die
42
43 }
44
45 python_test() {
46 nosetests -v || die "Tests fail with ${EPYTHON}"
47 }
48
49 python_install_all() {
50 local DOCS=( CHANGELOG CONTRIBUTORS )
51 use doc && local HTML_DOCS=( doc/. )
52 use examples && local EXAMPLES=( examples/. )
53
54 distutils-r1_python_install_all
55 }

  ViewVC Help
Powered by ViewVC 1.1.20