# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="5" PYTHON_DEPEND="3" SUPPORT_PYTHON_ABIS=1 RESTRICT_PYTHON_ABIS="2.*" inherit distutils eutils vcs-snapshot DESCRIPTION="Fast and simple packet creating / parsing supporting various protocols." HOMEPAGE="https://github.com/mike01/pypacker" SRC_URI="https://github.com/mike01/${PN}/tarball/v${PV} -> ${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~arm ~x86" IUSE="examples" DOCS="AUTHORS CHANGES HACKING README" src_test() { testing() { PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" tests/test_pypacker.py } python_execute_function testing } src_install() { distutils_src_install if use examples; then insinto /usr/share/doc/${PF} doins -r examples fi }