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