dpdk: build with python 3

This commit is contained in:
Đoàn Trần Công Danh 2020-09-20 19:50:46 +07:00
parent 07a9b604a3
commit fb13dc231b
1 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'dpdk'
pkgname=dpdk
version=19.08
revision=3
revision=4
# no musl - uses error.h, execinfo.h and argp.h
archs="x86_64 aarch64 ppc64le i686 armv7l"
build_style=meson
@ -9,14 +9,15 @@ configure_args="-Denable_kmods=false -Denable_docs=true -Db_lto=false"
hostmakedepends="doxygen python3-Sphinx pkg-config elfutils"
makedepends="libnuma-devel linux-headers jansson-devel libpcap-devel
zlib-devel libressl-devel libbsd-devel libelf libmnl"
depends="python-pyelftools"
depends="python3-pyelftools"
short_desc="Data Plane Development Kit"
maintainer="Hans-J. Schmid <knock@myopendoor.de>"
license="BSD-3-Clause, GPL-2.0-only"
homepage="https://www.dpdk.org/"
distfiles="https://github.com/DPDK/${pkgname}/archive/v${version}.tar.gz"
checksum=1ceff1a6f4f8d5f6f62c1682097249227ac5225ccd9638e0af09f5411c681038
python_version=2 #unverified
# import py3compat
python_version=3
case "${XBPS_TARGET_MACHINE}" in
armv7l*) configure_args+=" -Dmachine=armv7-a";;
@ -30,12 +31,10 @@ CFLAGS="-fcommon"
post_install() {
vmkdir usr/lib/modules-load.d
vlicense license/bsd-3-clause.txt
vlicense license/gpl-2.0.txt
}
dpdk-doc_package() {
short_desc+=" - documentation"
archs=noarch
pkg_install() {
vmove usr/share/doc
}