Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-libs/dpdk/
Date: Thu, 23 Dec 2021 15:08:16
Message-Id: 1640272043.ffa14bb00c8728959db17bd60ca297189a83250b.epsilon-0@gentoo
1 commit: ffa14bb00c8728959db17bd60ca297189a83250b
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Thu Dec 23 15:07:23 2021 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Thu Dec 23 15:07:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ffa14bb0
7
8 net-libs/dpdk: fast userspace networking libraries
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
12
13 net-libs/dpdk/Manifest | 1 +
14 net-libs/dpdk/dpdk-21.11.ebuild | 63 +++++++++++++++++++++++++++++++++++++++++
15 net-libs/dpdk/metadata.xml | 8 ++++++
16 3 files changed, 72 insertions(+)
17
18 diff --git a/net-libs/dpdk/Manifest b/net-libs/dpdk/Manifest
19 new file mode 100644
20 index 000000000..cf0fb5cc1
21 --- /dev/null
22 +++ b/net-libs/dpdk/Manifest
23 @@ -0,0 +1 @@
24 +DIST dpdk-21.11.tar.xz 15102516 BLAKE2B e82fb03242b74e458810ee5e0d21feaf5d6d781b81b8dc5c2a2ab977bac202290dadc8734ea13993bb1cb1df4b5c4d770df574052a384b590ac798d19c370c59 SHA512 843282023c2f77a9b8af393d50c6dde54f09d490cd6f4a99f03d4df5df13a7d963aa86885fdf64e13f9da71e01c881d1f301dd093574a32cddd84f4b1fb58fd5
25
26 diff --git a/net-libs/dpdk/dpdk-21.11.ebuild b/net-libs/dpdk/dpdk-21.11.ebuild
27 new file mode 100644
28 index 000000000..ba9c719e8
29 --- /dev/null
30 +++ b/net-libs/dpdk/dpdk-21.11.ebuild
31 @@ -0,0 +1,63 @@
32 +# Copyright 2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{8..10} )
38 +inherit python-single-r1 meson
39 +
40 +DESCRIPTION="Data Plane Development Kit libraries for fast userspace networking"
41 +HOMEPAGE="https://dpdk.org/"
42 +SRC_URI="https://fast.dpdk.org/rel/${P}.tar.xz"
43 +
44 +LICENSE="BSD GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +IUSE="test"
48 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
49 +# tests require rte_kni module to be loaded
50 +# and also needs network and /dev access
51 +# and need to be run as root
52 +RESTRICT="test"
53 +
54 +DEPEND="${PYTHON_DEPS}
55 + ~sys-kernel/rte_kni-kmod-${PV}
56 + app-crypt/intel-ipsec-mb
57 + dev-libs/elfutils
58 + dev-libs/isa-l
59 + dev-libs/jansson
60 + dev-libs/libbpf
61 + dev-libs/libbsd
62 + dev-libs/openssl
63 + net-libs/libmnl
64 + net-libs/libpcap
65 + sys-apps/dtc
66 + sys-cluster/rdma-core
67 + sys-process/numactl
68 +"
69 +RDEPEND="${DEPEND}"
70 +BDEPEND="
71 + dev-lang/nasm
72 + test? ( $(python_gen_cond_dep '
73 + dev-python/pyelftools[${PYTHON_USEDEP}]
74 + ') )
75 +"
76 +
77 +src_configure() {
78 + local emesonargs=(
79 + -Denable_kmods=false
80 + -Dmachine=default
81 + -Dplatform=generic
82 + $(meson_use test tests)
83 + )
84 + meson_src_configure
85 + python_setup
86 +}
87 +
88 +src_install() {
89 + meson_src_install
90 + local pyfiles=( "${ED}/usr/bin/*.py" )
91 + for pyfile in "${pyfiles[@]}"; do
92 + python_fix_shebang "${pyfile}"
93 + done
94 +}
95
96 diff --git a/net-libs/dpdk/metadata.xml b/net-libs/dpdk/metadata.xml
97 new file mode 100644
98 index 000000000..65ac1f205
99 --- /dev/null
100 +++ b/net-libs/dpdk/metadata.xml
101 @@ -0,0 +1,8 @@
102 +<?xml version="1.0" encoding="UTF-8"?>
103 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
104 +<pkgmetadata>
105 + <maintainer type="person">
106 + <email>gentoo@×××××.cc</email>
107 + <name>Aisha Tammy</name>
108 + </maintainer>
109 +</pkgmetadata>