diff options
author | Alexandre PIGNÉ <root@genzob.(none)> | 2012-03-15 15:51:08 +0100 |
---|---|---|
committer | Alexandre PIGNÉ <root@genzob.(none)> | 2012-03-15 15:51:08 +0100 |
commit | 58dfccc5593deb355fec24444f2717e637a89aab (patch) | |
tree | a6eed8d414d973f17d35945880f92230282ac91c | |
parent | Fix typo in ebuilds (diff) | |
download | lootr-58dfccc5593deb355fec24444f2717e637a89aab.tar.gz lootr-58dfccc5593deb355fec24444f2717e637a89aab.tar.bz2 lootr-58dfccc5593deb355fec24444f2717e637a89aab.zip |
Prepare release 0.3.2
-rw-r--r-- | dev-python/netzob/netzob-0.3.2.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/dev-python/netzob/netzob-0.3.2.ebuild b/dev-python/netzob/netzob-0.3.2.ebuild new file mode 100644 index 0000000..b137ad1 --- /dev/null +++ b/dev-python/netzob/netzob-0.3.2.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +PYTHON_DEPEND="2:2.6" +SUPPORT_PYTHON_ABIS="1" + +inherit distutils + +MY_PV=${PV/_/-} +MY_P="Netzob-${MY_PV}" + +DESCRIPTION="Network protocol modelization by reverse engineering" +HOMEPAGE="http://www.netzob.org/" +SRC_URI="http://www.netzob.org/repository/${MY_PV}/${MY_P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc" + +RDEPEND=" + dev-python/pcapy + dev-python/impacket + dev-python/pygtk + >=dev-python/python-ptrace-0.4.1 + dev-python/matplotlib + dev-util/strace + sys-process/lsof + >=dev-python/lxml-2.3 + dev-python/bitarray +" +DEPEND="${RDEPEND} + doc? ( dev-python/sphinx )" + +RESTRICT_PYTHON_ABIS="3.*" + +S="${WORKDIR}/${MY_P}" +DOCS="README.txt AUTHORS.txt NEWS.txt COPYING.txt" + +src_prepare() { + distutils_src_prepare + sed -i "s;resources/static;/usr/share/netzob;" src/netzob/NetzobResources.py || die +} + +src_compile() { + distutils_src_compile + + if use doc; then + einfo "Generation of documentation" + pushd doc/documentation >/dev/null + sphinx-build -b html source html || die "Generation of documentation failed" + popd >/dev/null + fi +} + +src_install() { + distutils_src_install + + if use doc; then + dohtml -r doc/documentation/html/* || die "dohtml failed" + fi +} |