mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 06:10:56 +02:00
mitmproxy: add doc building
This commit is contained in:
parent
4bac8a687d
commit
b27cea33b0
2 changed files with 15 additions and 5 deletions
|
|
@ -1 +1,2 @@
|
|||
DIST mitmproxy-2.0.2.tar.gz 28498343 SHA256 42e8cbcd27b85e60a165d1a28692098181813bbd9d7731a42b2cda68824c6c9d SHA512 8a38340b3b1dd73c99c9e9b06a59bff78a23b2a851e1032ee0b7354ac46c834a3d005a67dc5238030570719eb5f842cb2a8ce64ffc7c5a01cbfa9a9511c08e66 WHIRLPOOL 8c70b03b4838e7a0ad67de918b234bbcb22c57d4f627fef8cb646b3d2aac462af11aec282062874c7bf2d2a4a00424cacc4dacfa947596bef1cf3af83643afc3
|
||||
DIST mitmproxy-2.0.2.tar.gz 28498343 BLAKE2B f79eac8dd9e060787e7cd049983ce23bd7b6025efe1edfcd9a150611f5e08fa7a869d1c203e2d4d8e7ae3539d9e63d6665fb282f75392afcd70cdfe6cca87223 SHA512 8a38340b3b1dd73c99c9e9b06a59bff78a23b2a851e1032ee0b7354ac46c834a3d005a67dc5238030570719eb5f842cb2a8ce64ffc7c5a01cbfa9a9511c08e66
|
||||
DIST mitmproxy-3.0.0rc2.tar.gz 28490469 BLAKE2B 70cf534fbc242904efb07acc8cc750a987d0a179d6c7c09427b4937c8dcc792370f8929daafa8cfbe8ce76f8ba61484a1c671c8832a550d887bba0c6de882947 SHA512 3521e2c3c678e6d819133ed61c89eae6e8f363e8489bd6f8361c9ee27b9dd0e933bb9e5965f7f83eb0a7c37a35af051b42fdab1ced1fac3d87244840759bb1f8
|
||||
|
|
|
|||
|
|
@ -4,11 +4,13 @@
|
|||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_{4,5} )
|
||||
inherit distutils-r1 versionator git-r3
|
||||
inherit distutils-r1 versionator
|
||||
|
||||
DESCRIPTION="An interactive, SSL-capable, man-in-the-middle HTTP proxy"
|
||||
HOMEPAGE="http://mitmproxy.org/"
|
||||
SRC_URI="https://github.com/mitmproxy/mitmproxy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
MY_PV="$(get_version_component_range 1-3)$(get_version_component_range 4-5)"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
SRC_URI="https://github.com/mitmproxy/mitmproxy/archive/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
|
@ -46,10 +48,13 @@ DEPEND="${RDEPEND}
|
|||
test? (
|
||||
>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/nose-1.3.0[${PYTHON_USEDEP}]
|
||||
)"
|
||||
)
|
||||
doc? ( dev-python/sphinx dev-python/sphinxcontrib-documentedlist )"
|
||||
#fixme: bump it too
|
||||
# =www-servers/pathod-$(get_version_component_range 1-2)*[${PYTHON_USEDEP}]
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
python_prepare() {
|
||||
#we allow to use 34 until 35 is stable
|
||||
hack_python34() {
|
||||
|
|
@ -65,9 +70,13 @@ python_test() {
|
|||
nosetests -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( CHANGELOG CONTRIBUTORS )
|
||||
use doc && local HTML_DOCS=( doc/. )
|
||||
use doc && local HTML_DOCS=( docs/_build/html. )
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
|
|
|
|||
Loading…
Reference in a new issue