blob: 93ece488ff14fd874cd52996d8ce9549cd592e3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..10} )
inherit python-single-r1 meson
DESCRIPTION="Data Plane Development Kit libraries for fast userspace networking"
HOMEPAGE="https://dpdk.org/"
SRC_URI="https://fast.dpdk.org/rel/${P}.tar.xz"
S="${WORKDIR}/dpdk-stable-${PV}"
LICENSE="BSD GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
# tests require rte_kni module to be loaded
# and also needs network and /dev access
# and need to be run as root
RESTRICT="test"
DEPEND="${PYTHON_DEPS}
$(python_gen_cond_dep '
dev-python/pyelftools[${PYTHON_USEDEP}]
')
~sys-kernel/dpdk-kmod-${PV}[${PYTHON_SINGLE_USEDEP}]
app-arch/libarchive
app-crypt/intel-ipsec-mb
dev-libs/elfutils
dev-libs/isa-l
dev-libs/jansson
dev-libs/libbpf
dev-libs/libbsd
dev-libs/openssl
net-libs/libmnl
net-libs/libpcap
sys-apps/dtc
sys-cluster/rdma-core
sys-process/numactl
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-lang/nasm
"
PATCHES=( "${FILESDIR}/dpdk-21.11.1-static_linker.patch" )
src_configure() {
python-single-r1_pkg_setup
local emesonargs=(
-Denable_kmods=false
-Dplatform=generic
$(meson_use test tests)
)
meson_src_configure
}
src_install() {
meson_src_install
local pyfiles=( "${ED}"/usr/bin/*.py )
for pyfile in "${pyfiles[@]}"; do
python_fix_shebang "${pyfile}"
done
}
|