diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2021-12-01 18:01:25 -0800 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2021-12-01 18:01:31 -0800 |
commit | 3863e30ef3bb6605e6c88dabdf28697642b8dae9 (patch) | |
tree | f8e0a3dbccf69f530906c7e7519004846eec34fa /dev-libs/libbpf | |
parent | sys-fs/udev: link to wiki for classic interface names too (diff) | |
download | gentoo-3863e30ef3bb6605e6c88dabdf28697642b8dae9.tar.gz gentoo-3863e30ef3bb6605e6c88dabdf28697642b8dae9.tar.bz2 gentoo-3863e30ef3bb6605e6c88dabdf28697642b8dae9.zip |
dev-libs/libbpf: Version bump to 0.6.0
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-libs/libbpf')
-rw-r--r-- | dev-libs/libbpf/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/libbpf/libbpf-0.6.0.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-libs/libbpf/Manifest b/dev-libs/libbpf/Manifest index f5a32a29f9f5..d3ac6b04b991 100644 --- a/dev-libs/libbpf/Manifest +++ b/dev-libs/libbpf/Manifest @@ -1 +1,2 @@ DIST libbpf-0.5.0.tar.gz 815083 BLAKE2B 9097d808f03cbbe61cd59b24347075e2937603f51350f83f8897123900c911392d7545af8135f39f749132c6518296f1a4d22d37c0c7b4371631f5c63a0dd9ac SHA512 3c578d3e6e93a306a1f182978e54f35fec8acfa51fad5d7de72c5003f10c266d7474e82d6dd045311fcaf8c18aa8cebe64a3336a458a9ea477e5a58e5111dd85 +DIST libbpf-0.6.0.tar.gz 858210 BLAKE2B a6076ae7465eb9c99ff1b2c63a388ef2d15c71882d7de0b5279604ad7b91ef3fce583c88710126a9384d96a810775409daadb0adaea41dd9dfc12af183fa50d7 SHA512 923eac64dca015939cbbd51cb0a7daf609d9873d249d6e621d73776b51c52f6087f2a957976163474d359a471250b27b44ad93179948335e949a82ed9613ed43 diff --git a/dev-libs/libbpf/libbpf-0.6.0.ebuild b/dev-libs/libbpf/libbpf-0.6.0.ebuild new file mode 100644 index 000000000000..857dae105061 --- /dev/null +++ b/dev-libs/libbpf/libbpf-0.6.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 2019-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +if [[ ${PV} =~ [9]{4,} ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/libbpf/libbpf.git" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi +S="${WORKDIR}/${P}/src" + +DESCRIPTION="Stand-alone build of libbpf from the Linux kernel" +HOMEPAGE="https://github.com/libbpf/libbpf" + +LICENSE="GPL-2 LGPL-2.1 BSD-2" +SLOT="0/$(ver_cut 1-2 ${PV})" +IUSE="static-libs" + +DEPEND=" + sys-kernel/linux-headers + virtual/libelf +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/libbpf-9999-paths.patch +) + +src_configure() { + append-cflags -fPIC + tc-export CC AR + export LIBSUBDIR="$(get_libdir)" V=1 +} + +src_install() { + emake \ + DESTDIR="${D}" \ + install install_uapi_headers + + if ! use static-libs; then + find "${ED}" -name '*.a' -delete || die + fi + + insinto /usr/$(get_libdir)/pkgconfig + doins ${PN}.pc +} |