pentoo-overlay/dev-python/scapy-python3/scapy-python3-0.23.ebuild
2018-01-10 09:24:05 +08:00

27 lines
678 B
Bash

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{4,5} )
IUSE="test"
inherit distutils-r1
DESCRIPTION="Packet crafting/sending/... PCAP processing tool with python3 compatibility"
HOMEPAGE="https://pypi.python.org/pypi/scapy-python3/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
PDEPEND="virtual/python-scapy"
src_prepare(){
#we provide common files (binaries/man/doc) via virtual package
sed -i -e '/scripts = SCRIPTS/d' setup.py
sed -i -e '/data_files/d' setup.py
eapply_user
}