Diff scapy-2.3.2-r1 with a scapy-2.4.2

/usr/portage/net-analyzer/scapy/scapy-2.4.2.ebuild 2020-01-05 14:15:00.000000000 +0300
1
# Copyright 1999-2019 Gentoo Authors
1
# Copyright 1999-2020 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI="5"
5

  
6
PYTHON_COMPAT=( python2_7 )
7

  
8
inherit eutils distutils-r1
4
EAPI=6
5
PYTHON_COMPAT=( python{2_7,3_{6,7}} )
6
inherit distutils-r1 readme.gentoo-r1
9 7

  
10 8
DESCRIPTION="A Python interactive packet manipulation program for mastering the network"
11 9
HOMEPAGE="https://scapy.net/ https://github.com/secdev/scapy"
12
SRC_URI="https://github.com/secdev/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
10
SRC_URI="https://github.com/secdev/${PN}/archive/v${PV/_/}.tar.gz -> ${P}.tar.gz"
13 11

  
14 12
LICENSE="GPL-2"
15 13
SLOT="0"
16
KEYWORDS="amd64 x86"
17
IUSE="gnuplot pyx crypt graphviz imagemagick tcpreplay"
18

  
14
KEYWORDS="~amd64 ~x86"
19 15
RDEPEND="
20 16
	net-analyzer/tcpdump
21
	gnuplot? ( dev-python/gnuplot-py[${PYTHON_USEDEP}] )
22
	pyx? ( dev-python/pyx[${PYTHON_USEDEP}] )
23
	crypt? ( || ( dev-python/pycryptodome[${PYTHON_USEDEP}]
24
	              dev-python/pycrypto[${PYTHON_USEDEP}] ) )
25
	graphviz? ( media-gfx/graphviz )
26
	imagemagick? ( virtual/imagemagick-tools )
27
	tcpreplay? ( net-analyzer/tcpreplay )
28 17
"
18
S=${WORKDIR}/${P/_/}
19
DOC_CONTENTS="
20
Scapy has optional support for the following packages:
21

  
22
	dev-python/cryptography
23
	dev-python/gnuplot-py
24
	dev-python/ipython
25
	dev-python/pyx
26
	media-gfx/graphviz
27
	net-analyzer/tcpreplay
28
	virtual/imagemagick-tools
29

  
30
	See also ""${EPREFIX}/usr/share/doc/${PF}/installation.rst""
31
"
32

  
33
src_prepare() {
34
	echo ${PV/_/} > ${PN}/VERSION
35
	distutils-r1_src_prepare
36
}
37

  
38
src_install() {
39
	distutils-r1_src_install
40
	dodoc -r doc/${PN}/*
41
	DISABLE_AUTOFORMATTING=plz readme.gentoo_create_doc
42
}
Thank you!