2015-03-07 22:22:21 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2014-04-10 13:12:12 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=5
|
2016-11-02 01:52:32 +03:00
|
|
|
PYTHON_COMPAT=( python{2_7,3_4} pypy )
|
2014-04-10 13:12:12 +04:00
|
|
|
|
|
|
|
inherit distutils-r1 user
|
|
|
|
|
2014-08-12 12:57:09 +04:00
|
|
|
DESCRIPTION="Fusil the fuzzer is a Python library used to write fuzzing programs"
|
2015-08-24 15:02:01 +03:00
|
|
|
HOMEPAGE="https://bitbucket.org/haypo/fusil/wiki/Home https://pypi.python.org/pypi/fusil"
|
2014-04-10 13:12:12 +04:00
|
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
2015-03-09 22:48:48 +03:00
|
|
|
KEYWORDS="amd64 x86"
|
2014-04-10 13:12:12 +04:00
|
|
|
IUSE="doc examples"
|
|
|
|
|
2014-06-19 10:29:25 +04:00
|
|
|
DEPEND="doc? ( dev-python/docutils[${PYTHON_USEDEP}] )"
|
|
|
|
RDEPEND=">=dev-python/python-ptrace-0.7[${PYTHON_USEDEP}]"
|
2014-04-10 13:12:12 +04:00
|
|
|
|
|
|
|
python_compile_all() {
|
2014-12-20 01:20:36 +03:00
|
|
|
if use doc; then
|
|
|
|
emake -C doc RST2HTML="rst2html.py" || die "Generation of documentation failed"
|
|
|
|
fi
|
2014-04-10 13:12:12 +04:00
|
|
|
}
|
|
|
|
|
2014-12-20 01:20:36 +03:00
|
|
|
python_install_all() {
|
2014-04-10 13:12:12 +04:00
|
|
|
use doc && local HTML_DOCS=( doc/. )
|
|
|
|
use examples && local EXAMPLES=( examples/. )
|
|
|
|
distutils-r1_python_install_all
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
enewgroup fusil
|
|
|
|
enewuser fusil -1 -1 -1 "fusil"
|
|
|
|
}
|