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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Nov 22 02:58:29 2014 UTC (2 years, 11 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Version bump (bug #529390).

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

1 # Copyright 1999-2014 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=">=dev-python/pillow-2.3.0[${PYTHON_USEDEP}]
20 >=dev-python/flask-0.10.1[${PYTHON_USEDEP}]
21 >=dev-python/lxml-3.3.6[${PYTHON_USEDEP}]
22 =dev-python/netlib-$(get_version_component_range 1-2)*[${PYTHON_USEDEP}]
23 >dev-python/pyasn1-0.1.2[${PYTHON_USEDEP}]
24 >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}]
25 >=www-servers/tornado-4.0.2[${PYTHON_USEDEP}]
26 >=dev-python/urwid-1.1[${PYTHON_USEDEP}]"
27 DEPEND="${RDEPEND}
28 test? (
29 >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
30 >=dev-python/nose-1.3.0[${PYTHON_USEDEP}]
31 =www-servers/pathod-$(get_version_component_range 1-2)*[${PYTHON_USEDEP}]
32 )"
33
34 #PATCHES=( "${FILESDIR}"/${PN}-0.10-jsbeautifier-imports.patch )
35
36 python_prepare_all() {
37 distutils-r1_python_prepare_all
38
39 # remove bundled netlib and pathod
40 rm -r libpathod netlib || die
41
42 # remove unused dep
43 sed -i '/sortedcontainers/d' setup.py || die
44 }
45
46 python_test() {
47 nosetests -v || die "Tests fail with ${EPYTHON}"
48 }
49
50 python_install_all() {
51 local DOCS=( CHANGELOG CONTRIBUTORS )
52 use doc && local HTML_DOCS=( doc/. )
53 use examples && local EXAMPLES=( examples/. )
54
55 distutils-r1_python_install_all
56 }

  ViewVC Help
Powered by ViewVC 1.1.20