Diff vde-2.3.2-r6 with a vde-2.3.2_p20191011

/usr/portage/net-misc/vde/vde-2.3.2_p20191011.ebuild 2021-05-03 22:09:00.000000000 +0300
3 3

  
4 4
EAPI=6
5 5

  
6
MY_P="${PN}2-${PV}"
6
inherit flag-o-matic
7

  
8
if [[ ${PV} == 9999 ]]; then
9
	inherit autotools git-r3
10
	EGIT_REPO_URI="https://github.com/virtualsqaure/MY_PN"
11
elif [[ ${PV} = *_p* ]]; then
12
	inherit autotools
13
	MY_PN="vde-2"
14
	COMMIT="c7b36a57831a9067c8619c3e17a03e595623b3eb"
15
	SRC_URI="https://github.com/virtualsquare/${MY_PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
16
	KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
17

  
18
	S="${WORKDIR}/${MY_PN}-${COMMIT}"
19
else
20
	MY_P="${PN}2-${PV}"
21
	SRC_URI="mirror://sourceforge/vde/${MY_P}.tar.bz2"
22
	KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
23
	S="${WORKDIR}/${MY_P}"
24
fi
7 25

  
8 26
DESCRIPTION="Virtual distributed ethernet emulator for emulators like qemu, bochs, and uml"
9
SRC_URI="mirror://sourceforge/vde/${MY_P}.tar.bz2"
10 27
HOMEPAGE="https://virtualsquare.org"
11 28

  
12 29
LICENSE="GPL-2"
13 30
SLOT="0"
14
KEYWORDS="amd64 arm64 ~ppc ppc64 x86"
15
IUSE="pcap selinux ssl static-libs"
31
# upstream switched to wolfssl
32
IUSE="pcap selinux static-libs"
16 33

  
17
COMMON_DEPS="pcap? ( net-libs/libpcap )
18
	ssl? ( dev-libs/openssl:0= )
19
	"
34
COMMON_DEPS="pcap? ( net-libs/libpcap )"
20 35
DEPEND="${COMMON_DEPS}"
21 36
RDEPEND="${COMMON_DEPS}
22 37
	acct-group/qemu
23 38
	selinux? ( sec-policy/selinux-vde )"
24 39

  
25
S="${WORKDIR}/${MY_P}"
26

  
27
PATCHES=(
28
	"${FILESDIR}/${P}-format-security.patch"
29
	"${FILESDIR}/${P}-fix-inline-funcs-r1.patch"
30
)
31

  
40
# upstream switched to wolfssl
32 41
src_prepare() {
33 42
	default
34
	has_version ">=dev-libs/openssl-1.1.0" && eapply "${FILESDIR}/${P}-openssl-1.1.patch"
43
	if [[ ${PV} == 9999 ]] || [[ ${PV} == *_p* ]]; then
44
		eautoreconf
45
	fi
46
# upstream switched to wolfssl
47
#	has_version ">=dev-libs/openssl-1.1.0" && \
48
#		eapply "${FILESDIR}/${PN}-2.3.2-openssl-1.1.patch"
35 49
}
36 50

  
37 51
src_configure() {
52
	filter-flags -O0 -Os
53
# upstream switched to wolfssl
54
#		$(use_enable ssl cryptcab) \
38 55
	econf \
39 56
		--disable-python \
57
		--disable-cryptcab \
40 58
		$(use_enable pcap) \
41
		$(use_enable ssl cryptcab) \
42 59
		$(use_enable static-libs static)
43 60
}
44 61

  
45 62
src_compile() {
63
	# https://github.com/virtualsquare/vde-2/issues/6
46 64
	emake -j1
47 65
}
48 66

  
Thank you!